|
|
@@ -1,11 +1,10 @@
|
|
|
package com.kym.miniapp.controller;
|
|
|
|
|
|
import com.kym.common.R;
|
|
|
+import com.kym.entity.admin.queryParams.CommonQueryParam;
|
|
|
+import com.kym.service.miniapp.RefundLogService;
|
|
|
import com.kym.service.miniapp.WalletDetailService;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
|
@@ -21,8 +20,11 @@ public class AccountController {
|
|
|
|
|
|
private final WalletDetailService walletDetailService;
|
|
|
|
|
|
- public AccountController(WalletDetailService walletDetailService) {
|
|
|
+ private final RefundLogService refundLogService;
|
|
|
+
|
|
|
+ public AccountController(WalletDetailService walletDetailService, RefundLogService refundLogService) {
|
|
|
this.walletDetailService = walletDetailService;
|
|
|
+ this.refundLogService = refundLogService;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -36,4 +38,9 @@ public class AccountController {
|
|
|
return R.success(walletDetailService.listWalletDetail(type));
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/listRefund")
|
|
|
+ public R<?> listRefund(@RequestBody CommonQueryParam params) {
|
|
|
+ return R.success(refundLogService.listRefundLogForApp(params));
|
|
|
+ }
|
|
|
+
|
|
|
}
|