PushClientInfoDao.java
853 Bytes
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
package com.brframework.commonapppush.dao;
import com.brframework.commonapppush.entity.PushClientInfo;
import com.brframework.commondb.core.CommonRepository;
/**
* @author xu
* @date 2019/11/18 19:18
*/
public interface PushClientInfoDao extends CommonRepository<Long, PushClientInfo> {
/**
* 通过设备查询
* @param deviceTokens
* @return
*/
PushClientInfo findByDeviceTokens(String deviceTokens);
/**
* 通过用户查询
* @param userTokens
* @return
*/
PushClientInfo findByUserTokens(String userTokens);
/**
* 通过设备删除
* @param deviceTokens
* @return
*/
Integer deleteByDeviceTokens(String deviceTokens);
/**
* 通过用户删除
* @param userTokens
* @return
*/
Integer deleteByUserTokens(String userTokens);
}