package com.everyday.word.service.inter.user;
|
|
import com.everyday.word.dto.QQUserInfo;
|
import com.everyday.word.entity.SystemEnum;
|
import com.everyday.word.entity.user.IdentityType;
|
import com.everyday.word.entity.user.User;
|
import com.everyday.word.entity.user.UserAuth;
|
import com.everyday.word.exception.user.UserException;
|
import org.yeshi.utils.entity.wx.WeiXinUser;
|
|
import java.util.List;
|
|
/**
|
* @author hxh
|
* @title: UserService
|
* @description: 用户服务
|
* @date 2025/2/11 11:13
|
*/
|
public interface UserService {
|
|
|
/**
|
* @return void
|
* @author hxh
|
* @description 微信登录
|
* @date 11:21 2025/2/11
|
* @param: user
|
**/
|
public User loginByWX(WeiXinUser user, SystemEnum system);
|
|
/**
|
* @return void
|
* @author hxh
|
* @description QQ登录
|
* @date 11:22 2025/2/11
|
* @param: openId
|
**/
|
public User loginByQQ(String openId, SystemEnum system);
|
|
|
/**
|
* @return void
|
* @author hxh
|
* @description 电话号码登录
|
* @date 11:23 2025/2/11
|
* @param: phone
|
**/
|
public User loginByPhone(String phone, SystemEnum system);
|
|
|
/**
|
* @return void
|
* @author hxh
|
* @description 用户注册
|
* @date 13:06 2025/2/11
|
* @param: authInfo
|
**/
|
public void register(UserAuth authInfo) throws UserException;
|
|
/**
|
* @return com.everyday.word.entity.user.UserAuth
|
* @author hxh
|
* @description 授权查询
|
* @date 13:27 2025/2/11
|
* @param: type
|
* @param: identifier
|
**/
|
public UserAuth selectUserAuth(IdentityType type, String identifier, SystemEnum system);
|
|
|
/**
|
* @return com.everyday.word.entity.user.UserAuth
|
* @author hxh
|
* @description 根据用户ID查询
|
* @date 13:48 2025/2/11
|
* @param: uid
|
* @param: type
|
**/
|
public UserAuth selectUserAuth(Long uid, IdentityType type);
|
|
/**
|
* @return java.util.List<com.everyday.word.entity.user.UserAuth>
|
* @author hxh
|
* @description 获取用户所有授权信息
|
* @date 13:33 2025/2/11
|
* @param: uid
|
**/
|
public List<UserAuth> listUserAuth(Long uid);
|
|
|
/**
|
* @return com.everyday.word.entity.user.User
|
* @author hxh
|
* @description 查询用户基本信息
|
* @date 13:34 2025/2/11
|
* @param: id
|
**/
|
public User selectUser(Long id);
|
|
|
/**
|
* @author hxh
|
* @description 绑定微信
|
* @date 14:04 2025/2/11
|
* @param: userId
|
* @param: weiXinUser
|
* @return void
|
**/
|
public void bindWechat(Long userId, WeiXinUser weiXinUser) throws UserException;
|
|
/**
|
* @author hxh
|
* @description 绑定QQ
|
* @date 14:04 2025/2/11
|
* @param: userId
|
* @param: qqUserInfo
|
* @return void
|
**/
|
public void bindQQ(Long userId, QQUserInfo qqUserInfo) throws UserException;
|
|
/**
|
* @author hxh
|
* @description 绑定电话
|
* @date 14:04 2025/2/11
|
* @param: userId
|
* @param: phone
|
* @return void
|
**/
|
public void bindPhone(Long userId, String phone) throws UserException;
|
|
|
}
|