-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from bankidz/dev
v0.6.0 버전 배포
- Loading branch information
Showing
14 changed files
with
4,384 additions
and
3,947 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/com/ceos/bankids/dto/NotificationListDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.ceos.bankids.dto; | ||
|
||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import java.util.List; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
@ApiModel(value = "알림 리스트로 줄 때 DTO") | ||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class NotificationListDTO { | ||
|
||
@ApiModelProperty(example = "6") | ||
private Long lastId; | ||
|
||
@ApiModelProperty(example = "list") | ||
private List<NotificationDTO> notificationList; | ||
|
||
public NotificationListDTO(Long lastId, List<NotificationDTO> notificationList) { | ||
this.lastId = lastId; | ||
this.notificationList = notificationList; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.ceos.bankids.dto; | ||
|
||
import com.ceos.bankids.domain.User; | ||
import com.fasterxml.jackson.annotation.JsonFormat; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import java.sql.Timestamp; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@ToString | ||
@EqualsAndHashCode | ||
public class OptInDTO { | ||
|
||
@ApiModelProperty(example = "false") | ||
private Boolean noticeOptIn; | ||
@ApiModelProperty(example = "true") | ||
private Boolean serviceOptIn; | ||
@ApiModelProperty(example = "2022/07/05 05:05:05") | ||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd hh:mm:ss", timezone = "Asia/Seoul") | ||
private Timestamp updatedAt; | ||
|
||
public OptInDTO(User user) { | ||
this.noticeOptIn = user.getNoticeOptIn(); | ||
this.serviceOptIn = user.getServiceOptIn(); | ||
this.updatedAt = user.getUpdatedAt(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.