init
This commit is contained in:
@@ -51,7 +51,7 @@ public class AuthAppController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/login")
|
@PostMapping("/login")
|
||||||
@Operation(summary = "登陆")
|
@Operation(summary = "登陆(选择手机号登陆,会自动注册)")
|
||||||
@Log(title = "登陆", businessType = BusinessType.OTHER, isSaveDb = false)
|
@Log(title = "登陆", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||||
public R<LoginVo> login(@Validated @RequestBody LoginUser loginBody){
|
public R<LoginVo> login(@Validated @RequestBody LoginUser loginBody){
|
||||||
LoginVo vo = new LoginVo();
|
LoginVo vo = new LoginVo();
|
||||||
|
|||||||
@@ -8,16 +8,16 @@ import javax.validation.constraints.NotEmpty;
|
|||||||
@Data
|
@Data
|
||||||
@Schema(description = "登陆入参模型")
|
@Schema(description = "登陆入参模型")
|
||||||
public class LoginUser {
|
public class LoginUser {
|
||||||
@Schema(description = "登陆类型")
|
@Schema(description = "登陆类型 1-手机验证码登陆 2-密码登陆")
|
||||||
@NotEmpty(message = "1-手机验证码登陆 2-密码登陆")
|
@NotEmpty(message = "1-手机验证码登陆 2-密码登陆")
|
||||||
private Integer loginType = 1;
|
private Integer loginType = 1;
|
||||||
@Schema(description = "登陆账号")
|
@Schema(description = "登陆账号(手机号码)")
|
||||||
@NotEmpty(message = "手机号不能为空")
|
@NotEmpty(message = "手机号不能为空")
|
||||||
private String username;
|
private String username;
|
||||||
@Schema(description = "密码")
|
@Schema(description = "密码(密码登陆专用)")
|
||||||
private String password;
|
private String password;
|
||||||
@Schema(description = "登陆验证码")
|
@Schema(description = "登陆验证码(手机验证码登陆专用)")
|
||||||
private String code;
|
private String code;
|
||||||
@Schema(description = "邀请码")
|
@Schema(description = "邀请码(手机验证码登陆的时候,如果用户未注册会自动注册,可以输入邀请码)")
|
||||||
private String inviteCode;
|
private String inviteCode;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user