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<IntegralTaskRecord> getSignDaysRecord(long uid, Long cid);
|
|
/**
|
* 领取金币
|
*
|
* @param uid
|
* @param idList
|
* @throws IntegralTaskRecordException
|
*/
|
public Integer receiveGoldCoin(Long uid, Set<Long> idList) throws IntegralTaskRecordException;
|
|
/**
|
* 返回领取列表
|
*
|
* @param count
|
* @param uid
|
* @param idList
|
* @return
|
*/
|
public List<IntegralTaskRecord> listNotReceivedExcludeId(int count, long uid, Set<Long> idList);
|
|
/**
|
* 领取所有
|
*
|
* @param uid
|
* @return
|
* @throws IntegralTaskRecordException
|
*/
|
public Integer receiveGoldCoinALL(Long uid) throws IntegralTaskRecordException;
|
|
/**
|
* 根据任务ID与日期获取任务完成数
|
*
|
* @param taskId
|
* @param day
|
* @return
|
*/
|
public Integer countGetCountByTaskIdAndDay(Long taskId, Long uid, Date day);
|
|
/**
|
* 添加获取记录
|
*
|
* @param record
|
*/
|
public IntegralTaskRecord addRecord(IntegralTaskRecord record) throws IntegralTaskRecordException;
|
|
}
|