package com.gxwebsoft.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 模型
 *
 * @author 科技小王子
 * @since 2024-11-26 15:44:53
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsModel对象", description = "模型")
public class CmsModel implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "model_id", type = IdType.AUTO)
    private Integer modelId;

    @Schema(description = "模型名称")
    private String name;

    @Schema(description = "唯一标识")
    private String model;

    @Schema(description = "列表页路径")
    private String component;

    @Schema(description = "详情页路径")
    private String componentDetail;

    @Schema(description = "模型banner图片")
    private String banner;

    @Schema(description = "文章后缀")
    private String suffix;

    @Schema(description = "拇指图片")
    private String thumb;

    @Schema(description = "封面图宽")
    private String imageWidth;

    @Schema(description = "封面图高")
    private String imageHeight;

    @Schema(description = "css样式")
    private String style;

    @Schema(description = "Banner上的标题")
    private String title;

    @Schema(description = "列表显示方式(10小图展示 20大图展示)")
    private Integer showType;

    @Schema(description = "是否禁用")
    private Boolean disabled;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 0已发布, 1待审核 2已驳回 3违规内容")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
