对接支付开发
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* 缴费支付
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pay")
|
||||
public class CasePaymentController {
|
||||
private final ICasePaymentService paymentService;
|
||||
@Autowired
|
||||
public CasePaymentController(ICasePaymentService paymentService){
|
||||
this.paymentService=paymentService;
|
||||
}
|
||||
@PostMapping("/casePay")
|
||||
public String casePay(PayRequest request) {
|
||||
return paymentService.casePay(request);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user