门店管理-验证手机号码
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.carteen.vo;
|
||||
|
||||
import cn.hutool.core.lang.RegexPool;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
@ -33,7 +34,8 @@ public class CarteenSaveReqVO {
|
||||
private String storeAddress;
|
||||
|
||||
@Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "联系电话不能为空")
|
||||
@NotEmpty(message = "联系电话不能为空或者格式错误")
|
||||
@Pattern(regexp = RegexPool.MOBILE, message = "联系电话格式不正确")
|
||||
private String phone;
|
||||
|
||||
@Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
|
Reference in New Issue
Block a user