diff --git a/epdc-cloud-news-client/src/main/java/com/elink/esua/epdc/dto/NewsCategoryDTO.java b/epdc-cloud-news-client/src/main/java/com/elink/esua/epdc/dto/NewsCategoryDTO.java index d2d70c7..7617478 100644 --- a/epdc-cloud-news-client/src/main/java/com/elink/esua/epdc/dto/NewsCategoryDTO.java +++ b/epdc-cloud-news-client/src/main/java/com/elink/esua/epdc/dto/NewsCategoryDTO.java @@ -19,7 +19,9 @@ package com.elink.esua.epdc.dto; import java.io.Serializable; import java.util.Date; + import lombok.Data; + /** * 新闻类别表 * @@ -29,61 +31,66 @@ import lombok.Data; @Data public class NewsCategoryDTO implements Serializable { - private static final long serialVersionUID = 1L; - - /** - * ID - */ - private String id; - - /** - * 类别名称 - */ - private String categoryName; - - /** - * 类别编码 - */ - private String categoryCode; - - /** - * 描述 - */ - private String description; - - /** - * 排序 - */ - private Integer sort; - - /** - * 删除标识 0:未删除,1:已删除 - */ - private String delFlag; - - /** - * 乐观锁 - */ - private Integer revision; - - /** - * 创建人 - */ - private String createdBy; - - /** - * 创建时间 - */ - private Date createdTime; - - /** - * 更新人 - */ - private String updatedBy; - - /** - * 更新时间 - */ - private Date updatedTime; + private static final long serialVersionUID = 8032728408799898024L; + + /** + * ID + */ + private String id; + + /** + * 类别名称 + */ + private String categoryName; + + /** + * 类别编码 + */ + private String categoryCode; + + /** + * 描述 + */ + private String description; + + /** + * 排序 + */ + private Integer sort; + + /** + * 是否有独立的模块功能 0:否;1:是 + */ + private String independentFlag; + + /** + * 删除标识 0:未删除,1:已删除 + */ + private String delFlag; + + /** + * 乐观锁 + */ + private Integer revision; + + /** + * 创建人 + */ + private String createdBy; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private String updatedBy; + + /** + * 更新时间 + */ + private Date updatedTime; } \ No newline at end of file diff --git a/epdc-cloud-news-client/src/main/java/com/elink/esua/epdc/enums/IndependentFunctionCodeEnum.java b/epdc-cloud-news-client/src/main/java/com/elink/esua/epdc/enums/IndependentFunctionCodeEnum.java new file mode 100644 index 0000000..7092839 --- /dev/null +++ b/epdc-cloud-news-client/src/main/java/com/elink/esua/epdc/enums/IndependentFunctionCodeEnum.java @@ -0,0 +1,34 @@ +package com.elink.esua.epdc.enums; + +/** + * 拥有独立功能的新闻类别编码 + * + * @author work@yujt.net.cn + * @date 2020/5/21 15:22 + */ + +public enum IndependentFunctionCodeEnum { + + SAFETY_PRECAUTIONS("safety_precautions", "平安防范"), + + POLICE_NOTICE("police_notice", "警情通报"); + + + private String code; + + private String name; + + + IndependentFunctionCodeEnum(String code, String name) { + this.code = code; + this.name = name; + } + + public String getCode() { + return code; + } + + public String getName() { + return name; + } +}