mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
修复用户 APP 发送短信验证码报错
This commit is contained in:
parent
448aa21e33
commit
2dd4450302
@ -6,6 +6,7 @@ import cn.iocoder.yudao.module.system.enums.sms.SmsSceneEnum;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 短信验证码的校验 Request DTO
|
||||
@ -24,7 +25,7 @@ public class SmsCodeCheckReqDTO {
|
||||
/**
|
||||
* 发送场景
|
||||
*/
|
||||
@NotEmpty(message = "发送场景不能为空")
|
||||
@NotNull(message = "发送场景不能为空")
|
||||
@InEnum(SmsSceneEnum.class)
|
||||
private Integer scene;
|
||||
/**
|
||||
|
@ -6,6 +6,7 @@ import cn.iocoder.yudao.module.system.enums.sms.SmsSceneEnum;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 短信验证码的使用 Request DTO
|
||||
@ -24,7 +25,7 @@ public class SmsCodeUseReqDTO {
|
||||
/**
|
||||
* 发送场景
|
||||
*/
|
||||
@NotEmpty(message = "发送场景不能为空")
|
||||
@NotNull(message = "发送场景不能为空")
|
||||
@InEnum(SmsSceneEnum.class)
|
||||
private Integer scene;
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user