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.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户信息
 *
 * @author WH
 * @date 2022/1/18 17:34
 * @since version-1.0
 */
@NoArgsConstructor
@Data
public class UserInfo {


    /**
     * userAccount
     */
    @JsonProperty("userAccount")
    @NotNull(message = "userAccount的参数名不正确或者userAccount的值为空，请检查传入参数")
    @NotBlank(message = "userAccount的参数不能为''字符串，请检查传入参数")
    private String userAccount;
    /**
     * userType
     */
    @JsonProperty("userType")
    @NotNull(message = "userType的参数名不正确或者userType的值为空，请检查传入参数")
    @Min(value = 0, message = "userType的参数不能小于0，请检查传入参数")
    private Integer userType;
    /**
     * tenantId
     */
    @JsonProperty("tenantId")
    private String tenantId;
    /**
     * tenantType
     */
    @JsonProperty("tenantType")
    private Integer tenantType;

}
