feat():增删改查

master
chentaisen 2024-08-09 22:01:47 +08:00
parent 1138a90291
commit 1339af0a32
1 changed files with 4 additions and 0 deletions

View File

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