From 62a447d89331aee1feae7724c7616aa1bb2cfe79 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 16 十月 2024 14:28:37 +0800 Subject: [PATCH] 将CMQ替换为rabbitmq --- fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackGiveRecordService.java | 111 +++++++++++++++++++++++++++++++------------------------ 1 files changed, 62 insertions(+), 49 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackGiveRecordService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackGiveRecordService.java index 842678c..2ef5320 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackGiveRecordService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackGiveRecordService.java @@ -1,49 +1,62 @@ -package com.yeshi.fanli.service.inter.redpack; - -import java.math.BigDecimal; - -import com.yeshi.fanli.entity.redpack.RedPackGiveRecord; -import com.yeshi.fanli.exception.redpack.RedPackGiveRecordException; - -public interface RedPackGiveRecordService { - - /** - * 璧犻�佺孩鍖� - * @param uid - * @param amount - * @return - * @throws RedPackGiveRecordException - */ - public String giving(Long uid, BigDecimal amount) throws RedPackGiveRecordException; - - /** - * 鏌ヨ璁板綍 - * @param id - * @return - */ - public RedPackGiveRecord selectByPrimaryKey(Long id); - - /** - * 鏇存柊璁板綍 - * @param record - */ - public void updateByPrimaryKeySelective(RedPackGiveRecord record); - - /** - * 鍙d护绾㈠寘棰嗗彇 - * @param uid - * @param id - * @throws RedPackGiveRecordException - */ - public RedPackGiveRecord receiveFriendsGive(Long uid, Long id) throws RedPackGiveRecordException; - - - /** - * 璧犻�侀��鍥� - * @param id - * @throws Exception - */ - public void overdueByPrimaryKey(Long id) throws Exception; - - -} +package com.yeshi.fanli.service.inter.redpack; + +import java.math.BigDecimal; +import java.util.List; + +import com.yeshi.fanli.entity.redpack.RedPackGiveRecord; +import com.yeshi.fanli.exception.redpack.RedPackGiveRecordException; +import com.yeshi.fanli.vo.redpack.RedPackGiveVO; + +public interface RedPackGiveRecordService { + + /** + * 璧犻�佺孩鍖� + * @param uid + * @param amount + * @return + * @throws RedPackGiveRecordException + */ + public String giving(Long uid, BigDecimal amount) throws RedPackGiveRecordException; + + /** + * 鏌ヨ璁板綍 + * @param id + * @return + */ + public RedPackGiveRecord selectByPrimaryKey(Long id); + + /** + * 鏇存柊璁板綍 + * @param record + */ + public void updateByPrimaryKeySelective(RedPackGiveRecord record); + + /** + * 鍙d护绾㈠寘棰嗗彇 + * @param uid + * @param id + * @throws RedPackGiveRecordException + */ + public RedPackGiveRecord receiveFriendsGive(Long uid, Long id) throws RedPackGiveRecordException; + + + /** + * 璧犻�侀��鍥� + * @param id + * @throws Exception + */ + public void overdueByPrimaryKey(Long id) throws Exception; + + /** + * 鏌ヨ璧犻�佽褰� + * @param page + * @param pageSzie + * @param uid + * @return + */ + public List<RedPackGiveVO> getGiveList(int page, int pageSzie, Long uid); + + public long countGiveList(Long uid); + + +} -- Gitblit v1.8.0