forked from luyan/epmet-cloud-lingshan
				
			
				 7 changed files with 42 additions and 97 deletions
			
			
		| @ -1,39 +0,0 @@ | |||
| package com.epmet.dto.feign; | |||
| 
 | |||
| 
 | |||
| import com.epmet.commons.tools.constant.ServiceConstant; | |||
| import com.epmet.commons.tools.utils.Result; | |||
| import com.epmet.dto.feign.fallback.GovVoiceFeignClientFallBack; | |||
| import com.epmet.dto.form.*; | |||
| import com.epmet.dto.result.*; | |||
| import org.springframework.cloud.openfeign.FeignClient; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| import org.springframework.web.bind.annotation.RequestBody; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * @Author zxc | |||
|  * @CreateTime 2020/6/2 16:05 | |||
|  * , url = "localhost:8105" | |||
|  */ | |||
| //@FeignClient(name = ServiceConstant.GOV_VOICE_SERVER, fallback = GovVoiceFeignClientFallBack.class,url = "localhost:8105")
 | |||
| @FeignClient(name = ServiceConstant.GOV_VOICE_SERVER, fallback = GovVoiceFeignClientFallBack.class) | |||
| public interface GovVoiceFeignClient { | |||
| 
 | |||
|     /** | |||
|      * @Description  已发布列表页的标签——居民端 | |||
|      * @param formDto | |||
|      * @author zxc | |||
|      */ | |||
|     @PostMapping("/gov/voice/tag/resitaglist") | |||
|     Result<List<TagInfoResultDTO>> resiTagList(@RequestBody ResiTagListFormDTO formDto); | |||
| 
 | |||
|     /** | |||
|      * @Description  标签级联查询——居民端 | |||
|      * @param formDto | |||
|      * @author zxc | |||
|      */ | |||
|     @PostMapping("/gov/voice/tag/tagcascadelist") | |||
|     Result<List<TagInfoResultDTO>> tagCascadeList(@RequestBody TagCascadeListFormDTO formDto); | |||
| } | |||
| @ -1,28 +0,0 @@ | |||
| package com.epmet.dto.feign.fallback; | |||
| 
 | |||
| import com.epmet.commons.tools.constant.ServiceConstant; | |||
| import com.epmet.commons.tools.utils.ModuleUtils; | |||
| import com.epmet.commons.tools.utils.Result; | |||
| import com.epmet.dto.feign.GovVoiceFeignClient; | |||
| import com.epmet.dto.form.*; | |||
| import com.epmet.dto.result.*; | |||
| import org.springframework.stereotype.Component; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * @Author zxc | |||
|  * @CreateTime 2020/6/2 16:07 | |||
|  */ | |||
| @Component | |||
| public class GovVoiceFeignClientFallBack implements GovVoiceFeignClient { | |||
|     @Override | |||
|     public Result<List<TagInfoResultDTO>> resiTagList(ResiTagListFormDTO formDto) { | |||
|         return ModuleUtils.feignConError(ServiceConstant.GOV_VOICE_SERVER, "resiTagList", formDto); | |||
|     } | |||
| 
 | |||
|     @Override | |||
|     public Result<List<TagInfoResultDTO>> tagCascadeList(TagCascadeListFormDTO formDto) { | |||
|         return ModuleUtils.feignConError(ServiceConstant.GOV_VOICE_SERVER, "tagCascadeList", formDto); | |||
|     } | |||
| } | |||
					Loading…
					
					
				
		Reference in new issue