You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
427 B
16 lines
427 B
package jty.expressdistributionsystem.DTO;
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.Pattern;
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
public class UserModifyInfoDTO {
|
|
@NotBlank(message = "用户名不能为空")
|
|
private String userName;
|
|
|
|
@NotBlank(message = "手机号不能为空")
|
|
@Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号不存在")
|
|
private String phone;
|
|
}
|