feat():修复接口相关逻辑
parent
06f0afceec
commit
5b25b55506
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue