This commit is contained in:
hejinbo
2023-09-11 14:45:44 +08:00
parent 4d2d8b0976
commit b4fb054a7f
6 changed files with 80 additions and 9 deletions
@@ -1,15 +1,10 @@
package com.ruoyi.web.controller.payment;
import com.ruoyi.ElegentPay;
import com.ruoyi.constant.Platform;
import com.ruoyi.constant.TradeType;
import com.ruoyi.dto.PayRequest;
import com.ruoyi.dto.PayResponse;
import com.ruoyi.system.service.ICasePaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
/**
* 缴费支付
@@ -22,8 +17,34 @@ public class CasePaymentController {
public CasePaymentController(ICasePaymentService paymentService){
this.paymentService=paymentService;
}
/**
* 查询缴费列表
*/
@GetMapping
public String queryPayList(){
return paymentService.queryPayList();
}
/**
* 根据案件id查询缴费清单
* @return
*/
@GetMapping
public String getPaymentListByCaseId(){
return paymentService.getPaymentListByCaseId();
}
/**
* 案件缴费
* @param request
* @return
*/
@PostMapping("/casePay")
public String casePay(PayRequest request) {
return paymentService.casePay(request);
}
@PutMapping
public String payConfirm(){
return paymentService.payConfirm();
}
}
@@ -141,6 +141,6 @@ elegent:
alipay:
appId: 2021003141676135
callback:
domain: https://2d3ac179.r5.cpolar.top
domain: http://121.40.189.20:9000/
watch: true
cycle: 10