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
28
29
30
31
32
33
34
35
36
37
38
39
package com.everyday.word.service.inter;
 
import com.everyday.word.entity.SystemEnum;
import com.everyday.word.exception.SMSException;
 
import java.math.BigDecimal;
 
/**
 * 短信服务
 * 
 * @author Administrator
 *
 */
public interface SMSService {
 
    /**
     * @author hxh 
     * @description 发送验证短信
     * @date 17:06 2025/2/11
     * @param: system
     * @param: phone
     * @param: codeLength
     * @param: sence
     * @return java.lang.String
     **/
    public String sendVerifyCode(SystemEnum system, String phone, int codeLength, int sence) throws SMSException;
 
    /**
     * @author hxh 
     * @description 获取验证码
     * @date 13:07 2025/2/13
     * @param: system
     * @param: phone
     * @param: sence
     * @return java.lang.String
     **/
    public String getVerifyCode(SystemEnum system, String phone, int sence);
 
}