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
| package cn.exrick.xboot.social.dao;
|
|
| import cn.exrick.xboot.core.base.XbootBaseDao;
| import cn.exrick.xboot.social.entity.Social;
|
| import java.util.List;
|
| /**
| * Github登录数据处理层
| * @author Exrick
| */
| public interface SocialDao extends XbootBaseDao<Social, String> {
|
| /**
| * 通过openId和平台获取
| * @param openId
| * @param platform
| * @return
| */
| Social findByOpenIdAndPlatform(String openId, Integer platform);
|
| /**
| * 通过userId和平台获取
| * @param relateUsername
| * @param platform
| * @return
| */
| Social findByRelateUsernameAndPlatform(String relateUsername, Integer platform);
|
| /**
| * 通过relateUsername获取
| * @param relateUsername
| * @return
| */
| List<Social> findByRelateUsername(String relateUsername);
| }
|
|