parent
cd6ac9a0ac
commit
820855dc2c
@ -0,0 +1,44 @@
|
||||
package com.luoo.music.dto.response;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
import org.springframework.data.annotation.LastModifiedDate;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.Id;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class EssayRespDTO {
|
||||
|
||||
private String id;
|
||||
// 标题
|
||||
private String title;
|
||||
// 简介
|
||||
private String summary;
|
||||
// 阅读数
|
||||
private Integer readCount;
|
||||
// 内容
|
||||
private String content;
|
||||
// 作者
|
||||
private String authorId;
|
||||
private String authorName;
|
||||
private String authorAvatar;
|
||||
// 分类
|
||||
private Integer category;
|
||||
// 封面路径
|
||||
private String cover;
|
||||
|
||||
@CreatedDate
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@LastModifiedDate
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
private Integer totalCommentReplyCount;
|
||||
}
|
Loading…
Reference in new issue