|
@ -3,6 +3,8 @@ package com.lottery.dto; |
|
|
import lombok.Data; |
|
|
import lombok.Data; |
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotNull; |
|
|
import javax.validation.constraints.NotNull; |
|
|
|
|
|
import javax.validation.constraints.Pattern; |
|
|
|
|
|
import javax.validation.constraints.Size; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @program: lottery |
|
|
* @program: lottery |
|
@ -16,8 +18,12 @@ import javax.validation.constraints.NotNull; |
|
|
public class FixUserDto { |
|
|
public class FixUserDto { |
|
|
|
|
|
|
|
|
@NotNull(message = "用户名不能为空") |
|
|
@NotNull(message = "用户名不能为空") |
|
|
|
|
|
@Size(max = 30, message = "姓名长度不能超过30个字符") |
|
|
|
|
|
@Pattern(regexp = "^[\\u4e00-\\u9fa5\\u3400-\\u4dbf\\u20000-\\u2a6df\\u2a700-\\u2b73f\\u2b740-\\u2b81f\\u2b820-\\u2ceaf\\uf900-\\ufaffa-zA-Z]+$", |
|
|
|
|
|
message = "姓名只能包含中文(简繁体)或英文字符") |
|
|
private String username; |
|
|
private String username; |
|
|
|
|
|
|
|
|
|
|
|
@Pattern(regexp = "^\\d{5,12}$", message = "精网号必须是5到12位的数字") |
|
|
@NotNull(message = "精网号不能为空") |
|
|
@NotNull(message = "精网号不能为空") |
|
|
private String jwcode; |
|
|
private String jwcode; |
|
|
|
|
|
|
|
|