From b7ace278c8486eb6299f6668f8d092fb859352ca Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期二, 28 四月 2026 09:12:55 +0800
Subject: [PATCH] p0功能 小程序
---
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TExchangeCodePackageController.java | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TExchangeCodePackageController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TExchangeCodePackageController.java
index 8b314fd..ea3599c 100644
--- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TExchangeCodePackageController.java
+++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TExchangeCodePackageController.java
@@ -15,6 +15,8 @@
import com.ruoyi.other.api.dto.ExchangeCodeBindDTO;
import com.ruoyi.other.api.dto.ExchangeCodeConsumeDTO;
import com.ruoyi.other.api.dto.ExchangeCodePackageSaveDTO;
+import com.ruoyi.other.api.dto.ExchangeCodeUseRecordQuery;
+import com.ruoyi.other.api.domain.TExchangeCodeUseRecord;
import com.ruoyi.other.api.vo.ExchangeCodeBindResultVO;
import com.ruoyi.other.api.vo.ExchangeCodeConsumeResultVO;
import com.ruoyi.other.api.vo.ExchangeCodePackageDetailVO;
@@ -41,6 +43,7 @@
import java.util.Map;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@RestController
@RequestMapping("/exchange-code-package")
@@ -184,6 +187,19 @@
return R.ok(exchangeCodePackageService.consumeBalance(dto));
}
+ @PostMapping("/useRecord/page")
+ @ApiOperation(value = "兑换码余额流水分页", tags = {"小程序-兑换码"})
+ public R<Page<TExchangeCodeUseRecord>> useRecordPage(@RequestBody ExchangeCodeUseRecordQuery query) {
+ return R.ok(exchangeCodePackageService.useRecordPage(query));
+ }
+
+ @GetMapping("/useRecord/detail")
+ @ApiOperation(value = "兑换码余额流水详情", tags = {"小程序-兑换码"})
+ public R<TExchangeCodeUseRecord> useRecordDetail(@RequestParam("id") Long id,
+ @RequestParam("userId") Long userId) {
+ return R.ok(exchangeCodePackageService.useRecordDetail(id, userId));
+ }
+
private String buildQrPayload(ExchangeCodeDetailVO detail) {
return "code=" + detail.getCode() + "&password=" + detail.getPassword();
}
--
Gitblit v1.7.1