package com.example.jz.modle.entity; import com.baomidou.mybatisplus.annotation.IdType; 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; import java.util.Date; @Data @NoArgsConstructor @AllArgsConstructor @Accessors(chain = true) @EqualsAndHashCode(callSuper = true) @TableName("police_announcement") public class PoliceAnnouncement extends Model { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) @ApiModelProperty(value = "警方公告Id") private Integer id; /** * 标题 */ @ApiModelProperty(value = "公告标题") private String title; /** * 状态0:未发布,1:已发布 */ @ApiModelProperty(value = "公告状态,状态0:未发布,1:已发布") private Integer status; /** * 媒体 */ @ApiModelProperty(value = "图片") private String media; /** * 内容 */ @ApiModelProperty(value = "内容") private String text; /** * 创建时间 */ @ApiModelProperty(value = "创建时间") private Date ctime; @Override protected Serializable pkVal() { return this.id; } }