| | |
| | | package com.yeshi.fanli.service.inter.push;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.exception.push.PushException;
|
| | |
|
| | | public interface PushService {
|
| | | /**
|
| | | * 推送商品
|
| | | * |
| | | * @param uid
|
| | | * @param url
|
| | | * @param title
|
| | | * @param content
|
| | | * @param listIOS
|
| | | * @param listAndroid
|
| | | * @throws PushException
|
| | | */
|
| | | void pushGoods(Long uid, String title, String content, String url, List<String> listIOS, List<String> listAndroid)
|
| | | throws PushException;
|
| | |
|
| | | /**
|
| | | * 推送链接
|
| | | * |
| | | * @param uid
|
| | | * @param url
|
| | | * @param title
|
| | | * @param content
|
| | | * @param listIOS
|
| | | * @param listAndroid
|
| | | * @throws PushException
|
| | | */
|
| | | void pushUrl(Long uid, String title, String content, String url, List<String> listIOS, List<String> listAndroid)
|
| | | throws PushException;
|
| | |
|
| | | /**
|
| | | * 推送站内信
|
| | | * |
| | | * @param uId
|
| | | * @param title
|
| | | * @param content
|
| | | * @param listIOS
|
| | | * @param listAndroid
|
| | | * @throws PushException
|
| | | */
|
| | | void pushZNX(Long uId, String title, String content, List<String> listIOS, List<String> listAndroid)
|
| | | throws PushException;
|
| | |
|
| | | /**
|
| | | * 适用版本 1.4.8及以后 推送weex页面
|
| | | * |
| | | * @param uid
|
| | | * @param title
|
| | | * @param content
|
| | | * @param weexUrl
|
| | | * @param listIOS
|
| | | * @param listAndroid
|
| | | * @throws PushException
|
| | | */
|
| | | void pushWEEX(Long uid, String title, String content, String weexUrl, List<String> listIOS,
|
| | | List<String> listAndroid) throws PushException;
|
| | |
|
| | | /**
|
| | | * 适用版本 1.4.8及以后 推送百川网页
|
| | | * |
| | | * @param uid
|
| | | * @param title
|
| | | * @param content
|
| | | * @param url
|
| | | * @param listIOS
|
| | | * @param listAndroid
|
| | | * @throws PushException
|
| | | */
|
| | | void pushBaiChuanUrl(Long uid, String title, String content, String url, List<String> listIOS,
|
| | | List<String> listAndroid) throws PushException;
|
| | |
|
| | | /**
|
| | | * 推送福利中心
|
| | | * |
| | | * @param uid
|
| | | * @param title
|
| | | * @param content
|
| | | * @param listIOS
|
| | | * @param listAndroid
|
| | | * @throws PushException
|
| | | */
|
| | | void pushWelfareCenter(Long uid, String title, String content, List<String> listIOS, List<String> listAndroid)
|
| | | throws PushException;
|
| | |
|
| | | /**
|
| | | * 推送签到通知
|
| | | * |
| | | * @param uid
|
| | | * @param title
|
| | | * @param content
|
| | | * @param listIOS
|
| | | * @param listAndroid
|
| | | * @throws PushException
|
| | | */
|
| | | void pushUserSignInNotification(Long uid, String title, String content, List<String> listIOS,
|
| | | List<String> listAndroid) throws PushException;
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.push; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import com.yeshi.fanli.exception.push.PushException; |
| | | |
| | | public interface PushService { |
| | | /** |
| | | * 推送商品 |
| | | * |
| | | * @param uid |
| | | * @param url |
| | | * @param title |
| | | * @param content |
| | | * @param listIOS |
| | | * @param listAndroid |
| | | * @throws PushException |
| | | */ |
| | | void pushGoods(Long uid, String title, String content, String url, List<String> listIOS, List<String> listAndroid, SystemEnum system) |
| | | throws PushException; |
| | | |
| | | /** |
| | | * 推送链接 |
| | | * |
| | | * @param uid |
| | | * @param url |
| | | * @param title |
| | | * @param content |
| | | * @param listIOS |
| | | * @param listAndroid |
| | | * @throws PushException |
| | | */ |
| | | void pushUrl(Long uid, String title, String content, String url, List<String> listIOS, List<String> listAndroid, SystemEnum system) |
| | | throws PushException; |
| | | |
| | | /** |
| | | * 推送站内信 |
| | | * |
| | | * @param uId |
| | | * @param title |
| | | * @param content |
| | | * @param listIOS |
| | | * @param listAndroid |
| | | * @throws PushException |
| | | */ |
| | | void pushZNX(Long uId, String title, String content, List<String> listIOS, List<String> listAndroid, SystemEnum system) |
| | | throws PushException; |
| | | |
| | | /** |
| | | * 适用版本 1.4.8及以后 推送weex页面 |
| | | * |
| | | * @param uid |
| | | * @param title |
| | | * @param content |
| | | * @param weexUrl |
| | | * @param listIOS |
| | | * @param listAndroid |
| | | * @throws PushException |
| | | */ |
| | | void pushWEEX(Long uid, String title, String content, String weexUrl, List<String> listIOS, |
| | | List<String> listAndroid, SystemEnum system) throws PushException; |
| | | |
| | | /** |
| | | * 适用版本 1.4.8及以后 推送百川网页 |
| | | * |
| | | * @param uid |
| | | * @param title |
| | | * @param content |
| | | * @param url |
| | | * @param listIOS |
| | | * @param listAndroid |
| | | * @throws PushException |
| | | */ |
| | | void pushBaiChuanUrl(Long uid, String title, String content, String url, List<String> listIOS, |
| | | List<String> listAndroid, SystemEnum system) throws PushException; |
| | | |
| | | /** |
| | | * 推送福利中心 |
| | | * |
| | | * @param uid |
| | | * @param title |
| | | * @param content |
| | | * @param listIOS |
| | | * @param listAndroid |
| | | * @throws PushException |
| | | */ |
| | | void pushWelfareCenter(Long uid, String title, String content, List<String> listIOS, List<String> listAndroid, SystemEnum system) |
| | | throws PushException; |
| | | |
| | | /** |
| | | * 推送签到通知 |
| | | * |
| | | * @param uid |
| | | * @param title |
| | | * @param content |
| | | * @param listIOS |
| | | * @param listAndroid |
| | | * @throws PushException |
| | | */ |
| | | void pushUserSignInNotification(Long uid, String title, String content, List<String> listIOS, |
| | | List<String> listAndroid, SystemEnum system) throws PushException; |
| | | } |