package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * banner管理
 * @TableName life_class_banner
 */
@TableName(value ="life_class_banner")
@Data
@JsonInclude
@ApiModel(value = "LifeClassBanner对象", description = "banner管理")
public class LifeClassBanner {
    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "排序")
    private Integer bannerSort;

    @ApiModelProperty(value = "banner标题")
    private String bannerTitle;

    @ApiModelProperty(value = "banner简介")
    private String bannerIntroduce;

    @ApiModelProperty(value = "图片url")
    private String bannerImg;

    @ApiModelProperty(value = "浏览量")
    private Integer playCount;

    @ApiModelProperty(value = "是否轮播(0:否,1:是)")
    private Integer playFlag;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    private Integer updatedUserId;
}