| 8 | import java.time.LocalDateTime; |
| 9 | |
| 10 | @Data |
| 11 | @NoArgsConstructor |
| 12 | @AllArgsConstructor |
| 13 | public class SmsCode { |
| 14 | |
| 15 | private Long id; |
| 16 | @NotBlank(message = "手机号不能为空") |
| 17 | @Pattern(regexp = "^1(3[0-9]|4[5-9]|5[0-3,5-9]|6[6]|7[0-8]|8[0-9]|9[1,8,9])\\d{8}$", message = "手机号格式错误") |
| 18 | private String phone; |
| 19 | private String code; |
| 20 | private LocalDateTime createTime; |
| 21 | private LocalDateTime expireTime; |
| 22 | private Integer used; |
| 23 | private Integer retryCount; |
| 24 | |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected