| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | * @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> { |
| | | //公共宣传id |
| | | private Integer publicityId; |
| | | @TableId |
| | | @ApiModelProperty(value = "公共宣传id") |
| | | private Integer id; |
| | | //公共宣传标题 |
| | | @ApiModelProperty(value = "公共宣传标题") |
| | | private String publicityTitle; |
| | | //状态,0为未发布,1为发布,2为下架 |
| | | @ApiModelProperty(value = "状态,0为未发布,1为发布,2为下架") |
| | | private Integer status; |
| | | //内容 |
| | | @ApiModelProperty(value = "内容") |
| | | private String text; |
| | | //创建人 |
| | | private String creator; |
| | | //创建人id |
| | | @ApiModelProperty(value = "创建人id") |
| | | 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; |
| | | } |
| | | |
| | | /** |
| | | * 获取主键值 |
| | |
| | | */ |
| | | @Override |
| | | protected Serializable pkVal() { |
| | | return this.publicityId; |
| | | return this.id; |
| | | } |
| | | } |
| | | |
| | | } |