| | |
| | | package com.stylefeng.guns.modular.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import com.baomidou.mybatisplus.activerecord.Model; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import lombok.Data; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 通知 |
| | | * <p> |
| | | * 发布公告和滚动消息 |
| | | * </p> |
| | | * |
| | | * @author 吕雪 |
| | | * @since 2020-06-10 |
| | | */ |
| | | @TableName("t_notices") |
| | | public class TNotices extends BaseBean { |
| | | @Data |
| | | public class TNotices extends Model<TNotices> { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主键id |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | /** |
| | | * 标题 |
| | | */ |
| | | @TableField("title") |
| | | private String title; |
| | | /** |
| | | * 内容 |
| | | */ |
| | | @TableField("content") |
| | | private String content; |
| | | /** |
| | | * 排序 |
| | | */ |
| | | @TableField("sort") |
| | | private Integer sort; |
| | | /** |
| | | * 是否显示/发布(1=是,2=否) |
| | | */ |
| | | @TableField("isShow") |
| | | private Integer isShow; |
| | | /** |
| | | * 是否首页弹框(1=否,2=是) |
| | | */ |
| | | private Integer isAlert; |
| | | /** |
| | | * 是否播报(1=是,2=否) |
| | | */ |
| | | @TableField("isBroadcast") |
| | | private Integer isBroadcast; |
| | | /** |
| | | * 公告类型(1=滚动消息,2=公告) |
| | | */ |
| | | @TableField("type") |
| | | private Integer type; |
| | | /** |
| | | * 图片地址 |
| | | * 图片路径 |
| | | */ |
| | | @TableField("imgUrl") |
| | | private String imgUrl; |
| | | /** |
| | | * 1:创建,2:修改,3:删除 |
| | | */ |
| | | private String flag; |
| | | private Date insertTime; |
| | | private Integer insertUser; |
| | | private Date updateTime; |
| | | private Integer updateUser; |
| | | /** |
| | | * 是否删除 1=否 2=是 |
| | | */ |
| | | private Integer isDelete; |
| | | /** |
| | | * 是否发布用户 1=否 2=是 |
| | | */ |
| | | private Integer isUser; |
| | | /** |
| | | * 是否发布司机 1=否 2=是 |
| | | */ |
| | | private Integer isDriver; |
| | | |
| | | public Integer getIsUser() { |
| | | return isUser; |
| | | } |
| | | |
| | | public void setIsUser(Integer isUser) { |
| | | this.isUser = isUser; |
| | | } |
| | | |
| | | public Integer getIsDriver() { |
| | | return isDriver; |
| | | } |
| | | |
| | | public void setIsDriver(Integer isDriver) { |
| | | this.isDriver = isDriver; |
| | | } |
| | | |
| | | public Integer getIsDelete() { |
| | | return isDelete; |
| | | } |
| | | |
| | | public void setIsDelete(Integer isDelete) { |
| | | this.isDelete = isDelete; |
| | | } |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getTitle() { |
| | | return title; |
| | |
| | | this.imgUrl = imgUrl; |
| | | } |
| | | |
| | | public String getFlag() { |
| | | return flag; |
| | | } |
| | | |
| | | public void setFlag(String flag) { |
| | | this.flag = flag; |
| | | } |
| | | |
| | | public Date getInsertTime() { |
| | | return insertTime; |
| | | } |
| | | |
| | | public void setInsertTime(Date insertTime) { |
| | | this.insertTime = insertTime; |
| | | } |
| | | |
| | | public Integer getInsertUser() { |
| | | return insertUser; |
| | | } |
| | | |
| | | public void setInsertUser(Integer insertUser) { |
| | | this.insertUser = insertUser; |
| | | } |
| | | |
| | | public Date getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Date updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public Integer getUpdateUser() { |
| | | return updateUser; |
| | | } |
| | | |
| | | public void setUpdateUser(Integer updateUser) { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.id; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "TNotice{" + |
| | | "title='" + title + '\'' + |
| | | ", content='" + content + '\'' + |
| | | return "TNotices{" + |
| | | "id=" + id + |
| | | ", title=" + title + |
| | | ", content=" + content + |
| | | ", sort=" + sort + |
| | | ", isShow=" + isShow + |
| | | ", isBroadcast=" + isBroadcast + |
| | | ", type=" + type + |
| | | ", imgUrl='" + imgUrl + '\'' + |
| | | '}'; |
| | | ", imgUrl=" + imgUrl + |
| | | ", flag=" + flag + |
| | | ", insertTime=" + insertTime + |
| | | ", insertUser=" + insertUser + |
| | | ", updateTime=" + updateTime + |
| | | ", updateUser=" + updateUser + |
| | | "}"; |
| | | } |
| | | } |