package com.gxwebsoft.oa.param;

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.math.BigDecimal;

/**
 * 云服务器查询参数
 *
 * @author 科技小王子
 * @since 2024-10-18 18:34:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "OaAssetsParam对象", description = "云服务器查询参数")
public class OaAssetsParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "资产ID")
    @QueryField(type = QueryType.EQ)
    private Integer assetsId;

    @Schema(description = "资产名称")
    private String name;

    @Schema(description = "资产标识")
    private String code;

    @Schema(description = "资产类型")
    private String type;

    @Schema(description = "服务器厂商")
    private String brand;

    @Schema(description = "服务器配置")
    private String configuration;

    @Schema(description = "初始账号")
    private String account;

    @Schema(description = "初始密码")
    private String password;

    @Schema(description = "(阿里云/腾讯云)登录账号")
    private String brandAccount;

    @Schema(description = "(阿里云/腾讯云)登录密码")
    private String brandPassword;

    @Schema(description = "宝塔面板")
    private String panel;

    @Schema(description = "宝塔面板账号")
    private String panelAccount;

    @Schema(description = "宝塔面板密码")
    private String panelPassword;

    @Schema(description = "财务信息-合同金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal financeAmount;

    @Schema(description = "购买年限")
    @QueryField(type = QueryType.EQ)
    private Integer financeYears;

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

    @Schema(description = "客户名称")
    private String financeCustomerName;

    @Schema(description = "客户联系人")
    private String financeCustomerContact;

    @Schema(description = "客户联系电话")
    private String financeCustomerPhone;

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

    @Schema(description = "客户名称")
    private String customerName;

    @Schema(description = "开放端口")
    private String openPort;

    @Schema(description = "详情内容")
    private String content;

    @Schema(description = "购买时间")
    private String startTime;

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

    @Schema(description = "置顶状态")
    private String isTop;

    @Schema(description = "可见性(public,private,protected)")
    private String visibility;

    @Schema(description = "宝塔接口秘钥")
    private String btSign;

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

    @Schema(description = "描述")
    private String comments;

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

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

    @Schema(description = "可见用户")
    private String userIds;

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

    @Schema(description = "状态, 0正常, 1冻结")
    private String status;

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

}
