feat(): 修复接口相关逻辑
parent
e8792ab409
commit
9270d550a8
|
@ -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, "操作成功");
|
||||
|
|
Loading…
Reference in New Issue