提交 | 用户 | 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.card.CardDt; |
F |
6 |
import com.hz.phis.dt.promotion.PromotionDt; |
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 |
/** |
|
13 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
14 |
*/ |
|
15 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "promotion") |
|
16 |
public interface SPromotionService { |
|
17 |
|
|
18 |
/** |
|
19 |
* 获取促销详情 |
|
20 |
* @param promotionId 促销标识 |
|
21 |
* @return Result |
|
22 |
*/ |
|
23 |
@PostMapping(value = "/promotion/detail") |
|
24 |
Result getPromotionDetail(@RequestParam("promotionId") String promotionId); |
|
25 |
|
|
26 |
|
|
27 |
/** |
|
28 |
* 获取促的商品 |
|
29 |
* @param id 促销标识 |
|
30 |
* @return Result |
|
31 |
*/ |
|
32 |
@PostMapping(value = "/promotion/goods") |
|
33 |
Result getPromotionGoods(@RequestParam("id") String id); |
|
34 |
|
|
35 |
/** |
|
36 |
* 获取促销列表 |
|
37 |
* @return Result |
|
38 |
*/ |
|
39 |
@PostMapping(value = "/promotion/page/list") |
|
40 |
Result getPromotionList(@RequestBody PageDto pageDto); |
|
41 |
|
ec3c21
|
42 |
/**获取促销更新列表*/ |
bede9e
|
43 |
@PostMapping(value = "/promotion/update/list") |
F |
44 |
Result getUpdatePromotion(@RequestBody PromotionDt promotionDt); |
7c680b
|
45 |
} |