admin
2019-11-12 5396bf8f7e14a559f825e275579e0091a9d29e73
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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);
}