From 77e4741346fb02d5a1f845b89f681a56d06dad0e Mon Sep 17 00:00:00 2001
From: 安瑾然 <107107765@qq.com>
Date: 星期二, 12 七月 2022 14:59:29 +0800
Subject: [PATCH] minio接口修正,宣传、常见问题接口开发

---
 src/main/java/com/example/jz/modle/entity/Publicity.java |   94 +++++++++++++++--------------------------------
 1 files changed, 30 insertions(+), 64 deletions(-)

diff --git a/src/main/java/com/example/jz/modle/entity/Publicity.java b/src/main/java/com/example/jz/modle/entity/Publicity.java
index 9f4093c..8b2d8ae 100644
--- a/src/main/java/com/example/jz/modle/entity/Publicity.java
+++ b/src/main/java/com/example/jz/modle/entity/Publicity.java
@@ -1,7 +1,17 @@
 package com.example.jz.modle.entity;
 
 import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
 import com.baomidou.mybatisplus.extension.activerecord.Model;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.NoArgsConstructor;
+import lombok.experimental.Accessors;
+
 import java.io.Serializable;
 
 /**
@@ -10,79 +20,35 @@
  * @author makejava
  * @since 2022-07-11 16:35:57
  */
-@SuppressWarnings("serial")
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = true)
+@TableName("publicity")
 public class Publicity extends Model<Publicity> {
     //鍏叡瀹d紶id
-    private Integer publicityId;
+    @TableId
+    @ApiModelProperty(value = "鍏叡瀹d紶id")
+    private Integer id;
     //鍏叡瀹d紶鏍囬
+    @ApiModelProperty(value = "鍏叡瀹d紶鏍囬")
     private String publicityTitle;
     //鐘舵�侊紝0涓烘湭鍙戝竷锛�1涓哄彂甯冿紝2涓轰笅鏋�
+    @ApiModelProperty(value = "鐘舵�侊紝0涓烘湭鍙戝竷锛�1涓哄彂甯冿紝2涓轰笅鏋�")
     private Integer status;
     //鍐呭
+    @ApiModelProperty(value = "鍐呭")
     private String text;
-    //鍒涘缓浜�
-    private String creator;
+    //鍒涘缓浜篿d
+    @ApiModelProperty(value = "鍒涘缓浜篿d")
+    private Integer creator;
     //鍒涘缓鏃堕棿
-    private Date createTime;
+    @ApiModelProperty(value = "鍒涘缓鏃堕棿")
+    private Date ctime;
     //鍙戝竷鏃堕棿
+    @ApiModelProperty(value = "鍙戝竷鏃堕棿")
     private Date releaseTime;
-
-
-    public Integer getPublicityId() {
-        return publicityId;
-    }
-
-    public void setPublicityId(Integer publicityId) {
-        this.publicityId = publicityId;
-    }
-
-    public String getPublicityTitle() {
-        return publicityTitle;
-    }
-
-    public void setPublicityTitle(String publicityTitle) {
-        this.publicityTitle = publicityTitle;
-    }
-
-    public Integer getStatus() {
-        return status;
-    }
-
-    public void setStatus(Integer status) {
-        this.status = status;
-    }
-
-    public String getText() {
-        return text;
-    }
-
-    public void setText(String text) {
-        this.text = text;
-    }
-
-    public String getCreator() {
-        return creator;
-    }
-
-    public void setCreator(String creator) {
-        this.creator = creator;
-    }
-
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    public Date getReleaseTime() {
-        return releaseTime;
-    }
-
-    public void setReleaseTime(Date releaseTime) {
-        this.releaseTime = releaseTime;
-    }
 
     /**
      * 鑾峰彇涓婚敭鍊�
@@ -91,7 +57,7 @@
      */
     @Override
     protected Serializable pkVal() {
-        return this.publicityId;
+        return this.id;
     }
-    }
+}
 

--
Gitblit v1.8.0