admin
2024-01-23 81da61b828e29b7745e1382dfbbaeb685dc083ef
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.yeshi.fanli.service.inter.user;
 
import java.math.BigDecimal;
 
import com.yeshi.fanli.entity.SystemEnum;
import com.yeshi.fanli.exception.config.SMSException;
 
/**
 * 短信服务
 * 
 * @author Administrator
 *
 */
public interface SMSService {
 
    /**
     * 发送登录验证码
     * 
     * @param phone
     * @throws SMSException
     */
    public String sendLoginVCode(SystemEnum system, String phone, int codeLength) throws SMSException;
 
    /**
     * 发送绑定验证码
     * 
     * @param phone
     * @throws SMSException
     */
    public void sendBindVCode(SystemEnum system,String phone, int codeLength) throws SMSException;
 
    /**
     * 发送提现验证码
     * 
     * @param phone
     * @throws SMSException
     */
    public void sendExtractVCode(SystemEnum system,String phone) throws SMSException;
 
    /**
     * 提现成功短信
     * 
     * @param phone
     * @param money
     */
    public void sendExtractSuccessMsg(SystemEnum system,String phone, BigDecimal money) throws SMSException;
 
    /**
     * 发送提现失败验证码
     * 
     * @param phone
     * @param money
     */
    public void sendExtractFailMsg(SystemEnum system,String phone, BigDecimal money) throws SMSException;
 
    /**
     * 账户注销
     * @param phone
     * @param codeLength
     * @throws SMSException
     */
    public void sendRemoveVCode(SystemEnum system,String phone, int codeLength) throws SMSException;
}