彩票助手后端1.0
This commit is contained in:
25
src/main/java/com/xy/xyaicpzs/service/SmsService.java
Normal file
25
src/main/java/com/xy/xyaicpzs/service/SmsService.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package com.xy.xyaicpzs.service;
|
||||
|
||||
/**
|
||||
* 短信服务接口
|
||||
*/
|
||||
public interface SmsService {
|
||||
|
||||
/**
|
||||
* 发送短信验证码
|
||||
*
|
||||
* @param phoneNumber 手机号码
|
||||
* @return 发送是否成功
|
||||
* @throws Exception 发送异常
|
||||
*/
|
||||
boolean sendVerificationCode(String phoneNumber) throws Exception;
|
||||
|
||||
/**
|
||||
* 验证短信验证码
|
||||
*
|
||||
* @param phoneNumber 手机号码
|
||||
* @param code 验证码
|
||||
* @return 验证是否通过
|
||||
*/
|
||||
boolean verifyCode(String phoneNumber, String code);
|
||||
}
|
||||
Reference in New Issue
Block a user