package com.gxwebsoft.oa.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 应用管理记录表查询参数
 *
 * @author 科技小王子
 * @since 2023-03-28 10:45:39
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "AppParam对象", description = "应用管理记录表查询参数")
public class AppParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "应用名称")
    private String appName;

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

    @ApiModelProperty(value = "应用标识")
    private String appCode;

    @ApiModelProperty(value = "应用类型")
    private String appType;

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

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

    @ApiModelProperty(value = "应用图标")
    private String appIcon;

    @ApiModelProperty(value = "二维码")
    private String appQrcode;

    @ApiModelProperty(value = "链接地址")
    private String appUrl;

    @ApiModelProperty(value = "后台管理地址")
    private String adminUrl;

    @ApiModelProperty(value = "下载地址")
    private String downUrl;

    @ApiModelProperty(value = "仓库地址")
    private String gitUrl;

    @ApiModelProperty(value = "IP白名单")
    private String ipAddress;

    @ApiModelProperty(value = "应用截图")
    private String images;

    @ApiModelProperty(value = "应用包名")
    private String packageName;

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

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

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "应用介绍")
    private String content;

    @ApiModelProperty(value = "项目需求")
    private String requirement;

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

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

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

    @ApiModelProperty(value = "评分")
    private String score;

    @ApiModelProperty(value = "星级")
    private String star;

    @ApiModelProperty(value = "菜单路由地址")
    private String path;

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

    @ApiModelProperty(value = "权限标识")
    private String authority;

    @ApiModelProperty(value = "打开位置")
    private String target;

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

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

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

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

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

    @ApiModelProperty(value = "版本号")
    private String version;

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

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

    @ApiModelProperty(value = "应用状态")
    private String appStatus;

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

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

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

    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;

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

    @ApiModelProperty(value = "企业名称")
    private String companyName;

    @ApiModelProperty(value = "租户编号")
    private String tenantCode;

    @ApiModelProperty(value = "按APPID集搜索")
    @TableField(exist = false)
    private Set<Integer> appIds;

}
