admin
2019-08-19 616608ec1005bff373bc380ecc3bf02a1063497c
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
package com.yeshi.fanli.service.inter.user;
 
import com.yeshi.fanli.entity.bus.user.TokenRecord;
import com.yeshi.fanli.exception.user.TokenRecordException;
import com.yeshi.fanli.vo.msg.TokenVO;
 
public interface TokenRecordService {
 
    public void insertSelective(TokenRecord record);
 
    /**
     * 查询最近发布口令
     * @param type
     * @param identify
     * @return
     */
    public TokenRecord getNearByTypeAndIdentify(String type, String identify);
 
    /**
     * 赠送口令解析
     * @param token
     * @param uid
     * @return
     * @throws TokenRecordException
     */
    public TokenVO discernToken(String token, Long uid) throws TokenRecordException;
 
    
    /**
     * 口令领取
     * @param token
     * @param uid
     * @throws TokenRecordException
     */
    public String receiveToken(String token, Long uid) throws TokenRecordException;
 
}