package com.yida.data.common.core.entity.school.secondClass;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.net.InetAddress;
import java.time.LocalDateTime;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 */
@Data
public class EduSecondClassBanner {

    @ApiModelProperty(value = "")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "")
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    /**
     *
     */
    @ApiModelProperty(value = "")
    @TableField(value = "create_id", fill = FieldFill.INSERT)
    private Long createId;

    /**
     *
     */
    @ApiModelProperty(value = "")
    @TableField(value = "update_date", fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateDate;

    /**
     *
     */
    @ApiModelProperty(value = "")
    @TableField(value = "update_id", fill = FieldFill.UPDATE)
    private Long updateId;

    @TableLogic(value = "0", delval = "1")
    private Integer delFlag;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * banner类型，0-推荐，1-场馆，2-智慧平台，3-名师在线
     */
    private Integer type;

    /**
     * 轮播图数量，最大5
     */
    private Integer num;

    /**
     * 边缘留白，0-是，1-否
     */
    private Integer edgeMargin;

    /**
     * 停留时间，单位s，最大5
     */
    private Integer time;

    /**
     * 图片地址，逗号连接
     */
    private String url;

    /**
     * 图片点击跳转地址，逗号链接
     */
    private String linkUrl;
}
