From fad73d860dce9ea18a4a6d45d9bf35d6b066a008 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期一, 09 十二月 2024 13:40:37 +0800
Subject: [PATCH] add: 供应商子账号
---
src/main/java/com/mzl/flower/web/supplier/SupplierSubController.java | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/mzl/flower/web/supplier/SupplierSubController.java b/src/main/java/com/mzl/flower/web/supplier/SupplierSubController.java
index 783f5e5..a4d59d9 100644
--- a/src/main/java/com/mzl/flower/web/supplier/SupplierSubController.java
+++ b/src/main/java/com/mzl/flower/web/supplier/SupplierSubController.java
@@ -5,6 +5,9 @@
import com.mzl.flower.base.R;
import com.mzl.flower.base.ReturnDataDTO;
import com.mzl.flower.dto.request.supplier.*;
+import com.mzl.flower.dto.response.payment.DeliveryOrderItemListDTO;
+import com.mzl.flower.dto.response.supplier.SupplierSubVO;
+import com.mzl.flower.entity.supplier.SupplierSub;
import com.mzl.flower.service.supplier.SupplierSubService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -14,6 +17,7 @@
import org.springframework.web.bind.annotation.*;
import javax.validation.constraints.NotNull;
+import java.util.List;
@RestController
@RequestMapping("/api/supplierSub")
@@ -39,7 +43,7 @@
@GetMapping("/page")
@ApiOperation(value = "运营端-供应商子账号分页查询", notes = "运营端-供应商子账号分页查询")
- public ResponseEntity<ReturnDataDTO<Page<SupplierSubDTO>>> querySupplier(QuerySupplierSubDTO dto, Page page) {
+ public ResponseEntity<ReturnDataDTO<Page<SupplierSubVO>>> querySupplier(QuerySupplierSubDTO dto, Page page) {
return returnData(R.SUCCESS.getCode(), supplierSubService.querySupplier(dto, page));
}
@@ -57,4 +61,10 @@
supplierSubService.delete(id);
return returnData(R.SUCCESS.getCode(), null);
}
+
+ @GetMapping("/sub/all")
+ @ApiOperation(value = "获取当前用户下子账号信息", notes = "获取当前用户下子账号信息")
+ public ResponseEntity<ReturnDataDTO<List<SupplierSub>>> getSubSupplier() {
+ return returnData(R.SUCCESS.getCode(), supplierSubService.getSubSupplier());
+ }
}
--
Gitblit v1.9.3