forked from rongchao/epmet-cloud-rizhao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
691 B
20 lines
691 B
5 years ago
|
package com.epmet.feign;
|
||
|
|
||
|
import com.epmet.commons.tools.constant.ServiceConstant;
|
||
|
import com.epmet.commons.tools.utils.Result;
|
||
|
import com.epmet.feign.fallback.MessageFeignClientFallback;
|
||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||
|
|
||
|
@FeignClient(name = ServiceConstant.EPMET_MESSAGE_SERVER, fallback = MessageFeignClientFallback.class)
|
||
|
public interface MessageFeignClient {
|
||
|
|
||
|
/**
|
||
|
* 发送短信验证码
|
||
|
* @return
|
||
|
*/
|
||
|
@GetMapping(value = "message/sms/captcha/{mobile}")
|
||
|
Result sendSmsCaptcha(@RequestParam("mobile") String mobile);
|
||
|
|
||
|
}
|