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;
|
}
|