|
@@ -3,6 +3,9 @@ package com.sckw.payment.controller;
|
|
|
import com.sckw.core.web.response.HttpResult;
|
|
import com.sckw.core.web.response.HttpResult;
|
|
|
import com.sckw.payment.model.dto.Id;
|
|
import com.sckw.payment.model.dto.Id;
|
|
|
import com.sckw.payment.model.vo.req.*;
|
|
import com.sckw.payment.model.vo.req.*;
|
|
|
|
|
+import com.sckw.payment.model.vo.req.page.PrePayPage;
|
|
|
|
|
+import com.sckw.payment.model.vo.req.page.MoneyPage;
|
|
|
|
|
+import com.sckw.payment.model.vo.req.page.RefundPage;
|
|
|
import com.sckw.payment.service.WalletService;
|
|
import com.sckw.payment.service.WalletService;
|
|
|
import jakarta.annotation.Resource;
|
|
import jakarta.annotation.Resource;
|
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.Valid;
|
|
@@ -296,4 +299,99 @@ public class WalletController {
|
|
|
public HttpResult back(@RequestBody @Valid RefundBackReq refundReq) {
|
|
public HttpResult back(@RequestBody @Valid RefundBackReq refundReq) {
|
|
|
return HttpResult.ok(walletService.backRefund(refundReq));
|
|
return HttpResult.ok(walletService.backRefund(refundReq));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ /*资金明细-详细记录*/
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 充值订单
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param moneyPage
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("rechargeOrder")
|
|
|
|
|
+ public HttpResult rechargeList(@RequestBody @Valid MoneyPage moneyPage) {
|
|
|
|
|
+ return HttpResult.ok(walletService.rechargeList(moneyPage));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 转账订单
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param moneyPage
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("transferOrder")
|
|
|
|
|
+ public HttpResult transferList(@RequestBody @Valid MoneyPage moneyPage) {
|
|
|
|
|
+ return HttpResult.ok(walletService.transferOrder(moneyPage));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 退款订单
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param moneyPage
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("refundOrder")
|
|
|
|
|
+ public HttpResult refundOrder(@RequestBody @Valid MoneyPage moneyPage) {
|
|
|
|
|
+ return HttpResult.ok(walletService.refundOrder(moneyPage));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 提现订单
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param moneyPage
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("cashOrder")
|
|
|
|
|
+ public HttpResult cashOrder(@RequestBody @Valid MoneyPage moneyPage) {
|
|
|
|
|
+ return HttpResult.ok(walletService.cashOrder(moneyPage));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /*预付-详细记录*/
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 预付订单
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param moneyPage
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("prePayOrder")
|
|
|
|
|
+ public HttpResult prePayOrder(@RequestBody @Valid MoneyPage moneyPage) {
|
|
|
|
|
+ return HttpResult.ok(walletService.cashOrder(moneyPage));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 退款记录
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param moneyPage
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("prePayRefund")
|
|
|
|
|
+ public HttpResult prePayRefund(@RequestBody @Valid MoneyPage moneyPage) {
|
|
|
|
|
+ return HttpResult.ok(walletService.prePayRefund(moneyPage));
|
|
|
|
|
+ }
|
|
|
|
|
+ /*预收-详细记录*/
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 预收订单
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param moneyPage
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("preReceiveOrder")
|
|
|
|
|
+ public HttpResult preReceiveOrder(@RequestBody @Valid MoneyPage moneyPage) {
|
|
|
|
|
+ return HttpResult.ok(walletService.cashOrder(moneyPage));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 退款订单
|
|
|
|
|
+ *
|
|
|
|
|
+ * @param moneyPage
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @PostMapping("preReceiveRefund")
|
|
|
|
|
+ public HttpResult preReceiveRefund(@RequestBody @Valid MoneyPage moneyPage) {
|
|
|
|
|
+ return HttpResult.ok(walletService.preReceiveRefund(moneyPage));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|