This commit is contained in:
张良(004796)
2024-03-13 17:26:49 +08:00
parent 367ea437a2
commit daa95dd756
2 changed files with 6 additions and 6 deletions

View File

@@ -51,7 +51,7 @@ public class AuthAppController {
}
@PostMapping("/login")
@Operation(summary = "登陆")
@Operation(summary = "登陆(选择手机号登陆,会自动注册)")
@Log(title = "登陆", businessType = BusinessType.OTHER, isSaveDb = false)
public R<LoginVo> login(@Validated @RequestBody LoginUser loginBody){
LoginVo vo = new LoginVo();

View File

@@ -8,16 +8,16 @@ import javax.validation.constraints.NotEmpty;
@Data
@Schema(description = "登陆入参模型")
public class LoginUser {
@Schema(description = "登陆类型")
@Schema(description = "登陆类型 1-手机验证码登陆 2-密码登陆")
@NotEmpty(message = "1-手机验证码登陆 2-密码登陆")
private Integer loginType = 1;
@Schema(description = "登陆账号")
@Schema(description = "登陆账号(手机号码)")
@NotEmpty(message = "手机号不能为空")
private String username;
@Schema(description = "密码")
@Schema(description = "密码(密码登陆专用)")
private String password;
@Schema(description = "登陆验证码")
@Schema(description = "登陆验证码(手机验证码登陆专用)")
private String code;
@Schema(description = "邀请码")
@Schema(description = "邀请码(手机验证码登陆的时候,如果用户未注册会自动注册,可以输入邀请码)")
private String inviteCode;
}