提交 | 用户 | age
|
7c680b
|
1 |
package com.hz.his.feign.service; |
C |
2 |
|
|
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.PageDto; |
|
5 |
import org.springframework.cloud.openfeign.FeignClient; |
|
6 |
import org.springframework.web.bind.annotation.PostMapping; |
|
7 |
import org.springframework.web.bind.annotation.RequestBody; |
|
8 |
import org.springframework.web.bind.annotation.RequestParam; |
|
9 |
|
|
10 |
import java.util.List; |
|
11 |
|
|
12 |
/** |
|
13 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
14 |
*/ |
|
15 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "project") |
|
16 |
public interface SProjectService { |
|
17 |
|
|
18 |
/** |
|
19 |
* 获取项目spu详情 |
|
20 |
* @param projectId 公共标识 |
|
21 |
* @return Result |
|
22 |
*/ |
|
23 |
@PostMapping(value = "/project/spu/detail") |
|
24 |
Result getProjectSpuDetail(@RequestParam("projectId") String projectId); |
|
25 |
|
|
26 |
/** |
|
27 |
* 获取项目sku详情 |
|
28 |
* @param projectId 公共标识 |
|
29 |
* @return Result |
|
30 |
*/ |
|
31 |
@PostMapping(value = "/project/sku/detail") |
|
32 |
Result getProjectSkuDetail(@RequestParam("projectId") String projectId); |
|
33 |
|
|
34 |
/** |
|
35 |
* 获取项目sku列表 |
|
36 |
* @param spuId 公共标识 |
|
37 |
* @return Result |
|
38 |
*/ |
|
39 |
@PostMapping(value = "/project/sku/spuId/list") |
|
40 |
List<String> getSkuListBySpuId(@RequestParam("spuId") String spuId); |
|
41 |
|
|
42 |
|
|
43 |
/** |
|
44 |
* 获取项目列表 |
|
45 |
* @return Result |
|
46 |
*/ |
|
47 |
@PostMapping(value = "/project/page/list") |
|
48 |
Result getProjectList(@RequestBody PageDto pageDto); |
|
49 |
|
|
50 |
/** |
|
51 |
* 获取项目门店价格列表 |
|
52 |
* @return Result |
|
53 |
*/ |
|
54 |
@PostMapping(value = "/project/sku/getProjectShopPrice") |
|
55 |
Result getProjectShopPrice(@RequestBody String id); |
|
56 |
} |