package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wy
 */
@Data
public class AdvertInfo implements Serializable {

    @TableId
    private Integer id;

    @ApiModelProperty("广告名称")
    private String advertName;

    @ApiModelProperty("广告图片")
    private String advertImg;

    @ApiModelProperty("背景图")
    private String advertBack;

    @ApiModelProperty("跳转路径")
    private String jumpUrl;

    @ApiModelProperty("排序")
    private Integer advertSort;

    @ApiModelProperty("状态 1正常 2删除")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableLogic
    private Integer deleted;
}
