feat: 添加订单取消接口

添加订单取消接口
This commit is contained in:
zc 2022-01-06 07:12:13 +08:00
parent 0f9ffc8974
commit 1f6edda4bb

View File

@ -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);
}
}