package com.epmet.feign; import com.epmet.commons.tools.constant.ServiceConstant; import com.epmet.commons.tools.utils.Result; import com.epmet.dto.form.TagCustomerFormDTO; import com.epmet.dto.result.CustomerStaffRoleResultDTO; import com.epmet.dto.result.TagCustomerResultDTO; import com.epmet.feign.fallback.EpmetUserFeignClientFallBack; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import java.util.List; /** * @Author zxc * @CreateTime 2020/6/2 14:05 * , url = "localhost:8087" */ //@FeignClient(name = ServiceConstant.EPMET_USER_SERVER, fallback = EpmetUserFeignClientFallBack.class, url = "localhost:8087") @FeignClient(name = ServiceConstant.EPMET_USER_SERVER, fallback = EpmetUserFeignClientFallBack.class) public interface EpmetUserFeignClient { /** * @Description 根据userId获取customerId * @param formDTO * @author zxc */ @PostMapping("/epmetuser/user/getcustomeridbyuserid") Result getCustomerIdByUserId(@RequestBody TagCustomerFormDTO formDTO); /** * 根据staffId查询人员拥有的所有角色信息 * @author zhaoqifeng * @date 2020/6/2 16:11 * @param staffId * @return com.epmet.commons.tools.utils.Result> */ @PostMapping("/epmetuser/staffrole/staffroles/{staffId}") Result> getStaffRoles(@PathVariable String staffId); }