1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| package com.ruoyi.auth.service.sms;
|
| /**
| * 短信发送抽象
| *
| * 通过接口解耦具体短信服务商,便于后续替换真实实现(阿里云/腾讯云等)。
| *
| * @author hugray
| */
| public interface SmsSender
| {
| /**
| * 发送短信验证码
| *
| * @param phone 手机号
| * @param code 验证码
| */
| void send(String phone, String code);
| }
|
|