提交 | 用户 | 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.card.CardDto; |
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 |
/** |
|
12 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
13 |
*/ |
|
14 |
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "card") |
|
15 |
public interface SCardItemService { |
|
16 |
|
|
17 |
/** |
|
18 |
* 获取卡项详情 |
|
19 |
* @param cardId 卡项标识 |
|
20 |
* @return Result |
|
21 |
*/ |
|
22 |
@PostMapping(value = "/cardItem/detail") |
|
23 |
Result getCardItemDetail(@RequestParam("cardId") String cardId); |
|
24 |
|
|
25 |
/** |
|
26 |
* 获取卡项门店价格 |
|
27 |
* @param cardId 卡项标识 |
|
28 |
* @param shopId 门店id |
|
29 |
* @return Result |
|
30 |
*/ |
|
31 |
@PostMapping(value = "/cardItem/getShopPrice") |
|
32 |
Result getCardItemShopPrice(@RequestParam("cardId") String cardId, @RequestParam("shopId") String shopId); |
|
33 |
|
|
34 |
|
|
35 |
/** |
|
36 |
* 根据子订单号获取卡项使用详情 |
|
37 |
* @param orderItemNo |
|
38 |
*/ |
|
39 |
@PostMapping(value = "/cardItem/used/orderItemNo") |
|
40 |
Result getCardUsed(@RequestParam("orderItemNo") String orderItemNo); |
|
41 |
|
|
42 |
/** |
d6712e
|
43 |
* 获取卡项列表 |
7c680b
|
44 |
* @return Result |
C |
45 |
*/ |
|
46 |
@PostMapping(value = "/cardItem/page/list") |
|
47 |
Result getCardList(@RequestBody PageDto pageDto); |
|
48 |
|
d6712e
|
49 |
/** |
ec3c21
|
50 |
* 获取卡项更新列表 |
d6712e
|
51 |
* @return Result |
F |
52 |
*/ |
|
53 |
@PostMapping(value = "/cardItem/update/list") |
f5bce1
|
54 |
Result getUpdateCardItem(@RequestBody CardDto cardDto); |
6958c2
|
55 |
|
F |
56 |
/** |
|
57 |
* 获取暂停和结束销售的卡项 |
|
58 |
* @return Result |
|
59 |
*/ |
|
60 |
@PostMapping(value = "/cardItem/noUp/list") |
|
61 |
Result noUpList(@RequestBody CardDto cardDto); |
7c680b
|
62 |
} |