PaymentWalletServiceClient.java 1.4 KB

123456789101112131415161718192021222324252627282930
  1. package com.webchat.rmi.pay;
  2. import com.webchat.common.bean.APIPageResponseBean;
  3. import com.webchat.common.bean.APIResponseBean;
  4. import com.webchat.common.config.annotation.ValidatePermission;
  5. import com.webchat.domain.vo.response.UserWalletDetailResponseVO;
  6. import org.springframework.cloud.openfeign.FeignClient;
  7. import org.springframework.web.bind.annotation.GetMapping;
  8. import org.springframework.web.bind.annotation.PathVariable;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestParam;
  11. import java.math.BigDecimal;
  12. @FeignClient(name = "webchat-pay-service", contextId = "paymentWalletServiceClient")
  13. public interface PaymentWalletServiceClient {
  14. @GetMapping("/pay-service/wallet/balance/{userId}")
  15. APIResponseBean<BigDecimal> getBalance(@PathVariable String userId);
  16. @ValidatePermission
  17. @GetMapping("/pay-service/wallet/page")
  18. APIPageResponseBean<UserWalletDetailResponseVO> page(
  19. @RequestParam(value = "transType", required = false) Integer transType,
  20. @RequestParam(value = "eventType", required = false) Integer eventType,
  21. @RequestParam(value = "userId", required = false) String userId,
  22. @RequestParam(value = "pageNo", required = false, defaultValue = "1") Integer pageNo,
  23. @RequestParam(value = "pageSize", required = false, defaultValue = "10") Integer pageSize);
  24. }