package com.crm.rely.backend.model.entity.account.apply.password.reset;

import com.crm.rely.backend.core.constant.Constants;
import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import lombok.Data;

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

@Data
public class AccountApplyPasswordResetAddEntity extends BaseAddEntity {

    private Long customId;
    private Long cId;
    @NotNull
    private Long login;

    /**
     * 账号类型 1模拟 2实盘 3资管 4真实
     */
    @NotNull
    @Min(value = 0, message = Constants.PARAMETER_ERROR)
    @Max(value = 4, message = Constants.PARAMETER_ERROR)
    private Integer loginType;
}
