Member:社交登录逻辑调整,如果登录时无用户,则自动创建用户,保持和各 App 统一逻辑

This commit is contained in:
YunaiV
2023-12-23 09:59:58 +08:00
parent 106c1ecf4c
commit d65c28d7f7
16 changed files with 80 additions and 38 deletions

View File

@ -36,9 +36,9 @@ public class LoginLogCreateReqDTO {
private Integer userType;
/**
* 用户账号
*
* 不再强制校验 username 非空,因为 Member 社交登录时,此时暂时没有 username(mobile
*/
@NotBlank(message = "用户账号不能为空")
@Size(max = 30, message = "用户账号长度不能超过30个字符")
private String username;
/**

View File

@ -15,9 +15,17 @@ import lombok.NoArgsConstructor;
public class SocialUserRespDTO {
/**
* 社交用户 openid
* 社交用户 openid
*/
private String openid;
/**
* 社交用户的昵称
*/
private String nickname;
/**
* 社交用户的头像
*/
private String avatar;
/**
* 关联的用户编号