Skip to content

Commit

Permalink
Merge pull request #74 from EWHA-LUX/feature/#31
Browse files Browse the repository at this point in the history
[Feature] λ§ˆμ΄μ›”λ › 쑰회 λ‹‰λ„€μž„ μΆ”κ°€
  • Loading branch information
Haewonny authored Apr 8, 2024
2 parents a7e46ad + 7694ab2 commit 3b32b72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class MyWalletResponseDto {
@NoArgsConstructor
@Builder
public static class MyWalletProfileDto {
private String nickname;
List<OwnedCardListDto> ownedCardList;
}

Expand All @@ -24,6 +25,7 @@ public static class MyWalletProfileDto {
public static class OwnedCardListDto {
private Long ownedCardId;
private String cardName;
private String cardCompany;
private int cardType;
private String cardImg;
private boolean isMaincard;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import lombok.extern.slf4j.Slf4j;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import java.util.*;
Expand Down Expand Up @@ -56,6 +55,7 @@ public MyWalletResponseDto.MyWalletProfileDto getMyWalletInfo(Users nowUser) thr
return new MyWalletResponseDto.OwnedCardListDto(
ownedCard.getId(),
ownedCard.getCard().getName(),
ownedCard.getCard().getCardCompany().getName(),
ownedCard.getCard().getType().ordinal(),
ownedCard.getCard().getImgUrl(),
ownedCard.isMain(),
Expand All @@ -68,6 +68,7 @@ public MyWalletResponseDto.MyWalletProfileDto getMyWalletInfo(Users nowUser) thr
.toList();

return MyWalletResponseDto.MyWalletProfileDto.builder()
.nickname(nowUser.getNickname())
.ownedCardList(ownedCardList)
.build();
}
Expand Down Expand Up @@ -119,6 +120,7 @@ public MontlyBenefitResponseDto.MontlyBenefitProfileDto getMontlyBenefitInfo(Use
))
.collect(Collectors.toList());


return MontlyBenefitResponseDto.MontlyBenefitProfileDto.builder()
.month(month)
.receivedSum(receivedSum)
Expand Down

0 comments on commit 3b32b72

Please sign in to comment.