hejianhao
2026-08-28 16a57a8fc6868cea9171a1119698572407a2fc03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.tcm.training.admin.app.auth.service;
 
/**
 * 短信发送抽象,后续接入具体供应商时仅替换实现。
 */
public interface AppSmsSender {
 
    /**
     * 发送 APP 登录验证码。
     */
    void sendLoginCode(String phone, String code);
 
    /**
     * 发送 APP 注册验证码。
     */
    void sendRegisterCode(String phone, String code);
 
    /**
     * 发送 APP 忘记密码验证码。
     */
    void sendPasswordResetCode(String phone, String code);
 
    /**
     * 发送 APP 修改手机号验证码。
     */
    void sendPhoneChangeCode(String phone, String code);
}