修复用户 APP 发送短信验证码报错

pull/2/head
YunaiV 2022-02-06 17:31:22 +08:00
parent 448aa21e33
commit 2dd4450302
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import cn.iocoder.yudao.module.system.enums.sms.SmsSceneEnum;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/** /**
* Request DTO * Request DTO
@ -24,7 +25,7 @@ public class SmsCodeCheckReqDTO {
/** /**
* *
*/ */
@NotEmpty(message = "发送场景不能为空") @NotNull(message = "发送场景不能为空")
@InEnum(SmsSceneEnum.class) @InEnum(SmsSceneEnum.class)
private Integer scene; private Integer scene;
/** /**

View File

@ -6,6 +6,7 @@ import cn.iocoder.yudao.module.system.enums.sms.SmsSceneEnum;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/** /**
* 使 Request DTO * 使 Request DTO
@ -24,7 +25,7 @@ public class SmsCodeUseReqDTO {
/** /**
* *
*/ */
@NotEmpty(message = "发送场景不能为空") @NotNull(message = "发送场景不能为空")
@InEnum(SmsSceneEnum.class) @InEnum(SmsSceneEnum.class)
private Integer scene; private Integer scene;
/** /**