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