feat():修复接口相关逻辑
parent
099dc126f9
commit
f17a2324ce
|
@ -106,7 +106,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,"操作成功");
|
||||
|
@ -129,6 +129,8 @@ public class OrderPayCustomerController {
|
|||
* @param orderCustomerId
|
||||
* @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,"操作成功");
|
||||
|
@ -140,6 +142,8 @@ public class OrderPayCustomerController {
|
|||
* @param orderCustomerId
|
||||
* @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