fwq
2023-11-29 f009e6b4d1cb184e1a49c8c0e4419a8aa172239c
提交 | 用户 | age
a4c260 1 package com.hz.crm.feign;
995edc 2
W 3 import com.hx.resultTool.Result;
a4c260 4 import com.hz.crm.dto.UserDto;
995edc 5 import org.springframework.cloud.openfeign.FeignClient;
W 6 import org.springframework.web.bind.annotation.PostMapping;
7 import org.springframework.web.bind.annotation.RequestBody;
8
9 /**
10  * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
11  */
6dbbfc 12 @FeignClient(name="crm-platform-service",path = "/crm-platform",contextId = "crm-user")
995edc 13 public interface FUserService {
W 14
15     @PostMapping(value = "/user/info")
c58979 16     Result info( @RequestBody(required = false) UserDto userDto);
W 17
18
19     @PostMapping(value = "/user/getUserUnionid")
20     Result getUserUnionid( @RequestBody(required = false) UserDto userDto);
995edc 21
cf14cc 22     @PostMapping(value = "/user/getUserOpRecord")
A 23     Result getUserOpRecord( @RequestBody(required = false) UserDto userDto);
af03d3 24
W 25     @PostMapping(value = "/user/unbindingPhis")
26     Result unbindingPhis( @RequestBody(required = false) UserDto userDto);
995edc 27 }