yujian
2019-11-12 db9b3f501855ed7d97315c27c538de05bb0f7eaf
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package com.yeshi.fanli.service.inter.user;
 
import java.util.List;
 
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;
 
    
    public void updateByPrimaryKeySelective(TokenRecord record);
 
    /**
     * 待过期的口令
     * @param count
     * @return
     */
    public List<TokenRecord> overdueList(int count);
 
    /**
     * 过期口令
     * @param list
     */
    public void overdue(List<TokenRecord> list);
 
    /**
     * 红包口令失效
     * @param id
     */
    public void invalidByRedPack(Long id);
 
 
    /**
     * 券口令失效
     * @param id
     */
    public void invalidByCoupon(Long id);
 
}