提交 | 用户 | age
|
8880a6
|
1 |
package com.hz.his.feign.service.sync; |
Z |
2 |
|
|
3 |
/** |
|
4 |
* @Author |
|
5 |
*/ |
|
6 |
|
|
7 |
import com.alibaba.fastjson.JSONObject; |
|
8 |
import com.hx.resultTool.Result; |
|
9 |
import org.springframework.cloud.openfeign.FeignClient; |
|
10 |
import org.springframework.web.bind.annotation.PostMapping; |
|
11 |
|
|
12 |
/** |
|
13 |
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀 |
|
14 |
*/ |
|
15 |
@FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-promotion") |
|
16 |
public interface SyncPromotionService { |
|
17 |
|
|
18 |
/** |
|
19 |
* 同步促销 |
|
20 |
* _id:领建id |
|
21 |
* name: 促销名字 |
|
22 |
* @param jsonObject |
|
23 |
* @return |
|
24 |
*/ |
|
25 |
@PostMapping(value = "/sync/project/promotion") |
|
26 |
Result syncHisPromotion(JSONObject jsonObject); |
|
27 |
} |