UserCommentRespDto.java 632 B

123456789101112131415161718192021222324252627
  1. package com.sf.dto.resp;
  2. import com.fasterxml.jackson.annotation.JsonFormat;
  3. import io.swagger.v3.oas.annotations.media.Schema;
  4. import lombok.Builder;
  5. import lombok.Data;
  6. import java.time.LocalDateTime;
  7. @Data
  8. @Builder
  9. public class UserCommentRespDto {
  10. @Schema(description = "评论内容")
  11. private String commentContent;
  12. @Schema(description = "评论小说封面")
  13. private String commentBookPic;
  14. @Schema(description = "评论小说名字")
  15. private String commentBook;
  16. @Schema(description = "评论时间")
  17. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  18. private LocalDateTime commentTime;
  19. }