From 3058f3d94dc3dbfdbf1d69c4b5143f95d674827d Mon Sep 17 00:00:00 2001
From: 安瑾然 <107107765@qq.com>
Date: 星期二, 19 七月 2022 13:36:26 +0800
Subject: [PATCH] commit
---
src/main/java/com/example/jz/modle/entity/Publicity.java | 95 +++++++++++++++--------------------------------
1 files changed, 30 insertions(+), 65 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..a8bf353 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,6 @@
*/
@Override
protected Serializable pkVal() {
- return this.publicityId;
+ return this.id;
}
- }
-
+}
--
Gitblit v1.8.0