feat: 添加根据手机号获取用户认证信息

This commit is contained in:
Ray.Hao
2025-01-12 21:53:33 +08:00
parent aa444ac3e3
commit 4fb317c4b3
3 changed files with 37 additions and 2 deletions

View File

@@ -56,6 +56,14 @@ public interface UserMapper extends BaseMapper<User> {
*/
UserAuthInfo getUserAuthInfoByOpenId(String openid);
/**
* 根据手机号获取用户认证信息
*
* @param mobile
* @return
*/
UserAuthInfo getUserAuthInfoByMobile(String mobile);
/**
* 获取导出用户列表
*
@@ -73,5 +81,4 @@ public interface UserMapper extends BaseMapper<User> {
*/
UserBO getUserProfile(Long userId);
}

View File

@@ -19,7 +19,7 @@ import java.util.List;
/**
* 用户业务接口
*
* @author haoxr
* @author Ray.Hao
* @since 2022/1/14
*/
public interface UserService extends IService<User> {
@@ -174,4 +174,12 @@ public interface UserService extends IService<User> {
* @param openId 微信 OpenID
*/
void registerOrBindWechatUser(String openId);
/**
* 根据手机号获取用户认证信息
*
* @param mobile 手机号
* @return {@link UserAuthInfo}
*/
UserAuthInfo getUserAuthInfoByMobile(String mobile);
}