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);
|
|
}
|