| package com.dy.sso.busi; | 
|   | 
| import jakarta.validation.constraints.NotEmpty; | 
| import lombok.*; | 
| import org.hibernate.validator.constraints.Length; | 
|   | 
| /** | 
|  * 登录用,前端提交的登录form表单数据 | 
|  */ | 
| @Data | 
| @ToString | 
| @NoArgsConstructor | 
| @AllArgsConstructor | 
| @Builder | 
| /* | 
| 模块Controller类方法参数引用了该实体(@RequestBody),模块Schemas API文档才会出现该实体的API, | 
| 例如本实体在pipIrr-web-base模块BaseDemoCtrl类方法test(@RequestBody DemoTest req) | 
| 中被引用了,该实体才会出现在该模块的API文档(WEB界面)中 | 
|  */ | 
| public class LoginVo { | 
|     @NotEmpty(message = "手机号不能为空") //不能为空也不能为null | 
|     //@NotNull(message = "手机号不能为空") //不能为null但是可以为空 | 
|     @Length(message = "手机号必须{min}位", min = 11, max = 11) | 
|     public String phone ; | 
|   | 
|     @NotEmpty(message = "密码不能为空") //不能为空也不能为null | 
|     @Length(message = "密码必须{min}位", min = 6, max = 6) | 
|     public String password ; | 
|   | 
|     @NotEmpty(message = "验证码不能为空") //不能为空也不能为null | 
|     @Length(message = "验证码必须{min}位", min = 4, max = 4) | 
|     public String captcha ; | 
| } |