package com.gxwebsoft.project.param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Set;

import com.baomidou.mybatisplus.annotation.TableField;
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 lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 应用查询参数
 *
 * @author 科技小王子
 * @since 2025-03-14 16:21:11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ProjectParam对象", description = "应用查询参数")
public class ProjectParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "应用名称")
    private String appName;

    @Schema(description = "应用标识")
    private String appCode;

    @Schema(description = "应用秘钥")
    private String appSecret;

    @Schema(description = "上级id, 0是顶级")
    @QueryField(type = QueryType.EQ)
    private Integer parentId;

    @Schema(description = "应用类型")
    private String appType;

    @Schema(description = "应用类型")
    private String appTypeMultiple;

    @Schema(description = "类型, 0菜单, 1按钮")
    @QueryField(type = QueryType.EQ)
    private Integer menuType;

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

    @Schema(description = "企业名称")
    private String companyName;

    @Schema(description = "应用图标")
    private String appIcon;

    @Schema(description = "二维码")
    private String appQrcode;

    @Schema(description = "链接地址")
    private String appUrl;

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

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

    @Schema(description = "链接地址")
    private String serverUrl;

    @Schema(description = "文件服务器")
    private String fileUrl;

    @Schema(description = "回调地址")
    private String callbackUrl;

    @Schema(description = "腾讯文档地址")
    private String docsUrl;

    @Schema(description = "代码仓库地址")
    private String gitUrl;

    @Schema(description = "原型图地址")
    private String prototypeUrl;

    @Schema(description = "IP白名单")
    private String ipAddress;

    @Schema(description = "应用截图")
    private String images;

    @Schema(description = "应用包名")
    private String packageName;

    @Schema(description = "下载次数")
    @QueryField(type = QueryType.EQ)
    private Integer clicks;

    @Schema(description = "安装次数")
    @QueryField(type = QueryType.EQ)
    private Integer installs;

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

    @Schema(description = "应用介绍")
    private String content;

    @Schema(description = "项目需求")
    private String requirement;

    @Schema(description = "开发者(个人或公司)")
    private String developer;

    @Schema(description = "项目负责人")
    private String director;

    @Schema(description = "项目经理")
    private String projectDirector;

    @Schema(description = "业务员")
    private String salesman;

    @Schema(description = "软件定价")
    @QueryField(type = QueryType.EQ)
    private BigDecimal price;

    @Schema(description = "划线价格")
    @QueryField(type = QueryType.EQ)
    private BigDecimal linePrice;

    @Schema(description = "评分")
    private String score;

    @Schema(description = "星级")
    private String star;

    @Schema(description = "菜单路由地址")
    private String path;

    @Schema(description = "菜单组件地址, 目录可为空")
    private String component;

    @Schema(description = "权限标识")
    private String authority;

    @Schema(description = "打开位置")
    private String target;

    @Schema(description = "是否隐藏, 0否, 1是(仅注册路由不显示在左侧菜单)")
    @QueryField(type = QueryType.EQ)
    private Integer hide;

    @Schema(description = "禁止搜索，1禁止 0 允许")
    @QueryField(type = QueryType.EQ)
    private Integer search;

    @Schema(description = "菜单侧栏选中的path")
    private String active;

    @Schema(description = "其它路由元信息")
    private String meta;

    @Schema(description = "版本，0正式版 1体验版 2开发版")
    private String edition;

    @Schema(description = "版本号")
    private String version;

    @Schema(description = "是否已安装")
    @QueryField(type = QueryType.EQ)
    private Integer isUse;

    @Schema(description = "附近1")
    private String file1;

    @Schema(description = "附件2")
    private String file2;

    @Schema(description = "附件3")
    private String file3;

    @Schema(description = "是否显示续费提醒")
    @QueryField(type = QueryType.EQ)
    private Boolean showExpiration;

    @Schema(description = "是否作为案例展示")
    @QueryField(type = QueryType.EQ)
    private Integer showCase;

    @Schema(description = "是否显示在首页")
    @QueryField(type = QueryType.EQ)
    private Integer showIndex;

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

    @Schema(description = "到期时间")
    private String expirationTime;

    @Schema(description = "所属年份")
    @QueryField(type = QueryType.EQ)
    private Integer year;

    @Schema(description = "所属月份")
    @QueryField(type = QueryType.EQ)
    private Integer month;

    @Schema(description = "所属日期")
    @QueryField(type = QueryType.EQ)
    private Integer day;

    @Schema(description = "状态, 0正常, 1 即将过期")
    @QueryField(type = QueryType.EQ)
    private Integer soon;

    @Schema(description = "续费金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal renewMoney;

    @Schema(description = "应用状态")
    private String appStatus;

    @Schema(description = "排序(数字越小越靠前)")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @Schema(description = "状态, 0正常, 1冻结")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

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

    @Schema(description = "ID集合")
    @QueryField(type = QueryType.IN)
    private Set<Integer> appIds;

    @Schema(description = "机构id")
    @QueryField(type = QueryType.EQ)
    private Integer organizationId;

    @Schema(description = "租户编号")
    private String tenantCode;

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

    @Schema(description = "登录手机号")
    @QueryField(type = QueryType.EQ)
    private String loginPhone;

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

    @QueryField(value = "expiration_time", type = QueryType.GE)
    @TableField(exist = false)
    @Schema(description = "到期时间起始值")
    private String expirationTimeStart;

    @QueryField(value = "expiration_time", type = QueryType.LE)
    @TableField(exist = false)
    @Schema(description = "到期时间结束值")
    private String expirationTimeEnd;


}
