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

master
DongZeLiang 2024-08-05 16:14:20 +08:00
parent e8792ab409
commit 9270d550a8
1 changed files with 5 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class OrderPayCustomerController {
* @return
*/
@DeleteMapping("/{orderCustomerId}")
@Operation(summary = "客户信息删除", description = "通过ID删除客户信息")
@Operation(summary = "客户信息删除", description = "通过ID删除客户信息,七天内存在支付相关记录的客户,不可进行删除")
public Result<String> delete(@PathVariable("orderCustomerId") Long orderCustomerId){
orderPayCustomerService.removeById(orderCustomerId);
return Result.success(null, "操作成功");
@ -122,6 +122,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, "操作成功");
@ -132,6 +134,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, "操作成功");