fwq
2023-11-29 f009e6b4d1cb184e1a49c8c0e4419a8aa172239c
提交 | 用户 | age
d7572a 1 package com.hz.crm.feign;
W 2
3 import com.hx.resultTool.Result;
4 import com.hz.crm.dto.UserDto;
5 import com.hz.crm.dto.oldBrinNew.OldBrinNewDto;
6 import org.springframework.cloud.openfeign.FeignClient;
7 import org.springframework.web.bind.annotation.PostMapping;
8 import org.springframework.web.bind.annotation.RequestBody;
9
10 /**
11  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
12  */
13 @FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-oldBrinNew")
14 public interface FOldBrinNewService {
15
16     @PostMapping(value = "/oldBrinNew/give/integral")
17     Result giveIntegral( @RequestBody(required = false) OldBrinNewDto dto);
18
119a89 19
W 20     @PostMapping(value = "/oldBrinNew/activities")
21     Result activities( @RequestBody(required = false) OldBrinNewDto dto);
22
d7572a 23 }