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