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.
40 lines
1.5 KiB
40 lines
1.5 KiB
package com.epmet.feign;
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
|
import com.epmet.commons.tools.utils.Result;
|
|
import com.epmet.dto.form.StaffOrgFormDTO;
|
|
import com.epmet.dto.result.DepartmentListResultDTO;
|
|
import com.epmet.dto.result.StaffOrgsResultDTO;
|
|
import com.epmet.feign.fallback.GovOrgFeignClientFallback;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @Description 政府端组织机构模块
|
|
* @Author yinzuomei
|
|
* @Date 2020/4/20 15:18
|
|
*/
|
|
@FeignClient(name = ServiceConstant.GOV_ORG_SERVER, fallback = GovOrgFeignClientFallback.class)
|
|
public interface GovOrgFeignClient {
|
|
/**
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.StaffOrgsResultDTO>>
|
|
* @param staffOrgFormDTO
|
|
* @Author yinzuomei
|
|
* @Description 获取客户对应的根级组织名称
|
|
* @Date 2020/4/20 21:37
|
|
**/
|
|
@PostMapping(value = "/gov/org/customeragency/getStaffOrgList",consumes = MediaType.APPLICATION_JSON_VALUE)
|
|
Result<List<StaffOrgsResultDTO>> getStaffOrgList(StaffOrgFormDTO staffOrgFormDTO);
|
|
|
|
/**
|
|
* 查询人员部门列表
|
|
* @param staffId
|
|
* @return
|
|
*/
|
|
@PostMapping("/gov/org/department/staff/{staffId}/departmentlist")
|
|
Result<List<DepartmentListResultDTO>> getDepartmentListByStaffId(@PathVariable("staffId") String staffId);
|
|
}
|
|
|