admin
2020-06-17 87b391b8a81ee2abdaa4131d245784ecc7a54e9a
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
package com.ks.tool.bkz.service.user;
 
import com.ks.tool.bkz.entity.user.SDLJShareOpenHistory;
import com.ks.tool.bkz.exception.SDLJShareOpenHistoryException;
 
import java.util.Date;
 
/**
 * 首单礼金共享版开通记录
 */
public interface SDLJShareOpenHistoryService {
 
    /**
     * 是否已经开通
     * @param uid
     * @return
     */
    public boolean isOpen(Long uid);
 
    /**
     * 获取过期时间
     * @param uid
     * @return
     */
    public Date getExpireTime(Long uid);
 
 
    /**
     * 添加开通记录
     * @param history
     */
    public void addHistory(SDLJShareOpenHistory history) throws SDLJShareOpenHistoryException;
 
    /**
     * 获取最近的一条开通记录
     * @param uid
     * @return
     */
    public SDLJShareOpenHistory selectLatestHistory(Long uid);
 
}