refactor: 扩展 spring security 实现微信一键登录认证

This commit is contained in:
haoxr
2024-12-03 17:15:58 +08:00
parent db3da6b1dc
commit f3a32821ea
13 changed files with 391 additions and 102 deletions

View File

@@ -160,10 +160,18 @@ public interface UserService extends IService<User> {
List<Option<String>> listUserOptions();
/**
* 根据openId获取用户信息
* 根据 openid 获取用户认证信息
*
* @param openId openId
* @return {@link User}
* @param username 用户名
* @return {@link UserAuthInfo}
*/
User getUserByOpenId(String openId);
UserAuthInfo getUserAuthInfoByOpenId(String username);
/**
* 根据微信 OpenID 注册或绑定用户
*
* @param openId 微信 OpenID
*/
void registerOrBindWechatUser(String openId);
}