Interface HttpCoinTradeService
@HttpExchange("seen/feign-v1/coin/trade")
public interface HttpCoinTradeService
HttpCoinTradeService
- Since:
- 2023-01-01
- Author:
- chixuehui
-
Method Summary
Modifier and TypeMethodDescriptioncheckEnough(Long userId, Long coinMount) checkEnoughAndFreeze(Long userId, Long coinMount, BusiType busiType, String description) 检查资金是否足够,如果够冻结freezeToSysUse(Long userId, Long coinMount, BusiType busiType, String description) freezeToTemporary(Long userId, Long coinMount, BusiType busiType, String description) simpleTradeTypeTo(Long userId, Long coinAmount, BusiType busiType)
-
Method Details
-
freezeToSysUse
-
freezeToTemporary
-
checkEnoughAndFreeze
@PostExchange("check-enough-and-freeze") Set<Long> checkEnoughAndFreeze(@RequestParam("userId") Long userId, @RequestParam("coinMount") Long coinMount, @RequestParam("busiType") BusiType busiType, @RequestParam("description") String description) 检查资金是否足够,如果够冻结- Parameters:
userId- 用户IDcoinMount- 虚拟币个数- Returns:
- 冻结的交易ID,资金不够时返回空
-
checkEnough
-
simpleTradeTypeTo
-