增加公共订单操作控制器
This commit is contained in:
@ -36,12 +36,6 @@ public class ClientOrderController {
|
||||
return Result.ok(orderService.submitRentCarOrder(rentCarOrderReq));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "根据订单查询订单信息")
|
||||
@GetMapping("/getOrderInfoByOrderNo")
|
||||
public Result<OrderDTO> getOrderInfoByOrderNo(@RequestParam("orderNo") String orderNo){
|
||||
return Result.ok(orderService.getOrderInfoByOrderNo(orderNo));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "申请还车")
|
||||
@PostMapping("/requestReturnCar")
|
||||
public Result<OrderDTO> requestReturnCar(@RequestBody ReturnCarReq returnCarReq){
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
package com.sczx.order.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.sczx.order.common.Result;
|
||||
import com.sczx.order.dto.*;
|
||||
import com.sczx.order.service.OrderService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @Author: 张黎
|
||||
* @Date: 2025/07/25/16:42
|
||||
* @Description:
|
||||
*/
|
||||
@Api(value = "公共订单操作接口", tags = "公共订单操作接口")
|
||||
@RestController
|
||||
@RequestMapping("/pubOrder")
|
||||
public class PubOrderController {
|
||||
|
||||
@Autowired
|
||||
private OrderService orderService;
|
||||
|
||||
@ApiOperation(value = "根据订单查询订单信息")
|
||||
@GetMapping("/getOrderInfoByOrderNo")
|
||||
public Result<OrderDTO> getOrderInfoByOrderNo(@RequestParam("orderNo") String orderNo){
|
||||
return Result.ok(orderService.getOrderInfoByOrderNo(orderNo));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user