|
|
|
|
package com.epmet.feign;
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
|
|
|
|
import com.epmet.commons.tools.utils.Result;
|
|
|
|
|
import com.epmet.dto.CustomerStaffDTO;
|
|
|
|
|
import com.epmet.dto.form.CustomerStaffRoleListFormDTO;
|
|
|
|
|
import com.epmet.dto.result.CustomerStaffRoleListResultDTO;
|
|
|
|
|
import com.epmet.feign.fallback.EpmetUserSelfFeignClientFallBack;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @dscription epmet-user服务
|
|
|
|
|
* @author sun
|
|
|
|
|
*/
|
|
|
|
|
@FeignClient(name = ServiceConstant.EPMET_USER_SERVER, fallback = EpmetUserSelfFeignClientFallBack.class)
|
|
|
|
|
public interface EpmetUserSelfFeignClient {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param formDTO
|
|
|
|
|
* @return
|
|
|
|
|
* @Author sun
|
|
|
|
|
* @Description 根据客户Id和staffId查询一个员工在指定客户下的角色列表
|
|
|
|
|
**/
|
|
|
|
|
@PostMapping("/epmetuser/staffrole/getcustomerstaffrolelist")
|
|
|
|
|
Result<List<CustomerStaffRoleListResultDTO>> getCustomerStaffRoleList(@RequestBody CustomerStaffRoleListFormDTO formDTO);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param staffId
|
|
|
|
|
* @return
|
|
|
|
|
* @Author sun
|
|
|
|
|
* @Description 根据staffId查询工作人员基本信息
|
|
|
|
|
**/
|
|
|
|
|
@PostMapping("/epmetuser/customerstaff/getcustomerstaff/{staffId}")
|
|
|
|
|
Result<CustomerStaffDTO> getCustomerStaff(@PathVariable("staffId") String staffId);
|
|
|
|
|
|
|
|
|
|
}
|