package com.kidgrow.oauth2.service;
|
|
import com.kidgrow.common.model.ResultBody;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
/**
|
* 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
|
*
|
* @Description: <br>
|
* @Project: <br>
|
* @CreateDate: Created in 2020/2/20 09:19 <br>
|
* @Author: <a href="4345453@kidgrow.com">liuke</a>
|
*/
|
public interface IValidateCodeService {
|
/**
|
* 保存图形验证码
|
* @param deviceId 前端唯一标识
|
* @param imageCode 验证码
|
*/
|
void saveImageCode(String deviceId, String imageCode);
|
|
ResultBody sendSmsCode(String mobile);
|
|
/**
|
* 获取验证码
|
* @param deviceId 前端唯一标识/手机号
|
*/
|
String getCode(String deviceId);
|
|
/**
|
* 删除验证码
|
* @param deviceId 前端唯一标识/手机号
|
*/
|
void remove(String deviceId);
|
|
/**
|
* 验证验证码
|
*/
|
void validate(HttpServletRequest request);
|
}
|