From 7f2ed43f4eb8b6b1a4407c4980cb849cb8b91efa Mon Sep 17 00:00:00 2001 From: fwq <582742538@qq.com> Date: 星期五, 28 十月 2022 18:35:02 +0800 Subject: [PATCH] 多参数请求列表 --- phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WUpdateService.java | 7 ++++--- phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/gold/ParListDto.java | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/gold/ParListDto.java b/phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/gold/ParListDto.java new file mode 100644 index 0000000..905657a --- /dev/null +++ b/phi-warehouse-feign/src/main/java/com/hx/warehouse/dto/gold/ParListDto.java @@ -0,0 +1,14 @@ +package com.hx.warehouse.dto.gold; + +import lombok.Data; + +import java.util.List; + +/** + * 閲戝崥鏌ヨ鍙傛暟 + * @author fwq + */ +@Data +public class ParListDto { + private List<ParameterDto> parameterDtoList; +} diff --git a/phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WUpdateService.java b/phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WUpdateService.java index 6278669..5c3740e 100644 --- a/phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WUpdateService.java +++ b/phi-warehouse-feign/src/main/java/com/hx/warehouse/feign/WUpdateService.java @@ -1,5 +1,6 @@ package com.hx.warehouse.feign; +import com.hx.warehouse.dto.gold.ParListDto; import com.hx.warehouse.dto.gold.ParameterDto; import com.hx.resultTool.Result; import org.springframework.cloud.openfeign.FeignClient; @@ -17,18 +18,18 @@ * 鏇存柊闂ㄥ簵浠撳簱 * */ @PostMapping(value = "/update/shopWareHouse") - Result updateShopWarehouse(@RequestBody ParameterDto parameterDto); + Result updateShopWarehouse(@RequestBody ParListDto parListDto); /** * 鏇存柊鍟嗗搧淇℃伅 * */ @PostMapping(value = "/update/consumables") - Result updateConsumables(@RequestBody ParameterDto parameterDto); + Result updateConsumables(@RequestBody ParListDto parListDto); /** * 鏇存柊鍟嗗搧搴撳瓨 * */ @PostMapping(value = "/update/stock") - Result updateConsumablesStock(@RequestBody ParameterDto parameterDto); + Result updateConsumablesStock(@RequestBody ParListDto parListDto); } -- Gitblit v1.8.0