package cn.reghao.tnb.account.api.dto;

import cn.reghao.jutil.validator.ValidEnum;
import cn.reghao.tnb.account.api.constant.VerifyChannel;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author reghao
 * @date 2021-11-14 16:55:03
 */
@Getter
@Setter
public class VerifyCode implements Serializable {
    private static final long serialVersionUID = 1L;

    @ValidEnum(value = VerifyChannel.class, message = "请选择正确的难度等级")
    private Integer channel;
    @NotBlank(message = "邮箱或手机号不能为空白字符串")
    private String receiver;
}
