package cn.gistack.sm.sjztmd.feign;
|
|
import cn.gistack.sm.sjztmd.entity.AttResManagePerson;
|
import cn.gistack.sm.sjztmd.vo.PersonVO;
|
import org.springblade.core.tool.api.R;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.List;
|
import java.util.Set;
|
|
/**
|
* @ClassName AttResManagePersonClent
|
* @Description TODO
|
* @Author aix
|
* @Date 2023/4/23 19:34
|
* @Version 1.0
|
*/
|
@FeignClient(
|
value = "blade-sm",
|
fallback = IAttResManagePersonClientFallback.class
|
)
|
public interface IAttResManagePersonClient {
|
|
String API_PREFIX = "/client";
|
String QUERY_LIST_BY_PHONE = API_PREFIX + "/queryListByPhone";
|
String GET_AD_BASE = API_PREFIX + "/getAdBaseById";
|
String GET_PERSONG_LIST_BY_RES_GUID = API_PREFIX + "/getPersonListByResGuid";
|
String GET_USER_LIST_BY_RES_GUID = API_PREFIX + "/getUserListByResGuid";
|
String SYNCHARONIZATION_ADD_USER = API_PREFIX + "/synchronizationAddUser";
|
String SYNCHARONIZATION_UPDATE_USER = API_PREFIX + "/synchronizationUpdateUser";
|
String GET_PERSON_LIST_BY_WATER_CODE_LIST = API_PREFIX + "/getPersonListByWaterCodeList";
|
String GET_CITY_COUNTY_PERSONG_LIST_BY_RES_GUID = API_PREFIX + "/getCityCountyPersonListByResGuid";
|
|
@GetMapping(QUERY_LIST_BY_PHONE)
|
R queryListByPhone(@RequestParam("userPhone") String userPhone);
|
|
@GetMapping(GET_AD_BASE)
|
R getAdBaseById(@RequestParam("guid") String guid);
|
|
/**
|
* 根据水库编号及责任人类型查询相关责任人信息
|
* @param res_cd
|
* @param personList
|
* @return
|
*/
|
@GetMapping(GET_PERSONG_LIST_BY_RES_GUID)
|
List<PersonVO> getPersonListByResGuid(@RequestParam("res_cd") String res_cd, @RequestParam("personList") String personList);
|
|
/**
|
* 根据水库编号查询除责任人之外的人员信息
|
* @param res_cd
|
* @param areaList
|
* @return
|
*/
|
@GetMapping(GET_USER_LIST_BY_RES_GUID)
|
List<PersonVO> getUserListByResGuid(@RequestParam("res_cd") String res_cd, @RequestParam("areaList") String areaList);
|
|
@PostMapping(SYNCHARONIZATION_ADD_USER)
|
int syncharonization_add_user();
|
|
@PostMapping(SYNCHARONIZATION_UPDATE_USER)
|
int syncharonization_update_user();
|
|
/**
|
* 通过水库代码获取巡查责任人及技术责任人手机号
|
* @param list
|
* @return
|
*/
|
@PostMapping(GET_PERSON_LIST_BY_WATER_CODE_LIST)
|
Set<String> getPersonListByWaterCodeList(@RequestBody List<String> list);
|
|
/**
|
* 根据水库编号查询市县水利部人员姓名及联系方式
|
* @param res_cd 水库编号
|
* @return
|
*/
|
@GetMapping(GET_CITY_COUNTY_PERSONG_LIST_BY_RES_GUID)
|
List<PersonVO> getCityCountyPersonListByResGuid(@RequestParam("res_cd") String res_cd);
|
}
|