Interface HttpCoinTradeService


@HttpExchange("seen/feign-v1/coin/trade") public interface HttpCoinTradeService
HttpCoinTradeService
Since:
2023-01-01
Author:
chixuehui
  • Method Details

    • freezeToSysUse

      @PostExchange("freeze-to-sys-use") Long freezeToSysUse(@RequestParam("userId") Long userId, @RequestParam("coinMount") Long coinMount, @RequestParam("busiType") BusiType busiType, @RequestParam("description") String description)
    • freezeToTemporary

      @PostExchange("freeze-to-temporary") Long freezeToTemporary(@RequestParam("userId") Long userId, @RequestParam("coinMount") Long coinMount, @RequestParam("busiType") BusiType busiType, @RequestParam("description") String description)
    • 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 - 用户ID
      coinMount - 虚拟币个数
      Returns:
      冻结的交易ID,资金不够时返回空
    • checkEnough

      @PostExchange("check-enough") Boolean checkEnough(@RequestParam("userId") Long userId, @RequestParam("coinMount") Long coinMount)
    • simpleTradeTypeTo

      @PostExchange("simple-trade-type-to") Long simpleTradeTypeTo(@RequestParam("userId") Long userId, @RequestParam("coinAmount") Long coinAmount, @RequestParam("busiType") BusiType busiType)