| | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | |
| | | * 主键 |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | @ApiModelProperty(value = "id", required = false) |
| | | private Integer id; |
| | | /** |
| | | * 数据类型id |
| | | */ |
| | | @TableField("sys_data_type_id") |
| | | @ApiModelProperty(value = "类别", required = true) |
| | | private Integer sysDataTypeId; |
| | | /** |
| | | * 标题 |
| | | */ |
| | | @TableField("title") |
| | | @ApiModelProperty(value = "标题", required = true) |
| | | private String title; |
| | | /** |
| | | * 列表图片 |
| | | */ |
| | | @TableField("img_url") |
| | | @ApiModelProperty(value = "图片", required = true) |
| | | private String imgUrl; |
| | | /** |
| | | * 富文本内容 |
| | | */ |
| | | @TableField("content") |
| | | @ApiModelProperty(value = "内容", required = true) |
| | | private String content; |
| | | /** |
| | | * 纯文本内容 |
| | |
| | | * 添加时间 |
| | | */ |
| | | @TableField("insert_time") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date insertTime; |
| | | @TableField("create_by") |
| | | private Integer createBy; |
| | | |
| | | @TableField(exist = false) |
| | | private String createByName; |
| | | |
| | | @TableField(exist = false) |
| | | private String type; |
| | | } |