package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 终端图片配置  - 通用功能
 * </p>
 *
 * @author XKF
 * @since 2025-05-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SZDZ2_IMAGECONFIG")
@KeySequence(value = "SEQ_SZDZ2_IMAGECONFIG")
@ApiModel(value="Szdz2Imageconfig对象", description="终端图片配置  - 通用功能")
public class Szdz2Imageconfig extends Model<Szdz2Imageconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "配置ID(SEQ_SZDZ2_IMAGECONFIG)")
    @TableId(value = "CONFIGID", type = IdType.INPUT)
    private Long configid;

    @ApiModelProperty(value = "类型 - 1:首页轮播(移动) 2:我的(移动) 3:首页(PC) ")
    @TableField("IMAGETYPE")
    private Integer imagetype;

    @ApiModelProperty(value = "标题")
    @TableField("TITLE")
    private String title;

    @ApiModelProperty(value = "图片")
    @TableField("IMAGEPATH")
    private String imagepath;

    @ApiModelProperty(value = "链接(地址或商品ID)")
    @TableField("URL")
    private String url;

    @ApiModelProperty(value = "排序")
    @TableField("SORT")
    private Integer sort;

    @ApiModelProperty(value = "是否展示 - 0:不展示 1:展示")
    @TableField("ISSHOW")
    private Integer isshow;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATEDATE")
    private Date createdate;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATEDATE")
    private Date updatedate;

    @ApiModelProperty(value = "操作人")
    @TableField("MODIFIERID")
    private Long modifierid;

    @ApiModelProperty(value = "所属机构ID")
    @TableField("AREAUSERID")
    private Long areauserid;

    @ApiModelProperty(value = "链接类型 - 0:无 1:直接地址 2:商品ID 3:图片详情 4:App功能 5:微信小程序 code:urltype")
    @TableField("URLTYPE")
    private Integer urltype;

    @ApiModelProperty(value = "详情图片 [UrlType = 3时 有且必填，其它类型不需要]")
    @TableField("IMAGEDETAILPATH")
    private String imagedetailpath;


    @Override
    public Serializable pkVal() {
        return this.configid;
    }

}
