package com.dsh.other.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import java.util.Date;
|
|
|
|
/**
|
* @author zhibing.pu
|
* @date 2023/7/11 17:35
|
*/
|
@Data
|
@TableName("t_banner")
|
public class Banner {
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 位置(1=首页,2=线上课得积分,3=看视频得奖励,4=常见问题)
|
*/
|
@TableField("position")
|
private Integer position;
|
/**
|
* 图片地址
|
*/
|
@TableField("img")
|
private String img;
|
/**
|
* 跳转页面id
|
*/
|
@TableField("jumpPage")
|
private Integer jumpPage;
|
/**
|
* 排序
|
*/
|
@TableField("sort")
|
private Integer sort;
|
/**
|
* 状态(1=正常,2=冻结,3=删除)
|
*/
|
@TableField("state")
|
private Integer state;
|
/**
|
* 添加时间
|
*/
|
@TableField("insertTime")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
private Date insertTime;
|
/**
|
* 跳转模块
|
*/
|
@TableField("model")
|
private String model;
|
/**
|
* 广告名称
|
*/
|
@TableField("name")
|
private String name;
|
/**
|
* 跳转类型
|
*/
|
@TableField("type")
|
private String type;
|
/**
|
* 跳转类型
|
*/
|
@TableField("turnId")
|
private String turnId;
|
/**
|
* 跳转页面
|
*/
|
@TableField("page")
|
private String page;
|
/**
|
* 跳转类型id
|
*/
|
@TableField("typeId")
|
private Integer typeId;
|
}
|