feat():修复接口相关逻辑

master
LQS 2024-08-09 10:41:45 +08:00
parent 06f0afceec
commit 5b25b55506
1 changed files with 3 additions and 1 deletions

View File

@ -117,18 +117,20 @@ public class OrderPayCustomerController {
public Result<OrderPayCustomer> findById(@PathVariable("orderCustomerId") Long orderCustomerId){
return Result.success(orderPayCustomerService.getById(orderCustomerId),"操作成功");
}
/**
* ID
* @param orderCustomerId ID
* @return
*/
@GetMapping("/enable/{orderCustomerId}")
@GetMapping("/disable/{orderCustomerId}")
@Operation(summary = "通过ID禁用客户",description = "通过ID禁用客户禁用之后禁止调用支付相关接口")
public Result<String> disable(@PathVariable("orderCustomerId") Long orderCustomerId){
this.orderPayCustomerService.deisable(orderCustomerId);
return Result.success(null,"操作成功");
}
/**
* ID
* @param orderCustomerId ID