Merge pull request '增加创建支付单接口' (#4) from zhangli-test into main
Reviewed-on: #4
This commit is contained in:
@ -1,7 +1,14 @@
|
|||||||
package com.sczx.pay.controller;
|
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.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@ -10,4 +17,13 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/alipay/rent")
|
@RequestMapping("/alipay/rent")
|
||||||
public class AlipayRentController {
|
public class AlipayRentController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AlipayRentService alipayRentService;
|
||||||
|
|
||||||
|
@ApiOperation(value = "创建支付单")
|
||||||
|
@PostMapping("/pay")
|
||||||
|
public AlipayRentPayResponse pay(@RequestBody AlipayRentPayReq request) {
|
||||||
|
return alipayRentService.rentPay(request);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user