package com.xhpc.card.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

/**
 * 查询卡列表的条件实体类
 *
 * @author WH
 * @date 2022/1/26 14:25
 * @since version-1.0
 */
@NoArgsConstructor
@Data
public class QueryConditions {

    /**
     * currentPage
     */
    @Min(value = 1, message = "currentPage最小值必须为1")
    @JsonProperty("currentPage")
    private Long currentPage;
    /**
     * items
     */
    @Min(value = 1, message = "items最小值必须为1")
    @JsonProperty("items")
    private Long items;
    /**
     * 卡号，序列号，模糊查询
     */
    @JsonProperty("cardNumber")
    private String cardNumber;
    /**
     * grantOperatorName
     */
    @JsonProperty("grantOperator")
    private String grantOperator;
    /**
     * classification
     * 0 means offline,1 means online
     */
    @JsonProperty("classification")
    private Integer classification;
    /**
     * cardStatus
     * 0 means no bound,1 means bind
     */
    @JsonProperty("cardStatus")
    private Integer cardStatus;
    /**
     * cardType
     * 0 means platform,1 means operator
     */
    @JsonProperty("cardType")
    private Integer cardType;
    /**
     * userType
     * 0 C端用户 1 流量方用户 2社区用户 3B端用户）
     * 10 means offline user
     */
    @JsonProperty("userType")
    private Integer userType;
    /**
     * 登录用户id
     */
    private Long loginUserId;
    /**
     * 租户id
     */
    private String tenantId;
    /**
     * 授权运营商id(平台会有多个)
     */
    private Object grantOperatorIds;
    /**
     * 运营商编号
     */
    private String corpNo;

}
