缴费接口开发一

This commit is contained in:
hejinbo
2023-09-11 18:17:17 +08:00
parent 67ccbbd4f7
commit aa351abd15
8 changed files with 101 additions and 111 deletions
@@ -1,9 +1,11 @@
package com.ruoyi.web.controller.payment;
import com.ruoyi.dto.PayRequest;
import com.ruoyi.system.service.ICasePaymentService;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
import com.ruoyi.wisdomarbitrate.service.ICasePaymentService;
import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
/**
@@ -17,34 +19,23 @@ 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
* @param casePayDTO 缴费传入参数
* @return 统一响应结果
*/
@PostMapping("/casePay")
public String casePay(PayRequest request) {
return paymentService.casePay(request);
public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
return paymentService.casePay(casePayDTO);
}
@PutMapping
public String payConfirm(){
return paymentService.payConfirm();
/**
* 缴费确认
* @param caseApplication
* @return
*/
@PutMapping("/confirm")
public AjaxResult confirmPayment(@Validated @RequestBody CaseApplication caseApplication) {
return paymentService.confirmPayment(caseApplication);
}
}