From 6c823dd44dbde79f008001a2a11e7bf9bc6bf8cc Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期三, 04 十二月 2024 18:15:44 +0800 Subject: [PATCH] fix:合伙人列表操作日志 --- src/main/java/com/mzl/flower/web/customer/CustomerController.java | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/mzl/flower/web/customer/CustomerController.java b/src/main/java/com/mzl/flower/web/customer/CustomerController.java index 6001878..8b870c9 100644 --- a/src/main/java/com/mzl/flower/web/customer/CustomerController.java +++ b/src/main/java/com/mzl/flower/web/customer/CustomerController.java @@ -4,15 +4,11 @@ import com.mzl.flower.base.BaseController; import com.mzl.flower.base.R; import com.mzl.flower.base.ReturnDataDTO; -import com.mzl.flower.config.exception.ValidationException; import com.mzl.flower.config.security.SecurityUtils; import com.mzl.flower.dto.request.customer.BindPartnerDTO; import com.mzl.flower.dto.request.customer.ChangePartnerDTO; import com.mzl.flower.dto.request.customer.QueryCustomerDTO; import com.mzl.flower.dto.request.customer.UpdateCustomerDTO; -import com.mzl.flower.dto.request.supplier.AuditSupplierDTO; -import com.mzl.flower.dto.request.supplier.QuerySupplierDTO; -import com.mzl.flower.dto.request.supplier.UpdateSupplierDTO; import com.mzl.flower.dto.response.customer.CustomerDTO; import com.mzl.flower.dto.response.supplier.SupplierDTO; import com.mzl.flower.service.customer.CustomerService; @@ -24,6 +20,7 @@ import org.springframework.web.bind.annotation.*; import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; @RestController @RequestMapping("/api/customer") @@ -82,7 +79,14 @@ @GetMapping("/partner/name") @ApiOperation(value = "商户(花店)详情", notes = "商户(花店)详情") - public ResponseEntity<ReturnDataDTO<SupplierDTO>> getPartnerName(@NotBlank(message = "参数不能为空") String partnerUserId) { - return returnData(R.SUCCESS.getCode(),customerService.getPartnerName(partnerUserId)); + public ResponseEntity<ReturnDataDTO<SupplierDTO>> getPartnerName(@NotBlank(message = "参数不能为空") String id) { + return returnData(R.SUCCESS.getCode(),customerService.getPartnerName(id)); + } + + @GetMapping("/page/isEnable") + @ApiOperation(value = "启用/禁用", notes = "启用/禁用商品") + public ResponseEntity<ReturnDataDTO<String>> isEnable(@NotNull(message = "id不能为空") Long id) { + customerService.isEnable(id); + return returnData(R.SUCCESS.getCode(),null); } } -- Gitblit v1.9.3