From d1f26741bddf6f512d62c0100d42c52be8d37e76 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 06 二月 2021 15:35:40 +0800 Subject: [PATCH] 工具类优化 --- fanli/src/main/java/com/yeshi/fanli/service/inter/push/HWPushService.java | 182 ++++++++++++++++++++++----------------------- 1 files changed, 88 insertions(+), 94 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/push/HWPushService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/push/HWPushService.java index c0a7acc..4c83ad8 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/push/HWPushService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/push/HWPushService.java @@ -1,94 +1,88 @@ -package com.yeshi.fanli.service.inter.push; - -import java.util.List; - -import com.yeshi.fanli.exception.push.PushException; - -/** - * 鍗庝负鎺ㄩ�佹湇鍔� - * - * @author Administrator - * - */ -public interface HWPushService { - - /** - * 鎺ㄩ�佸晢鍝� - * - * @param uid - * @param url - * @param title - * @param content - * @throws PushException - */ - void pushGoods(Long uid, Long auctionId, String title, String content, List<Integer> versionCodeList) - throws PushException; - - /** - * 鎺ㄩ�侀摼鎺� - * - * @param uid - * @param url - * @param title - * @param content - * @throws PushException - */ - void pushUrl(Long uid, String url, String title, String content, List<Integer> versionCodeList) - throws PushException; - - /** - * 鎺ㄩ�佺珯鍐呬俊 - * - * @param uId - * @param title - * @param content - * @throws PushException - */ - void pushZNX(Long uId, String title, String content, List<Integer> versionCodeList) throws PushException; - - /** - * 閫傜敤鐗堟湰 1.4.8鍙婁互鍚� 鎺ㄩ�亀eex椤甸潰 - * - * @param uid - * @param title - * @param content - * @param weexUrl - * @throws PushException - */ - void pushWEEX(Long uid, String title, String content, String weexUrl, List<Integer> versionCodeList) - throws PushException; - - /** - * 閫傜敤鐗堟湰 1.4.8鍙婁互鍚� 鎺ㄩ�佺櫨宸濈綉椤� - * - * @param uid - * @param title - * @param content - * @param url - * @throws PushException - */ - void pushBaiChuanUrl(Long uid, String title, String content, String url, List<Integer> versionCodeList) - throws PushException; - - /** - * 鎺ㄩ�佺鍒╀腑蹇冿紙鐗堟湰鍙�:1.5.1鍚庯級 - * - * @param uid - * @param title - * @param content - * @throws PushException - */ - void pushWelfareCenter(Long uid, String title, String content, List<Integer> versionCodeList) throws PushException; - - /** - * 鎺ㄩ�佺鍒版彁閱� - * - * @param uid - * @param title - * @param content - * @param versions - * @throws PushException - */ - void pushUserSignInNotification(Long uid, String title, String content, List<Integer> versionCodeList) throws PushException; - -} +package com.yeshi.fanli.service.inter.push; + +import com.yeshi.fanli.dto.push.PushBaseContent; +import com.yeshi.fanli.dto.push.PushContentDetailDTO; +import com.yeshi.fanli.exception.push.PushException; + +import java.util.List; + +/** + * 鍗庝负鎺ㄩ�佹湇鍔� + * + * @author Administrator + */ +public interface HWPushService { + + /** + * 鎺ㄩ�佸晢鍝� + * + * @param uid + * @throws PushException + */ + void pushGoods(Long uid, Long auctionId, PushBaseContent baseContent) + throws PushException; + + /** + * 鎺ㄩ�侀摼鎺� + * + * @param uid + * @param url + * @throws PushException + */ + void pushUrl(Long uid, String url, PushBaseContent baseContent) + throws PushException; + + /** + * 鎺ㄩ�佺珯鍐呬俊 + * + * @param uId + * @throws PushException + */ + void pushZNX(Long uId, PushBaseContent baseContent) throws PushException; + + /** + * 閫傜敤鐗堟湰 1.4.8鍙婁互鍚� 鎺ㄩ�亀eex椤甸潰 + * + * @param uid + * @param weexUrl + * @throws PushException + */ + void pushWEEX(Long uid, String weexUrl, PushBaseContent baseContent) + throws PushException; + + /** + * 閫傜敤鐗堟湰 1.4.8鍙婁互鍚� 鎺ㄩ�佺櫨宸濈綉椤� + * + * @param uid + * @param url + * @throws PushException + */ + void pushBaiChuanUrl(Long uid, String url, PushBaseContent baseContent) + throws PushException; + + /** + * 鎺ㄩ�佺鍒╀腑蹇冿紙鐗堟湰鍙�:1.5.1鍚庯級 + * + * @param uid + * @throws PushException + */ + void pushWelfareCenter(Long uid, PushBaseContent baseContent) throws PushException; + + /** + * 鎺ㄩ�佺鍒版彁閱� + * + * @param uid + * @throws PushException + */ + void pushUserSignInNotification(Long uid, PushBaseContent baseContent) throws PushException; + + + /** + * 鎺ㄩ�� + * + * @param dto + * @throws PushException + */ + void push(PushContentDetailDTO dto) throws PushException; + +} -- Gitblit v1.8.0