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:27:01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "OaAssetsDomainParam对象", description = "域名查询参数")
public class OaAssetsDomainParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "服务器ID")
    @QueryField(type = QueryType.EQ)
    private Integer assetsId;

    @Schema(description = "域名")
    private String name;

    @Schema(description = "域名标识")
    private String code;

    @Schema(description = "注册厂商")
    private String brand;

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

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

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

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

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

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

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

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

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

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

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

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

}
