Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌈 style: 描述错误, 社交类型的枚举为 SocialTypeEnum 而不是 SysUserSocialTypeEnum #342

Merged
merged 1 commit into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class AppAuthLoginReqVO {

// ========== 绑定社交登录时,需要传递如下参数 ==========

@Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@InEnum(SocialTypeEnum.class)
private Integer socialType;

Expand All @@ -53,4 +53,4 @@ public boolean isSocialState() {
return socialType == null || StrUtil.isNotEmpty(socialState);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class AppAuthSmsLoginReqVO {

// ========== 绑定社交登录时,需要传递如下参数 ==========

@Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@InEnum(SocialTypeEnum.class)
private Integer socialType;

Expand All @@ -55,4 +55,4 @@ public boolean isSocialState() {
return socialType == null || StrUtil.isNotEmpty(socialState);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@Builder
public class AppAuthSocialLoginReqVO {

@Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@InEnum(SocialTypeEnum.class)
@NotNull(message = "社交平台的类型不能为空")
private Integer type;
Expand All @@ -31,4 +31,4 @@ public class AppAuthSocialLoginReqVO {
@NotEmpty(message = "state 不能为空")
private String state;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@Builder
public class AppSocialUserBindReqVO {

@Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@InEnum(SocialTypeEnum.class)
@NotNull(message = "社交平台的类型不能为空")
private Integer type;
Expand All @@ -31,4 +31,4 @@ public class AppSocialUserBindReqVO {
@NotEmpty(message = "state 不能为空")
private String state;

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@Builder
public class AppSocialUserUnbindReqVO {

@Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@InEnum(SocialTypeEnum.class)
@NotNull(message = "社交平台的类型不能为空")
private Integer type;
Expand All @@ -27,4 +27,4 @@ public class AppSocialUserUnbindReqVO {
@NotEmpty(message = "社交用户的 openid 不能为空")
private String openid;

}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cn.iocoder.yudao.module.system.controller.admin.auth;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
Expand Down Expand Up @@ -153,4 +154,4 @@ public CommonResult<AuthLoginRespVO> socialQuickLogin(@RequestBody @Valid AuthSo
return success(authService.socialLogin(reqVO));
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class AuthLoginReqVO {

// ========== 绑定社交登录时,需要传递如下参数 ==========

@Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
@InEnum(SocialTypeEnum.class)
private Integer socialType;

Expand All @@ -66,4 +66,4 @@ public boolean isSocialState() {
return socialType == null || StrUtil.isNotEmpty(socialState);
}

}
}