Przeglądaj źródła

fixed 文章管理

fushengqian 1 rok temu
rodzic
commit
3afb27a8b6

+ 21 - 126
fuint-application/src/main/java/com/fuint/common/dto/ArticleDto.java

@@ -1,167 +1,62 @@
 package com.fuint.common.dto;
 
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
 import java.io.Serializable;
 import java.util.Date;
 
 /**
  * 文章实体类
+ *
  * Created by FSQ
+ * CopyRight https://www.fuint.cn
  */
+@Getter
+@Setter
 public class ArticleDto implements Serializable {
 
-    /**
-    * 自增ID 
-    */
+    @ApiModelProperty("账户主键ID")
     private Integer id;
 
-   /**
-    * 标题 
-    */
+    @ApiModelProperty("标题")
     private String title;
 
-    /**
-     * 简介
-     */
+    @ApiModelProperty("简介")
     private String brief;
 
-    /**
-     * 所属商户
-     * */
+    @ApiModelProperty("所属商户ID")
     private Integer merchantId;
 
-    /**
-     * 所属店铺
-     * */
+    @ApiModelProperty("所属店铺")
     private Integer storeId;
 
-    /**
-     * 链接地址
-     */
+    @ApiModelProperty("链接地址")
     private String url;
 
-    /**
-     * 点击数
-     */
+    @ApiModelProperty("点击数")
     private Long click;
 
-   /**
-    * 图片地址 
-    */
+    @ApiModelProperty("图片地址")
     private String image;
 
-   /**
-    * 描述 
-    */
+    @ApiModelProperty("描述")
     private String description;
 
-   /**
-    * 创建时间 
-    */
+    @ApiModelProperty("创建时间")
     private Date createTime;
 
-   /**
-    * 更新时间 
-    */
+    @ApiModelProperty("更新时间")
     private Date updateTime;
 
-   /**
-    * 最后操作人 
-    */
+    @ApiModelProperty("最后操作人")
     private String operator;
 
-   /**
-    * A:正常;D:删除 
-    */
+    @ApiModelProperty("状态 A:正常;D:删除")
     private String status;
 
-    /**
-     * 排序
-     * */
+    @ApiModelProperty("排序")
     private Integer sort;
 
-    public Integer getId(){
-        return id;
-    }
-    public void setId(Integer id){
-    this.id=id;
-    }
-    public String getTitle(){
-        return title;
-    }
-    public void setTitle(String title){
-    this.title=title;
-    }
-    public String getBrief(){
-        return brief;
-    }
-    public void setBrief(String brief){
-        this.brief=brief;
-    }
-    public Integer getMerchantId(){
-        return merchantId;
-    }
-    public void setMerchantId(Integer merchantId){
-        this.merchantId=merchantId;
-    }
-    public Integer getStoreId(){
-        return storeId;
-    }
-    public void setStoreId(Integer storeId){
-        this.storeId=storeId;
-    }
-    public String getUrl(){
-        return url;
-    }
-    public void setUrl(String url){
-        this.url=url;
-    }
-    public Long getClick(){
-        return click;
-    }
-    public void setClick(Long click){
-        this.click=click;
-    }
-    public String getImage(){
-        return image;
-    }
-    public void setImage(String image){
-    this.image=image;
-    }
-    public String getDescription(){
-        return description;
-    }
-    public void setDescription(String description){
-    this.description=description;
-    }
-    public Date getCreateTime(){
-        return createTime;
-    }
-    public void setCreateTime(Date createTime){
-    this.createTime=createTime;
-    }
-    public Date getUpdateTime(){
-        return updateTime;
-    }
-    public void setUpdateTime(Date updateTime){
-    this.updateTime=updateTime;
-    }
-    public String getOperator(){
-        return operator;
-    }
-    public void setOperator(String operator){
-    this.operator=operator;
-    }
-    public String getStatus(){
-        return status;
-    }
-    public void setStatus(String status){
-    this.status=status;
-    }
-    public Integer getSort(){
-        return sort;
-    }
-    public void setSort(Integer sort){
-        this.sort=sort;
-    }
 }