Skip to content

Commit

Permalink
Merge pull request #60 from oven-2023/feature/chat
Browse files Browse the repository at this point in the history
feat: edit dto time format
  • Loading branch information
haen-su authored Nov 7, 2023
2 parents 0669dba + 9412d1c commit f853ffc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.oven.server.api.chat.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Getter;

Expand All @@ -8,10 +10,14 @@
@Getter
public class MessageListResponse {

@Schema(description = "메시지 내용", example = "안녕하세요")
private String content;

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

@Schema(description = "지금 로그인해있는 유저가 이 메시지를 보낸 사람인지")
private boolean isSender;

@Builder
Expand Down

0 comments on commit f853ffc

Please sign in to comment.