ANDRU-PC\Andru
2023-07-03 263eb35250f6eebec93a4ca0c40adb0610e98de6
提交 | 用户 | 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;
b37d55 11 import org.springframework.web.bind.annotation.RequestBody;
8880a6 12
Z 13 /**
14  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
15  */
16 @FeignClient(name="synchro-service",path = "/his_synchro",contextId = "synchro-promotion")
17 public interface SyncPromotionService {
18
19     /**
20      * 同步促销
21      * _id:领建id
22      * name: 促销名字
23      * @param jsonObject
24      * @return
25      */
26     @PostMapping(value = "/sync/project/promotion")
b37d55 27     Result syncHisPromotion(@RequestBody JSONObject jsonObject);
8880a6 28 }