mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
feat: 添加订单取消接口
添加订单取消接口
This commit is contained in:
parent
0f9ffc8974
commit
1f6edda4bb
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user