From bd72030ab8cb40a02b5b2ed954b20151b23d776f Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 22 Mar 2024 14:33:43 +0800
Subject: [PATCH] 轮播图添加字段

---
 src/main/java/org/springblade/modules/rotation/entity/RotationEntity.java |   96 +++++++++++++++++++++++++-----------------------
 1 files changed, 50 insertions(+), 46 deletions(-)

diff --git a/src/main/java/org/springblade/modules/rotation/entity/RotationEntity.java b/src/main/java/org/springblade/modules/rotation/entity/RotationEntity.java
index edd6dd5..800951a 100644
--- a/src/main/java/org/springblade/modules/rotation/entity/RotationEntity.java
+++ b/src/main/java/org/springblade/modules/rotation/entity/RotationEntity.java
@@ -16,10 +16,7 @@
  */
 package org.springblade.modules.rotation.entity;
 
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
-import com.baomidou.mybatisplus.annotation.TableLogic;
-import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.*;
 import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.databind.annotation.JsonSerialize;
 import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
@@ -53,58 +50,65 @@
 	@TableId(value = "id", type = IdType.AUTO)
 	private Integer id;
 
-	/**
-	 * 名称
-	 */
-	@ApiModelProperty(value = "名称")
+	/** 名称 */
+	@ApiModelProperty(value = "名称", example = "")
+	@TableField("name")
 	private String name;
-	/**
-	 * 类型 3:系统 1:公安 2:综治
-	 */
-	@ApiModelProperty(value = "类型 3:系统 1:公安 2:综治")
+
+	/** 类型 1:系统 2:社区 */
+	@ApiModelProperty(value = "类型 1:系统 2:社区", example = "")
+	@TableField("type")
 	private Integer type;
-	/**
-	 * 内容
-	 */
-	@ApiModelProperty(value = "内容")
+
+	/** 内容 */
+	@ApiModelProperty(value = "内容", example = "")
+	@TableField("context")
 	private String context;
-	/**
-	 * 图片地址
-	 */
-	@ApiModelProperty(value = "图片地址")
+
+	/** 图片地址 */
+	@ApiModelProperty(value = "图片地址", example = "")
+	@TableField("url")
 	private String url;
-	/**
-	 * 跳转地址
-	 */
-	@ApiModelProperty(value = "跳转地址")
+
+	/** 跳转地址 */
+	@ApiModelProperty(value = "跳转地址", example = "")
+	@TableField("junp_url")
 	private String junpUrl;
 
-	/**
-	 * 所属社区编号
-	 */
-	@ApiModelProperty(value = "所属社区编号")
+	/** 所属社区编号 */
+	@ApiModelProperty(value = "所属社区编号", example = "")
+	@TableField("community_code")
 	private String communityCode;
 
-	/**
-	 * 创建人
-	 */
-	@JsonSerialize(using = ToStringSerializer.class)
-	@ApiModelProperty("创建人")
-	private Long createUser;
-
-	/**
-	 * 创建时间
-	 */
-	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
-	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
-	@ApiModelProperty("创建时间")
+	/** 创建时间 */
+	@ApiModelProperty(value = "创建时间", example = "")
+	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+	@TableField("create_time")
 	private Date createTime;
 
-	/**
-	 * 是否删除
-	 */
-	@TableLogic
-	@ApiModelProperty("是否已删除 0:否  1:是")
+	/** 创建人 */
+	@ApiModelProperty(value = "创建人", example = "")
+	@TableField("create_user")
+	private Long createUser;
+
+	/** 是否删除  0:否  1:是 */
+	@ApiModelProperty(value = "是否删除  0:否  1:是", example = "")
+	@TableField("is_deleted")
 	private Integer isDeleted;
 
+	/** 范围 */
+	@ApiModelProperty(value = "范围", example = "")
+	@TableField("rotation_range")
+	private String rotationRange;
+
+	/** 文章id */
+	@ApiModelProperty(value = "文章id", example = "")
+	@TableField("article_id")
+	private Integer articleId;
+
+	/** 是否公开:1:否 2:是 */
+	@ApiModelProperty(value = "是否公开:1:否 2:是", example = "")
+	@TableField("public_flag")
+	private Integer publicFlag;
+
 }

--
Gitblit v1.9.3