增加创建支付单接口

This commit is contained in:
2025-09-06 23:59:10 +08:00
parent fddbcc584f
commit eb8ef1b101

View File

@ -1,7 +1,14 @@
package com.sczx.pay.controller;
import com.sczx.pay.dto.ali.rent.AlipayRentPayReq;
import com.sczx.pay.dto.ali.rent.AlipayRentPayResponse;
import com.sczx.pay.service.AlipayRentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -10,4 +17,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/alipay/rent")
public class AlipayRentController {
@Autowired
private AlipayRentService alipayRentService;
@ApiOperation(value = "创建支付单")
@PostMapping("/pay")
public AlipayRentPayResponse pay(@RequestBody AlipayRentPayReq request) {
return alipayRentService.rentPay(request);
}
}