From 30d8e227e8d823b6c38c3b9c90ac2df03b63befe Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 25 二月 2025 16:41:22 +0800 Subject: [PATCH] 淘宝转链接口更新 --- fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackExchangeService.java | 152 ++++++++++++++++++++++++-------------------------- 1 files changed, 73 insertions(+), 79 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackExchangeService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackExchangeService.java index 98cd9ca..51e806f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackExchangeService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/redpack/RedPackExchangeService.java @@ -1,79 +1,73 @@ -package com.yeshi.fanli.service.inter.redpack; - -import java.math.BigDecimal; -import java.util.List; - -import com.yeshi.fanli.entity.common.AdminUser; -import com.yeshi.fanli.entity.redpack.RedPackExchange; -import com.yeshi.fanli.exception.redpack.RedPackExchangeException; - -public interface RedPackExchangeService { - - /** - * 鎻愮幇杞崲鐜伴噾 - * @param uid - * @param amount - * @throws RedPackExchangeException - */ - public void exchangeCash(Long uid, BigDecimal amount) throws RedPackExchangeException; - - /** - * 鍚庡彴鏌ヨ - * @param start - * @param count - * @param key - * @param state - * @return - */ - public List<RedPackExchange> query(Integer start, Integer count, String key, Integer state); - - public Long count(String key, Integer state); - - /** - * 缁熻鍚勪釜鐘舵�� - * @param uid - * @return - */ - public List<Long> countState(long uid); - - /** - * 缁熻鍚勪釜鐘舵�侀噾棰� - * @param uid - * @return - */ - public List<BigDecimal> countMoneyState(long uid); - - /** - * 鑾峰彇鐢宠 - * @param id - * @return - */ - public RedPackExchange selectByPrimaryKey(long id); - - /** - * 鎻愮幇閫氳繃 - * @param id - * @param admin - * @throws RedPackExchangeException - */ - public void passExchange(long id, AdminUser admin) throws RedPackExchangeException; - - /** - * 鎻愮幇鎷掔粷 - * @param id - * @param reason - * @param admin - * @throws RedPackExchangeException - */ - public void rejectExchange(long id, String reason, AdminUser admin) throws RedPackExchangeException; - - /** - * 缁熻鐘舵�� - * @param uid - * @param state - * @return - */ - public BigDecimal countMoneyByState(Long uid, Integer state); - - -} +package com.yeshi.fanli.service.inter.redpack; + +import java.math.BigDecimal; +import java.util.List; + +import com.yeshi.fanli.entity.common.AdminUser; +import com.yeshi.fanli.entity.redpack.RedPackExchange; +import com.yeshi.fanli.exception.redpack.RedPackExchangeException; + +public interface RedPackExchangeService { + + /** + * 鎻愮幇杞崲鐜伴噾 + * @param uid + * @param amount + * @throws RedPackExchangeException + */ + public void exchangeCash(Long uid, BigDecimal amount) throws RedPackExchangeException; + + /** + * 鍚庡彴鏌ヨ + * @param start + * @param count + * @param key + * @param state + * @return + */ + public List<RedPackExchange> query(Integer start, Integer count, String key, Integer state); + + public Long count(String key, Integer state); + + /** + * 缁熻鍚勪釜鐘舵�� + * @param uid + * @return + */ + public Long countByUidAndState(long uid, Integer state); + + + /** + * 鑾峰彇鐢宠 + * @param id + * @return + */ + public RedPackExchange selectByPrimaryKey(long id); + + /** + * 鎻愮幇閫氳繃 + * @param id + * @param admin + * @throws RedPackExchangeException + */ + public void passExchange(long id, AdminUser admin) throws RedPackExchangeException; + + /** + * 鎻愮幇鎷掔粷 + * @param id + * @param reason + * @param admin + * @throws RedPackExchangeException + */ + public void rejectExchange(long id, String reason, AdminUser admin) throws RedPackExchangeException; + + /** + * 缁熻鐘舵�� + * @param uid + * @param state + * @return + */ + public BigDecimal countMoneyByUidAndState(Long uid, Integer state); + + +} -- Gitblit v1.8.0