package com.gxwebsoft.cms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

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

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

/**
 * 网站模版
 *
 * @author 科技小王子
 * @since 2025-01-21 14:21:16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsTemplate对象", description = "网站模版")
public class CmsTemplate implements Serializable {
    private static final long serialVersionUID = 1L;

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

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

    @Schema(description = "模版标识")
    private String code;

    @Schema(description = "缩列图")
    private String image;

    @Schema(description = "类型 1企业官网 2其他")
    private Integer type;

    @Schema(description = "网站关键词")
    private String keywords;

    @Schema(description = "域名前缀")
    private String prefix;

    @Schema(description = "预览地址")
    private String domain;

    @Schema(description = "模版下载地址")
    private String downUrl;

    @Schema(description = "色系")
    private String color;

    @Schema(description = "应用版本 10免费版 20授权版 30永久授权")
    private Integer version;

    @Schema(description = "行业类型(父级)")
    private String industryParent;

    @Schema(description = "行业类型(子级)")
    private String industryChild;

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

    @Schema(description = "是否推荐")
    private Boolean recommend;

    @Schema(description = "是否共享模板")
    private Boolean share;

    @Schema(description = "排序号")
    private Integer sortNumber;

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

    @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;

}
