From 6912e074af61b73307d2fc31b1b8f4974f5eb4f3 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 22 五月 2026 10:17:31 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/mx_charging_pile

---
 ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java
index 45ca63b..eb21843 100644
--- a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java
+++ b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/feignClient/OtherClient.java
@@ -4,10 +4,17 @@
 import com.ruoyi.common.core.constant.ServiceNameConstants;
 import com.ruoyi.common.core.domain.R;
 import com.ruoyi.other.api.domain.*;
+import com.ruoyi.other.api.dto.ExchangeCodeBindDTO;
+import com.ruoyi.other.api.dto.ExchangeCodeConsumeDTO;
+import com.ruoyi.other.api.dto.ExchangeCodeUseRecordQuery;
 import com.ruoyi.other.api.dto.TagListQueryDto;
 import com.ruoyi.other.api.dto.UnitListQueryDto;
 import com.ruoyi.other.api.factory.OtherFallbackFactory;
 import com.ruoyi.other.api.vo.CouponListVOVO;
+import com.ruoyi.other.api.vo.ExchangeCodeBindResultVO;
+import com.ruoyi.other.api.vo.ExchangeCodeConsumeResultVO;
+import com.ruoyi.other.api.domain.TExchangeCodeUseRecord;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.*;
 
@@ -96,4 +103,25 @@
     @GetMapping(value = "/region/reset")
     R reset(@RequestParam("electricity") String electricity);
 
+    @PostMapping(value = "/exchange-code-package/bind")
+    R<ExchangeCodeBindResultVO> bindExchangeCode(@RequestBody ExchangeCodeBindDTO dto,
+                                                 @RequestParam("userId") Long userId,
+                                                 @RequestParam("phone") String phone);
+
+    @PostMapping(value = "/exchange-code-package/balanceMap")
+    R<Map<Long, BigDecimal>> getExchangeCodeBalanceMap(@RequestBody List<Long> userIds);
+
+    @PostMapping(value = "/exchange-code-package/consumeBalance")
+    R<ExchangeCodeConsumeResultVO> consumeExchangeCodeBalance(@RequestBody ExchangeCodeConsumeDTO dto);
+
+    @PostMapping(value = "/exchange-code-package/refundBalance")
+    R<ExchangeCodeConsumeResultVO> refundExchangeCodeBalance(@RequestBody ExchangeCodeConsumeDTO dto);
+
+    @PostMapping(value = "/exchange-code-package/useRecord/page")
+    R<Page<TExchangeCodeUseRecord>> exchangeCodeUseRecordPage(@RequestBody ExchangeCodeUseRecordQuery query);
+
+    @GetMapping(value = "/exchange-code-package/useRecord/detail")
+    R<TExchangeCodeUseRecord> exchangeCodeUseRecordDetail(@RequestParam("id") Long id,
+                                                           @RequestParam("userId") Long userId);
+
 }

--
Gitblit v1.7.1