From 8b2191df2f7d94aa299bd43dcbe97c94e5a61bbd Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 20 十一月 2019 14:53:34 +0800 Subject: [PATCH] RocketMQ的消息整改 --- fanli/src/main/java/com/yeshi/fanli/service/inter/user/TokenRecordService.java | 33 +++++++++++++++++++++++++++++++-- 1 files changed, 31 insertions(+), 2 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/TokenRecordService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/TokenRecordService.java index 4d27dd5..52e8c02 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/TokenRecordService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/TokenRecordService.java @@ -1,5 +1,8 @@ package com.yeshi.fanli.service.inter.user; +import java.util.List; + +import com.yeshi.fanli.entity.accept.AcceptData; import com.yeshi.fanli.entity.bus.user.TokenRecord; import com.yeshi.fanli.exception.user.TokenRecordException; import com.yeshi.fanli.vo.msg.TokenVO; @@ -23,7 +26,7 @@ * @return * @throws TokenRecordException */ - public TokenVO discernToken(String token, Long uid) throws TokenRecordException; + public TokenVO discernToken(String token, Long uid, AcceptData acceptData) throws TokenRecordException; /** @@ -32,9 +35,35 @@ * @param uid * @throws TokenRecordException */ - public String receiveToken(String token, Long uid) throws TokenRecordException; + public String receiveToken(String token, Long uid, AcceptData acceptData) throws TokenRecordException; public void updateByPrimaryKeySelective(TokenRecord record); + /** + * 寰呰繃鏈熺殑鍙d护 + * @param count + * @return + */ + public List<TokenRecord> overdueList(int count); + + /** + * 杩囨湡鍙d护 + * @param list + */ + public void overdue(List<TokenRecord> list); + + /** + * 绾㈠寘鍙d护澶辨晥 + * @param id + */ + public void invalidByRedPack(Long id); + + + /** + * 鍒稿彛浠ゅけ鏁� + * @param id + */ + public void invalidByCoupon(Long id); + } -- Gitblit v1.8.0