146 【功能修复】会员:微信登录注册时,因为 username 为空导致失败的问题
parent
5208f2878e
commit
a887c364f9
|
@ -1,12 +1,10 @@
|
||||||
package cn.iocoder.yudao.module.system.api.logger.dto;
|
package cn.iocoder.yudao.module.system.api.logger.dto;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import jakarta.validation.constraints.NotBlank;
|
|
||||||
import jakarta.validation.constraints.NotEmpty;
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
import jakarta.validation.constraints.Size;
|
import jakarta.validation.constraints.Size;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
@Schema(description = "RPC 服务 - 登录日志创建 Request DTO")
|
@Schema(description = "RPC 服务 - 登录日志创建 Request DTO")
|
||||||
@Data
|
@Data
|
||||||
|
@ -24,10 +22,9 @@ public class LoginLogCreateReqDTO {
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2" )
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2" )
|
||||||
@NotNull(message = "用户类型不能为空")
|
@NotNull(message = "用户类型不能为空")
|
||||||
private Integer userType;
|
private Integer userType;
|
||||||
@Schema(description = "用户账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudao")
|
@Schema(description = "用户账号", example = "yudao")
|
||||||
@NotBlank(message = "用户账号不能为空")
|
|
||||||
@Size(max = 30, message = "用户账号长度不能超过30个字符")
|
@Size(max = 30, message = "用户账号长度不能超过30个字符")
|
||||||
private String username;
|
private String username; // 不再强制校验 username 非空,因为 Member 社交登录时,此时暂时没有 username(mobile)!
|
||||||
|
|
||||||
@Schema(description = "登录结果,参见 LoginResultEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "登录结果,参见 LoginResultEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
@NotNull(message = "登录结果不能为空")
|
@NotNull(message = "登录结果不能为空")
|
||||||
|
|
Loading…
Reference in New Issue