提交 1f6edda4 编写于 作者: 总有刁民想害朕2's avatar 总有刁民想害朕2

feat: 添加订单取消接口

添加订单取消接口
上级 0f9ffc89
......@@ -86,4 +86,11 @@ public class OrderController {
boolean result = orderService.deleteOrder(orderId);
return Result.judge(result);
}
@ApiOperation("订单取消")
@PutMapping("/cancel")
public Result cancel( @RequestParam Long id){
boolean result = orderService.cancelOrder(id);
return Result.judge(result);
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册