From 7ea5eece501c98a91555a5358931367e78e9d23b Mon Sep 17 00:00:00 2001
From: baizonghao <1719256278@qq.com>
Date: 星期四, 25 五月 2023 15:40:09 +0800
Subject: [PATCH] 11
---
src/main/java/com/example/jz/modle/entity/Publicity.java | 97 ++++++++++++++++--------------------------------
1 files changed, 32 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..68c63c9 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,37 @@
* @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;
- }
+ @ApiModelProperty(value = "鍥剧墖")
+ private String photoStr;
/**
* 鑾峰彇涓婚敭鍊�
@@ -91,7 +59,6 @@
*/
@Override
protected Serializable pkVal() {
- return this.publicityId;
+ return this.id;
}
- }
-
+}
--
Gitblit v1.8.0