package com.gxwebsoft.cms.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Set;

/**
 * 网站信息记录表查询参数
 *
 * @author 科技小王子
 * @since 2024-09-10 20:36:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "CmsWebsiteParam对象", description = "网站信息记录表查询参数")
public class CmsWebsiteParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "站点ID")
    @QueryField(type = QueryType.EQ)
    private Integer websiteId;

    @Schema(description = "站点类型")
    @QueryField(type = QueryType.EQ)
    private Integer type;

    @Schema(description = "网站名称")
    private String websiteName;

    @Schema(description = "网站标识")
    private String websiteCode;

    @Schema(description = "网站密钥")
    private String websiteSecret;

    @Schema(description = "网站LOGO")
    private String websiteIcon;

    @Schema(description = "网站LOGO")
    private String websiteLogo;

    @Schema(description = "网站LOGO(深色模式)")
    private String websiteDarkLogo;

    @Schema(description = "网站类型")
    private String websiteType;

    @Schema(description = "栏目ID")
    @QueryField(type = QueryType.EQ)
    private Integer categoryId;

    @Schema(description = "网站截图")
    private String files;

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

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

    @Schema(description = "绑定域名")
    private String domain;

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

    @Schema(description = "后台管理地址")
    private String adminUrl;

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

    @Schema(description = "服务到期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String expirationTime;

    @Schema(description = "模版ID")
    @QueryField(type = QueryType.EQ)
    private Integer templateId;

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

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

    @Schema(description = "企业ID")
    @QueryField(type = QueryType.EQ)
    private Integer companyId;

    @Schema(description = "开发者名称")
    private String developer;

    @Schema(description = "所在国家")
    private String country;

    @Schema(description = "所在省份")
    private String province;

    @Schema(description = "所在城市")
    private String city;

    @Schema(description = "所在辖区")
    private String region;

    @Schema(description = "经度")
    private String longitude;

    @Schema(description = "纬度")
    private String latitude;

    @Schema(description = "街道地址")
    private String address;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "电子邮箱")
    private String email;

    @Schema(description = "ICP备案号")
    private String icpNo;

    @Schema(description = "公安备案")
    private String policeNo;

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

    @Schema(description = "是否推荐")
    @QueryField(type = QueryType.EQ)
    private Integer recommend;

    @Schema(description = "是否官方产品")
    @QueryField(type = QueryType.EQ)
    private Boolean official;

    @Schema(description = "是否查询超管账号")
    @QueryField(type = QueryType.EQ)
    private Boolean showAdminPhone;

    @Schema(description = "允许展示到插件市场")
    @QueryField(type = QueryType.EQ)
    private Boolean market;

    @Schema(description = "是否插件类型 0应用 1插件")
    @QueryField(type = QueryType.EQ)
    private Boolean plugin;

    @Schema(description = "允许被搜索")
    @QueryField(type = QueryType.EQ)
    private Boolean search;

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

    @Schema(description = "点赞数量")
    private Integer likes;

    @Schema(description = "点击数量")
    private Integer clicks;

    @Schema(description = "购买数量")
    private Integer buys;

    @Schema(description = "下载数量")
    private Integer downloads;

    @Schema(description = "状态 0未开通 1运行中 2维护中 3已关闭 4已欠费停机 5违规关停")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "维护说明")
    private String statusText;

    @Schema(description = "关闭说明")
    private String statusClose;

    @Schema(description = "全局样式")
    private String styles;

    @Schema(description = "运行状态")
    @QueryField(type = QueryType.EQ)
    private Integer running;

    @Schema(description = "排序号")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @Schema(description = "用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "按userId集搜索")
    @QueryField(type = QueryType.EQ)
    private Set<Integer> userIds;

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

    @Schema(description = "按WebsiteIds集搜索")
    private Set<Integer> websiteIds;

    @Schema(description = "当前登录用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer loginUserId;

    @Schema(description = "管理员手机号")
    @QueryField(type = QueryType.EQ)
    private String adminPhone;

}
