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.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

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

/**
 * 网站设置
 *
 * @author 科技小王子
 * @since 2025-02-19 01:35:44
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "CmsWebsiteSetting对象", description = "网站设置")
public class CmsWebsiteSetting implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "关联网站ID")
    private Integer websiteId;

    @Schema(description = "是否官方插件")
    private Boolean official;

    @Schema(description = "是否展示在插件市场")
    private Boolean market;

    @Schema(description = "是否允许被搜索")
    private Boolean search;

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

    @Schema(description = "文章是否需要审核")
    private Boolean articleReview;

    @Schema(description = "是否插件 0应用1 插件 ")
    private Boolean plugin;

    @Schema(description = "编辑器类型 1 富文本编辑器 2 Markdown编辑器")
    private Integer editor;

    @Schema(description = "显示站内搜索")
    private Boolean searchBtn;

    @Schema(description = "显示登录注册功能")
    private Boolean loginBtn;

    @Schema(description = "显示悬浮客服工具")
    private Boolean floatTool;

    @Schema(description = "显示版权链接")
    private Boolean copyrightLink;

    @Schema(description = "导航栏最多显示数量")
    private Boolean maxMenuNum;

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

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

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

}
