forked from rongchao/epmet-cloud-rizhao
				
			
				 40 changed files with 175 additions and 118 deletions
			
			
		| @ -1,18 +0,0 @@ | |||||
| package com.epmet.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.CustomerGridDTO; |  | ||||
| import com.epmet.feign.GovOrgFeignClient; |  | ||||
| import org.springframework.stereotype.Component; |  | ||||
| 
 |  | ||||
| 
 |  | ||||
| @Component |  | ||||
| public class GovOrgFeignClientFallBack implements GovOrgFeignClient { |  | ||||
| 
 |  | ||||
|     @Override |  | ||||
|     public Result<CustomerGridDTO> get(String id) { |  | ||||
|         return ModuleUtils.feignConError(ServiceConstant.GOV_ORG_SERVER, "get", id); |  | ||||
|     } |  | ||||
| } |  | ||||
| @ -1,10 +1,10 @@ | |||||
| package com.epmet.feign; | package com.epmet.modules.feign; | ||||
| 
 | 
 | ||||
| import com.epmet.commons.tools.constant.ServiceConstant; | import com.epmet.commons.tools.constant.ServiceConstant; | ||||
| import com.epmet.commons.tools.utils.Result; | import com.epmet.commons.tools.utils.Result; | ||||
| import com.epmet.dto.CustomerDepartmentDTO; | import com.epmet.dto.CustomerDepartmentDTO; | ||||
| import com.epmet.dto.CustomerGridDTO; | import com.epmet.dto.CustomerGridDTO; | ||||
| import com.epmet.feign.fallback.GovOrgFeignClientFallBack; | import com.epmet.modules.feign.fallback.GovOrgFeignClientFallBack; | ||||
| import org.springframework.cloud.openfeign.FeignClient; | import org.springframework.cloud.openfeign.FeignClient; | ||||
| import org.springframework.web.bind.annotation.GetMapping; | import org.springframework.web.bind.annotation.GetMapping; | ||||
| 
 | 
 | ||||
| @ -0,0 +1,24 @@ | |||||
|  | package com.epmet.modules.feign.fallback; | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | import com.epmet.commons.tools.utils.Result; | ||||
|  | import com.epmet.dto.CustomerDepartmentDTO; | ||||
|  | import com.epmet.dto.CustomerGridDTO; | ||||
|  | import com.epmet.modules.feign.GovOrgFeignClient; | ||||
|  | import org.springframework.stereotype.Component; | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | @Component | ||||
|  | public class GovOrgFeignClientFallBack implements GovOrgFeignClient { | ||||
|  | 
 | ||||
|  | 
 | ||||
|  |     @Override | ||||
|  |     public Result<CustomerGridDTO> getGrid(String id) { | ||||
|  |         return null; | ||||
|  |     } | ||||
|  | 
 | ||||
|  |     @Override | ||||
|  |     public Result<CustomerDepartmentDTO> getDept(String id) { | ||||
|  |         return null; | ||||
|  |     } | ||||
|  | } | ||||
| @ -0,0 +1,28 @@ | |||||
|  | package com.epmet.constant; | ||||
|  | 
 | ||||
|  | /** | ||||
|  |  * @author zhaoqifeng | ||||
|  |  * @dscription | ||||
|  |  * @date 2020/4/29 13:41 | ||||
|  |  */ | ||||
|  | public interface PartyMemberMessageConstant { | ||||
|  | 	/** | ||||
|  | 	 * 消息标题 | ||||
|  | 	 */ | ||||
|  | 	String GROUP_TITLE = "您有一条党员申请消息"; | ||||
|  | 
 | ||||
|  | 	/** | ||||
|  | 	 * 党员提交申请时给网格长发送消息:XX街道-XX先生/女士申请成为党员,请审核。 | ||||
|  | 	 */ | ||||
|  | 	String MEMBER_APPLY_MSG = "%s申请成为党员,请审核。"; | ||||
|  | 
 | ||||
|  | 	/** | ||||
|  | 	 * 党员申请审核通过给申请人发送消息:您好,您申请的党员已审核通过,请查看。 | ||||
|  | 	 */ | ||||
|  | 	String AUDIT_APPROVE_MSG = "您好,您申请的%s党员已审核通过,请查看。"; | ||||
|  | 
 | ||||
|  | 	/** | ||||
|  | 	 * 党员申请审核驳回给申请人发送消息:您好,您申请的党员,由于不符合条件的原因,已被驳回。 | ||||
|  | 	 */ | ||||
|  | 	String AUDIT_REJECT_MSG = "您好,您申请的%s党员,由于不符合条件的原因,已被驳回。"; | ||||
|  | } | ||||
					Loading…
					
					
				
		Reference in new issue