All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mizhousoft.boot.sms.service.VerificationCodeSmsService Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package com.mizhousoft.boot.sms.service;

import com.mizhousoft.cloudsdk.sms.CloudSmsTemplate;
import com.mizhousoft.cloudsdk.sms.SmsSendException;

/**
 * 验证码短信服务
 *
 * @version
 */
public interface VerificationCodeSmsService
{
	/**
	 * 发送
	 * 
	 * @param phoneNumber
	 * @param host
	 * @param smsTemplate
	 * @return
	 * @throws SmsSendException
	 */
	String sendVerificationCode(String phoneNumber, String host, CloudSmsTemplate smsTemplate) throws SmsSendException;

	/**
	 * 校验
	 * 
	 * @param phoneNumber
	 * @param code
	 * @param smsTemplate
	 * @throws SmsSendException
	 */
	void verify(String phoneNumber, String code, CloudSmsTemplate smsTemplate) throws SmsSendException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy