luoyb
2021-02-02 ca1bfe0c8a41cce648828b31a25549bbb1c8fa96
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
package cc.mrbird.febs.auth.service;
 
 
import cc.mrbird.febs.auth.entity.UserConnection;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * @author MrBird
 */
public interface UserConnectionService extends IService<UserConnection> {
 
    /**
     * 根据条件查询关联关系
     *
     * @param providerName   平台名称
     * @param providerUserId 平台用户ID
     * @return 关联关系
     */
    UserConnection selectByCondition(String providerName, String providerUserId);
 
    /**
     * 根据条件查询关联关系
     *
     * @param username 用户名
     * @return 关联关系
     */
    List<UserConnection> selectByCondition(String username);
 
    /**
     * 新增
     *
     * @param userConnection userConnection
     */
    void createUserConnection(UserConnection userConnection);
 
    /**
     * 删除
     *
     * @param username     username 用户名
     * @param providerName providerName 平台名称
     */
    void deleteByCondition(String username, String providerName);
}