|
|
@ -5,6 +5,7 @@ import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.SysSmsDTO; |
|
|
|
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.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
|
@ -18,7 +19,11 @@ public interface MessageFeignClient { |
|
|
|
@PostMapping(value = "message/sms/send") |
|
|
|
Result send(@RequestBody SysSmsDTO smsDTO); |
|
|
|
|
|
|
|
//@PostMapping(value = "message/sms/send", consumes = "application/x-www-form-urlencoded")
|
|
|
|
//Result send(Map<String, String> entityBody);
|
|
|
|
/** |
|
|
|
* 发送短信验证码 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping(value = "message/sms/captcha/{mobile}") |
|
|
|
Result sendSmsCaptcha(String mobile); |
|
|
|
|
|
|
|
} |