| | |
| | | package com.ks.lucky.pojo.DO; |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.Max; |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.Pattern; |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | @Valid |
| | | public class LuckySponsors implements Serializable { |
| | | public class LuckySponsors implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | //正常 |
| | | public final static int STATE_NORMAL = 0; |
| | |
| | | |
| | | private Long id; |
| | | |
| | | public LuckySponsors(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public LuckySponsors() { |
| | | } |
| | | |
| | | @NotEmpty(message = "账号不能为空") |
| | | @Pattern(regexp = "^(\\w|@|_|\\.){3,64}$", message = "账号只能包含英文、数字、@、_") |
| | | private String account; |
| | | |
| | | @NotEmpty(message = "密码不能为空") |