1 changed files with 19 additions and 0 deletions
@ -0,0 +1,19 @@ |
|||||
|
package com.elink.esua.epdc.feign.fallback; |
||||
|
|
||||
|
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant; |
||||
|
import com.elink.esua.epdc.commons.tools.utils.ModuleUtils; |
||||
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
||||
|
import com.elink.esua.epdc.feign.MessageFeignClient; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @auther: zhangyong |
||||
|
* @date: 2021-12-22 15:28 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class MessageFeignClientFallback implements MessageFeignClient { |
||||
|
@Override |
||||
|
public Result sendCode(String mobile) { |
||||
|
return ModuleUtils.feignConError(ServiceConstant.EPDC_MESSAGE_SERVER, "sendCode", mobile); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue