package com.ruoyi.web.controller.api;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.system.dto.MakeOrderDto;
|
import com.ruoyi.system.dto.MakeOrderResp;
|
import com.ruoyi.system.service.TPayOrderService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.validation.annotation.Validated;
|
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;
|
|
@Api(value = "支付订单")
|
@RestController
|
@RequestMapping("/t-pay")
|
public class PayController {
|
|
|
|
@Autowired
|
TPayOrderService tPayOrderService;
|
|
@ApiOperation(value = "创建支付订单")
|
@PostMapping("makeOrder")
|
public R<MakeOrderResp> makeOrder(@Validated @RequestBody MakeOrderDto dto){
|
MakeOrderResp resp = tPayOrderService.makeOrder(dto);
|
return R.ok(resp);
|
}
|
|
|
|
|
}
|