You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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<TagCustomerResultDTO> getCustomerIdByUserId(@RequestBody TagCustomerFormDTO formDTO);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据staffId查询人员拥有的所有角色信息
|
|
|
|
* @author zhaoqifeng
|
|
|
|
* @date 2020/6/2 16:11
|
|
|
|
* @param staffId
|
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.CustomerStaffRoleResultDTO>>
|
|
|
|
*/
|
|
|
|
@PostMapping("/epmetuser/staffrole/staffroles/{staffId}")
|
|
|
|
Result<List<CustomerStaffRoleResultDTO>> getStaffRoles(@PathVariable String staffId);
|
|
|
|
|
|
|
|
}
|