forked from rongchao/epmet-cloud-rizhao
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.
77 lines
2.7 KiB
77 lines
2.7 KiB
package com.epmet.feign;
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
|
import com.epmet.commons.tools.utils.Result;
|
|
import com.epmet.dto.CustomerGridDTO;
|
|
import com.epmet.dto.form.CommonGridIdFormDTO;
|
|
import com.epmet.dto.form.CustomerGridFormDTO;
|
|
import com.epmet.dto.result.CommunityInfoResultDTO;
|
|
import com.epmet.dto.result.GridInfoResultDTO;
|
|
import com.epmet.feign.fallback.GovOrgFeignClientFallBack;
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
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;
|
|
|
|
/**
|
|
* @Description 居民端陌生人导览 调用gov-org服务
|
|
* @Author sun
|
|
* @Date 2020/3/16
|
|
*/
|
|
//, url = "localhost:8092"
|
|
@FeignClient(name = ServiceConstant.GOV_ORG_SERVER, fallback = GovOrgFeignClientFallBack.class)
|
|
public interface GovOrgFeignClient {
|
|
|
|
/**
|
|
* @param
|
|
* @Description 根据客户Id查询客户用户表数据
|
|
* @Date 2020/3/17
|
|
**/
|
|
@PostMapping("/gov/org/customergrid/getcustomergridbygridid")
|
|
Result<CustomerGridDTO> getCustomerGridByGridId(CustomerGridFormDTO formDTO);
|
|
|
|
/**
|
|
* @param gridId
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dto.result.GridInfoResultDTO>
|
|
* @Author yinzuomei
|
|
* @Description 根据网格id查询所属组织信息
|
|
* @Date 2020/4/26 23:16
|
|
**/
|
|
@GetMapping("/gov/org/customergrid/getGridInfo/{gridId}")
|
|
Result<GridInfoResultDTO> queryGridInfo(@PathVariable("gridId") String gridId);
|
|
|
|
/**
|
|
* @Description 查询一个网格下的所有工作人员[copy wangc]
|
|
* @param gridIdFormDTO
|
|
* @return Result<List<String>>
|
|
* @author zxc
|
|
* @date 2020.04.29 22:59
|
|
**/
|
|
@PostMapping("/gov/org/customerstaffgrid/getgridstaffs")
|
|
Result<List<String>> getGridStaffs(@RequestBody CommonGridIdFormDTO gridIdFormDTO);
|
|
|
|
/**
|
|
* desc: 获取网格基础数据
|
|
*
|
|
* @param customerGridFormDTO
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dto.CustomerGridDTO>
|
|
* @author LiuJanJun
|
|
* @date 2021/4/19 11:19 上午
|
|
*/
|
|
//@PostMapping("/gov/org/grid/getbaseinfo")
|
|
//Result<CustomerGridDTO> getGridBaseInfoByGridId(CustomerGridFormDTO customerGridFormDTO);
|
|
|
|
/**
|
|
* @param orgName
|
|
* @return com.epmet.commons.tools.utils.Result<com.epmet.dto.result.CommunityInfoResultDTO>
|
|
* @Author wgf
|
|
* @Description 根据社区名称查询所属组织信息
|
|
* @Date 2020/4/26 23:16
|
|
**/
|
|
@GetMapping("/gov/org/customeragency/getCommunityInfo/{orgName}")
|
|
Result<CommunityInfoResultDTO> getCommunityInfo(@PathVariable("orgName") String orgName);
|
|
|
|
}
|
|
|