package com.xhpc.card.domain;

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

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 查询卡用户条件实体类
 *
 * @author WH
 * @date 2022/1/28 16:18
 * @since version-1.0
 */
@NoArgsConstructor
@Data
public class SearchCardUserQueryCondition {


    /**
     * userType
     */
    @JsonProperty("userType")
    @NotNull(message = "userType的参数名不正确或者userType的值为空，请检查传入参数")
    private Integer userType;

    private String name;

    private String phone;
    /**
     * cardClassification
     */
    @JsonProperty("cardClassification")
    @NotNull(message = "cardClassification的参数名不正确或者cardClassification的值为空，请检查传入参数")
    private Integer cardClassification;
    /**
     * userAccount
     */
    @JsonProperty("userAccount")
    private String userAccount;
    /**
     * currentPage
     */
    @JsonProperty("currentPage")
    @Min(value = 1, message = "currentPage必须大于等于1")
    @NotNull(message = "currentPage的参数名不正确或者currentPage的值为空，请检查传入参数")
    private Long currentPage;
    /**
     * items
     */
    @JsonProperty("items")
    @Min(value = 1, message = "items必须大于等于1")
    @NotNull(message = "items的参数名不正确或者items的值为空，请检查传入参数")
    private Long items;
    /**
     * 授权运营商名称
     */
    private String grantOperatorName;

}
