package com.yeshi.fanli.service.inter.integral;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Set;
|
|
import com.yeshi.fanli.entity.integral.IntegralTaskRecord;
|
import com.yeshi.fanli.exception.integral.IntegralTaskRecordException;
|
|
public interface IntegralTaskRecordService {
|
|
|
/**
|
* 待领取金币
|
* @param count
|
* @param uid
|
* @return
|
*/
|
public List<IntegralTaskRecord> listNotReceived(int count, long uid);
|
|
/**
|
* 已领取金币
|
* @param uid
|
* @param dateType
|
* @return
|
*/
|
public Integer getTotalGoldCoin(long uid, Long cid, Integer dateType);
|
|
/**
|
* 完成任务数量
|
* @param uid
|
* @param cid
|
* @param dateType
|
* @return
|
*/
|
public Integer countFinished(long uid, Long cid, Integer dateType);
|
|
/**
|
* 今日是已签到
|
* @param uid
|
* @param cid
|
* @return
|
*/
|
public boolean isToDaySign(long uid, Long cid);
|
|
|
/**
|
* 计算今日签到的天数
|
* @param uid
|
* @param cid
|
* @return
|
*/
|
public Integer getNowdaySignNum(long uid, Long cid);
|
|
/**
|
* 完成任务记录
|
* @param uid
|
* @param cid
|
* @param taskId
|
* @param goldCoin
|
*/
|
public void finishedTask(long uid, long cid, long taskId, int goldCoin);
|
|
/**
|
* 获取已连续签到次数
|
* @param uid
|
* @param cid
|
* @return
|
*/
|
public List<Date> getSignDays(long uid, Long cid);
|
|
|
/**
|
* 领取金币
|
* @param uid
|
* @param idList
|
* @throws IntegralTaskRecordException
|
*/
|
public Integer receiveGoldCoin(Long uid, Set<Long> idList) throws IntegralTaskRecordException;
|
|
}
|