cuilei
6 天以前 b0ec9895cde2519bc085ac40acbeea89ae8b6f9d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package org.jeecg.modules.system.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.system.entity.SysThirdAccount;
import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.system.model.ThirdLoginModel;
 
import java.util.List;
 
/**
 * @Description: 第三方登录账号表
 * @Author: jeecg-boot
 * @Date:   2020-11-17
 * @Version: V1.0
 */
public interface ISysThirdAccountService extends IService<SysThirdAccount> {
    /**
     * 更新第三方账户信息
     * @param sysUser SysUser对象
     * @param thirdUserUuid 第三方id
     */
    void updateThirdUserId(SysUser sysUser,String thirdUserUuid);
 
    /**
     * 创建第三方用户
     * @param phone 手机号
     * @param thirdUserUuid 第三方id
     * @return SysUser
     */
    SysUser createUser(String phone, String thirdUserUuid);
 
    /**
     * 根据本地userId查询数据
     * @param sysUserId 用户id
     * @param thirdType 第三方登录类型
     * @return SysThirdAccount
     */
    SysThirdAccount getOneBySysUserId(String sysUserId, String thirdType);
 
    /**
     * 根据第三方userId查询数据
     * @param thirdUserId 第三方id
     * @param thirdType 第三方登录类型
     * @return SysThirdAccount
     */
    SysThirdAccount getOneByThirdUserId(String thirdUserId, String thirdType);
 
    /**
     * 通过 sysUsername 集合批量查询
     *
     * @param sysUsernameArr username集合
     * @param thirdType      第三方类型
     * @return
     */
    List<SysThirdAccount> listThirdUserIdByUsername(String[] sysUsernameArr, String thirdType);
 
    /**
     * 创建新用户
     *
     * @param tlm 第三方登录信息
     * @return SysThirdAccount
     */
    SysThirdAccount saveThirdUser(ThirdLoginModel tlm);
 
}