提交 | 用户 | age
|
ddd881
|
1 |
package com.hz.his.feign.service.phis; |
7c680b
|
2 |
|
C |
3 |
import com.hx.resultTool.Result; |
|
4 |
import com.hz.his.dto.PageDto; |
f5bce1
|
5 |
import com.hz.his.dto.TimeDto; |
F |
6 |
import com.hz.his.dto.project.ProjectDto; |
7c680b
|
7 |
import org.springframework.cloud.openfeign.FeignClient; |
C |
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
9 |
import org.springframework.web.bind.annotation.RequestBody; |
|
10 |
import org.springframework.web.bind.annotation.RequestParam; |
|
11 |
|
|
12 |
import java.util.List; |
|
13 |
|
|
14 |
/** |
|
15 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
16 |
*/ |
|
17 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "project") |
|
18 |
public interface SProjectService { |
|
19 |
|
|
20 |
/** |
|
21 |
* 获取项目spu详情 |
|
22 |
* @param projectId 公共标识 |
|
23 |
* @return Result |
|
24 |
*/ |
|
25 |
@PostMapping(value = "/project/spu/detail") |
|
26 |
Result getProjectSpuDetail(@RequestParam("projectId") String projectId); |
|
27 |
|
|
28 |
/** |
|
29 |
* 获取项目sku详情 |
|
30 |
* @param projectId 公共标识 |
|
31 |
* @return Result |
|
32 |
*/ |
|
33 |
@PostMapping(value = "/project/sku/detail") |
|
34 |
Result getProjectSkuDetail(@RequestParam("projectId") String projectId); |
|
35 |
|
|
36 |
/** |
|
37 |
* 获取项目sku列表 |
|
38 |
* @param spuId 公共标识 |
|
39 |
* @return Result |
|
40 |
*/ |
|
41 |
@PostMapping(value = "/project/sku/spuId/list") |
|
42 |
List<String> getSkuListBySpuId(@RequestParam("spuId") String spuId); |
|
43 |
|
|
44 |
|
|
45 |
/** |
|
46 |
* 获取项目列表 |
|
47 |
* @return Result |
|
48 |
*/ |
|
49 |
@PostMapping(value = "/project/page/list") |
|
50 |
Result getProjectList(@RequestBody PageDto pageDto); |
|
51 |
|
|
52 |
/** |
|
53 |
* 获取项目门店价格列表 |
|
54 |
* @return Result |
|
55 |
*/ |
|
56 |
@PostMapping(value = "/project/sku/getProjectShopPrice") |
|
57 |
Result getProjectShopPrice(@RequestBody String id); |
d6712e
|
58 |
|
94e364
|
59 |
/** |
F |
60 |
* 获取项目门店价格更新 |
|
61 |
* @return Result |
|
62 |
*/ |
|
63 |
@PostMapping(value = "/project/sku/shop/price/update") |
f5bce1
|
64 |
Result getUpdateShopPrice(@RequestBody TimeDto timeDto); |
d6712e
|
65 |
|
F |
66 |
/** |
|
67 |
* 获取项目sku列表(同步使用) |
|
68 |
* @return Result |
|
69 |
*/ |
|
70 |
@PostMapping(value = "/project/page/sku/update") |
f5bce1
|
71 |
Result getUpdateProject(@RequestBody ProjectDto projectDto); |
d6712e
|
72 |
|
F |
73 |
/** |
|
74 |
* 获取项目spu列表(同步使用) |
|
75 |
* @return Result |
|
76 |
*/ |
|
77 |
@PostMapping(value = "/project/page/spu/update") |
f5bce1
|
78 |
Result getUpdateSpuProject(@RequestBody ProjectDto projectDto); |
1e5b85
|
79 |
|
F |
80 |
/** |
|
81 |
* 获取项目spu规格列表(同步使用) |
|
82 |
* @return Result |
|
83 |
*/ |
|
84 |
@PostMapping(value = "/project/page/spu/spec/update") |
|
85 |
Result getUpdateSpuSpecProject(@RequestParam("hisId") String hisId); |
|
86 |
|
7c680b
|
87 |
} |