forked from rongchao/epmet-cloud-rizhao
20 changed files with 422 additions and 31 deletions
@ -0,0 +1,25 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 查询文章操作记录 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/2 16:42 |
|||
*/ |
|||
@Data |
|||
public class ArticleOperationFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -6659391832410565077L; |
|||
|
|||
public interface AddUserInternalGroup {} |
|||
|
|||
/** |
|||
* 文章id |
|||
*/ |
|||
@NotBlank(message = "文章id不能为空", groups = {ArticleOperationFormDTO.AddUserInternalGroup.class}) |
|||
private String articleId; |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 政府端工作人员,删除草稿入参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/2 15:25 |
|||
*/ |
|||
@Data |
|||
public class DeleteDraftFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -2424432724401298206L; |
|||
|
|||
public interface AddUserInternalGroup {} |
|||
|
|||
/** |
|||
* 草稿id |
|||
*/ |
|||
@NotBlank(message = "草稿id不能为空", groups = {AddUserInternalGroup.class}) |
|||
private String draftId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 政府端:(已发布、已下线)文章详情 入参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/2 17:21 |
|||
*/ |
|||
@Data |
|||
public class GovArticleDetailFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 2149876964249893025L; |
|||
public interface AddUserInternalGroup {} |
|||
|
|||
/** |
|||
* 文章id |
|||
*/ |
|||
@NotBlank(message = "文章id不能为空", groups = {GovArticleDetailFormDTO.AddUserInternalGroup.class}) |
|||
private String articleId; |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 描述一下 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/2 16:44 |
|||
*/ |
|||
@Data |
|||
public class ArticleOperationResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -436748500797911121L; |
|||
private String id; |
|||
private String content; |
|||
private Long createdTime; |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 政府端:(已发布、已下线)文章内容详情 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/3 9:39 |
|||
*/ |
|||
@Data |
|||
public class GovArticleContentDTO implements Serializable { |
|||
private static final long serialVersionUID = 1519014754254863006L; |
|||
/** |
|||
* 内容类型,图片:img;文字:text |
|||
*/ |
|||
private String contentType; |
|||
|
|||
/** |
|||
* 内容 |
|||
*/ |
|||
private String content; |
|||
} |
@ -0,0 +1,69 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 政府端:(已发布、已下线)文章详情 返参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/6/3 9:29 |
|||
*/ |
|||
@Data |
|||
public class GovArticleDetailResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -8328304788721564622L; |
|||
/** |
|||
* 文章id |
|||
*/ |
|||
private String articleId; |
|||
|
|||
/** |
|||
* 标题 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 发布单位名称 |
|||
*/ |
|||
private String publisherName; |
|||
|
|||
/** |
|||
* 发布日期 |
|||
*/ |
|||
@JsonFormat(pattern="yyyy-MM-dd") |
|||
private Date publishDate; |
|||
|
|||
/** |
|||
* 访问量 |
|||
*/ |
|||
private Integer visitRecordCount; |
|||
|
|||
/** |
|||
* 发布范围字符串 |
|||
*/ |
|||
private String publishRangeDesc; |
|||
|
|||
/** |
|||
* 标签字符串 |
|||
*/ |
|||
private String tags; |
|||
|
|||
/** |
|||
* 发布状态 已发布:published;已下线:offline |
|||
*/ |
|||
private String statusFlag; |
|||
|
|||
/** |
|||
* 草稿Id,重新编辑时使用 |
|||
*/ |
|||
private String draftId; |
|||
|
|||
/** |
|||
* 内容列表 |
|||
*/ |
|||
private List<GovArticleContentDTO> articleContentList; |
|||
} |
Loading…
Reference in new issue