Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/java/com/hana/app/data/entity/IntegratedVip.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class IntegratedVip {
Long userId;
String email;
String password;
Boolean isvip;
String name;
String phone;
Long vipId;
Expand All @@ -31,6 +32,7 @@ public String toString() {
"userId=" + userId +
", email='" + email + '\'' +
", password='" + password + '\'' +
", isvip='" + isvip + '\'' +
", name='" + name + '\'' +
", phone='" + phone + '\'' +
", vipId=" + vipId +
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/hana/app/service/UsersService.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ public VipDto getVipMainInfo(String token){
IntegratedVip vip = integratedVipRepository.findByEmail(authentication.getName());

// 1. vipInfo
vip.setIsvip(true);
VipDto.VipInfo vipInfo = getVipInfo(vip);

// 2. pbInfo
Expand All @@ -217,6 +218,7 @@ public VipDto.VipInfo getVipInfo(IntegratedVip vip) {
return VipDto.VipInfo.builder()
.vipId(vip.getVipId())
.password(vip.getPassword())
.isvip(vip.getIsvip())
.name(vip.getName())
.riskType(vip.getRiskType())
.riskTestDate(localDateTime2String(vip.getTestedAt()))
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/hana/dto/response/VipDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static class VipInfo {
private final Long vipId;
private final String password;
private final String name;
private final Boolean isvip;
private final String riskType;
private final String riskTestDate;

Expand Down