|
|
|
package com.epmet.feign;
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
|
|
|
import com.epmet.commons.tools.dto.result.OptionResultDTO;
|
|
|
|
import com.epmet.commons.tools.utils.Result;
|
|
|
|
import com.epmet.dto.result.CorsConfigResultDTO;
|
|
|
|
import com.epmet.feign.fallback.EpmetAdminOpenFeignClientFallbackFactory;
|
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@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();
|
|
|
|
}
|