|
@@ -7,7 +7,9 @@ import com.ym.mec.common.page.PageInfo;
|
|
|
import com.ym.mec.mall.fallback.MallFeignServiceFallback;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
@FeignClient(name = "${app-config.open-feign.mall-server.name:mall-server}",
|
|
|
contextId = "MallFeignService",
|
|
@@ -16,6 +18,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
public interface MallFeignService {
|
|
|
|
|
|
@PostMapping(value = "open/product/list")
|
|
|
- PageInfo<PmsProductDto> getProductList(PmsProductQueryParamDto productQueryParam);
|
|
|
+ @ResponseBody
|
|
|
+ PageInfo<PmsProductDto> getProductList(@RequestBody PmsProductQueryParamDto productQueryParam);
|
|
|
|
|
|
}
|