|
|
|
package com.epmet.feign;
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
|
|
|
import com.epmet.commons.tools.dto.form.DictListFormDTO;
|
|
|
|
import com.epmet.commons.tools.dto.result.DictListResultDTO;
|
|
|
|
import com.epmet.commons.tools.dto.result.DictTreeResultDTO;
|
|
|
|
import com.epmet.commons.tools.dto.result.OptionResultDTO;
|
|
|
|
import com.epmet.commons.tools.utils.Result;
|
|
|
|
import com.epmet.dto.SysDictDataDTO;
|
|
|
|
import com.epmet.dto.result.CorsConfigResultDTO;
|
|
|
|
import com.epmet.feign.fallback.EpmetAdminOpenFeignClientFallbackFactory;
|
|
|
|
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;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
@FeignClient(name = ServiceConstant.EPMET_ADMIN_SERVER, fallbackFactory = EpmetAdminOpenFeignClientFallbackFactory.class)
|
|
|
|
//@FeignClient(name = ServiceConstant.EPMET_ADMIN_SERVER, fallbackFactory = EpmetAdminOpenFeignClientFallbackFactory.class, url = "localhost:8082")
|
|
|
|
public interface EpmetAdminOpenFeignClient {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 查询跨域配置列表
|
|
|
|
* @return
|
|
|
|
* @author wxz
|
|
|
|
* @date 2021.06.25 10:00
|
|
|
|
*/
|
|
|
|
@PostMapping("/sys/cors-config/list")
|
|
|
|
Result<List<CorsConfigResultDTO>> list();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 文化程度
|
|
|
|
* @Param
|
|
|
|
* @Return {@link Result<List< OptionResultDTO >>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/10/26 17:27
|
|
|
|
*/
|
|
|
|
@PostMapping("/sys/dict/data/education")
|
|
|
|
Result<List<OptionResultDTO>> getEducationOption();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 住房性质
|
|
|
|
* @Param
|
|
|
|
* @Return {@link Result<List<OptionResultDTO>>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/10/26 17:27
|
|
|
|
*/
|
|
|
|
@PostMapping("/sys/dict/data/house")
|
|
|
|
Result<List<OptionResultDTO>> getHouseOption();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 民族
|
|
|
|
* @Param
|
|
|
|
* @Return {@link Result<List<OptionResultDTO>>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/10/26 17:27
|
|
|
|
*/
|
|
|
|
@PostMapping("/sys/dict/data/nation")
|
|
|
|
Result<List<OptionResultDTO>> getNationOption();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 九小场所
|
|
|
|
* @Param
|
|
|
|
* @Return {@link Result<List<OptionResultDTO>>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/10/26 17:27
|
|
|
|
*/
|
|
|
|
@PostMapping("/sys/dict/data/ninesmallplaces")
|
|
|
|
Result<List<OptionResultDTO>> getNineSmallPlacesOption();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Description 人员关系
|
|
|
|
* @Param
|
|
|
|
* @Return {@link Result<List<OptionResultDTO>>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/10/26 17:27
|
|
|
|
*/
|
|
|
|
@PostMapping("/sys/dict/data/relationship")
|
|
|
|
Result<List<OptionResultDTO>> getRelationshipOption();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 字典数据查询通用接口
|
|
|
|
* @Param dictType
|
|
|
|
* @Return {@link Result< Map < String, String>>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/11/19 17:36
|
|
|
|
*/
|
|
|
|
@PostMapping("/sys/dict/data/dictmap/{dictType}")
|
|
|
|
Result<Map<String, String>> dictMap(@PathVariable("dictType") String dictType);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 字典数据查询通用接口
|
|
|
|
* @Param dictType
|
|
|
|
* @Return {@link Result< Map < String, String>>}
|
|
|
|
* @Author zhaoqifeng
|
|
|
|
* @Date 2021/11/19 17:36
|
|
|
|
*/
|
|
|
|
@PostMapping("/sys/dict/data/dictTree/{dictType}")
|
|
|
|
Result<List<DictTreeResultDTO>> dictTree(@PathVariable("dictType") String dictType);
|
|
|
|
|
|
|
|
@PostMapping("/sys/dict/data/dictlist")
|
|
|
|
Result<List<DictListResultDTO>> dictList(@RequestBody DictListFormDTO formDTO);
|
|
|
|
|
|
|
|
@PostMapping("/sys/dict/data/dictDataList/{dictType}")
|
|
|
|
Result<List<SysDictDataDTO>> dictDataList(@PathVariable("dictType") String dictType);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 字典下拉框
|
|
|
|
* 根据dictType查询字典
|
|
|
|
* @param dictType
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@PostMapping("/sys/dict/data/dictOption/{dictType}")
|
|
|
|
public Result<List<OptionResultDTO>> getDictOption(@PathVariable("dictType")String dictType);
|
|
|
|
}
|