| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | |
| | | */ |
| | | TokenRecord getByToken(@Param("token")String token); |
| | | |
| | | /** |
| | | * 失效生成口令 |
| | | * @param identify |
| | | * @param type |
| | | * @return |
| | | */ |
| | | void invalidByTypeAndIdentify(@Param("list")List<String> list, @Param("identify")String identify); |
| | | |
| | | |
| | | /** |
| | | * 查询该类型最近生成口令 |
| | |
| | | * @return |
| | | */ |
| | | TokenRecord getNearByTypeAndIdentify(@Param("type")String type, @Param("identify")String identify); |
| | | |
| | | |
| | | /** |
| | | * 查询该类型生成口令 |
| | | * @param identify |
| | | * @param type |
| | | * @return |
| | | */ |
| | | TokenRecord getByTypeAndIdentify(@Param("type")String type, @Param("identify")String identify); |
| | | |
| | | |
| | | /** |
| | | * 口令失效 |
| | | * @param token |
| | | * @return |
| | | */ |
| | | List<TokenRecord> overdueList(@Param("count") int count); |
| | | } |