增加订单详情接口

This commit is contained in:
2024-09-25 13:53:47 +08:00
parent 373870c65b
commit 84eaaed716
4 changed files with 106 additions and 140 deletions

View File

@@ -47,6 +47,21 @@ public class OrderController {
return orderService.orderInfo(orderId);
}
/**
* 订单详情
* @param shopId 店铺id
* @param orderId 订单id
* @return 订单信息
*/
@GetMapping ("/orderDetail")
public Result getCartByOrderId(
@RequestParam Integer shopId,
@RequestParam Integer orderId
){
return Result.successWithData(orderService.orderDetail(shopId, orderId));
}
@GetMapping("/orderList")
private Result orderList(@RequestParam Integer userId,@RequestParam Integer page,
@RequestParam Integer size, @RequestParam String status){