package com.yeshi.fanli.service.inter.push;
|
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.push.DeviceTokenHW;
|
|
/**
|
* 华为deviceToken服务
|
*
|
* @author Administrator
|
*
|
*/
|
public interface DeviceTokenHWService {
|
/**
|
* 分页查询数据
|
*
|
* @param start
|
* @param page
|
* @return
|
*/
|
|
List<DeviceTokenHW> getDeviceTokenList(int page, int pageSize, List<Integer> versionList);
|
|
Long countDeviceToken(List<Integer> versionList);
|
|
/**
|
* 添加数据
|
*
|
* @param token
|
* @param device
|
* @param uid
|
* @param version
|
*/
|
void addDeviceToken(String token, String device, Long uid, int version);
|
|
/**
|
* 获取某个用户的deviceToken
|
*
|
* @param uid
|
* @return
|
*/
|
List<DeviceTokenHW> getDeviceTokenByUid(Long uid);
|
|
/**
|
* 根据版本获取deviceToken
|
*
|
* @param uid
|
* @param versionList
|
* @return
|
*/
|
List<DeviceTokenHW> getDeviceTokenByUid(Long uid, List<Integer> versionList);
|
|
/**
|
* 解绑用户token
|
*
|
* @param uid
|
* @param device
|
*/
|
void unBindDeviceToken(String device);
|
|
/**
|
* 将用户ID绑定到设备上
|
*
|
* @param device
|
* @param uid
|
*/
|
void bindUid(String device, Long uid);
|
|
}
|