Skip to content

Commit

Permalink
Merge pull request #62 from oven-2023/feature/chat
Browse files Browse the repository at this point in the history
fix: edit message send time and add sender schema
  • Loading branch information
haen-su authored Nov 8, 2023
2 parents 32bdc96 + 0b6e1ba commit 9a4becd
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@ public class MessageListResponse {
private String content;

@Schema(description = "메시지 전송 시간", example = "19:30")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "hh:MM", timezone = "Asia/Seoul")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "hh:mm", timezone = "Asia/Seoul")
private LocalDateTime sendTime;

@Schema(description = "지금 로그인해있는 유저가 이 메시지를 보낸 사람인지")
@Schema(description = "지금 로그인해있는 유저가 이 메시지를 보낸 사람인지(이거 swagger에 sender라고 뜨는데 isSender임!!")
private boolean isSender;

@Schema(description = "메시지 발신 유저 닉네임", example = "오븐조아")
private String sender;

@Builder
public MessageListResponse(String content, LocalDateTime sendTime, boolean isSender) {
public MessageListResponse(String content, LocalDateTime sendTime, boolean isSender, String sender) {
this.content = content;
this.sendTime = sendTime;
this.isSender = isSender;
this.sender = sender;
}

}

0 comments on commit 9a4becd

Please sign in to comment.