7 changed files with 186 additions and 14 deletions
@ -0,0 +1,62 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 政府端:文章预览接口返参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/5 10:56 |
|||
*/ |
|||
@Data |
|||
public class DraftDetailResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 6156947260878857897L; |
|||
/** |
|||
* 草稿Id |
|||
*/ |
|||
private String draftId; |
|||
|
|||
/** |
|||
* 标题 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 发布单位名称 |
|||
*/ |
|||
private String publisherName; |
|||
|
|||
/** |
|||
* 发布日期 |
|||
*/ |
|||
@JsonFormat(pattern="yyyy-MM-dd") |
|||
private Date publishDate; |
|||
|
|||
/** |
|||
* 访问量 |
|||
*/ |
|||
private Integer visitRecordCount; |
|||
|
|||
/** |
|||
* 标签字符串 已废弃 |
|||
*/ |
|||
@JsonIgnore |
|||
private String tags; |
|||
|
|||
/** |
|||
* 内容列表 |
|||
*/ |
|||
private List<GovDraftContentDTO> articleContentList; |
|||
|
|||
/** |
|||
* 标签名称数组 |
|||
*/ |
|||
private String[] tagNameList; |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 政府端:文章预览接口返参DTO-内容列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/5 12:10 |
|||
*/ |
|||
@Data |
|||
public class GovDraftContentDTO implements Serializable { |
|||
private static final long serialVersionUID = 5653062658148122552L; |
|||
|
|||
/** |
|||
* 内容类型,图片:img;文字:text |
|||
*/ |
|||
private String contentType; |
|||
|
|||
/** |
|||
* 内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
} |
Loading…
Reference in new issue