package com.yeshi.fanli.service.inter.user;
|
|
import java.util.Map;
|
|
import com.yeshi.fanli.exception.user.UserLotteryRecordException;
|
|
import net.sf.json.JSONObject;
|
|
public interface UserLotteryRecordService {
|
|
/**
|
* 根据uid以及抽奖类型 获取抽奖次数
|
* @param uid
|
* @param type
|
* @return
|
*/
|
public JSONObject getLotteryCountDaily(Long uid) throws UserLotteryRecordException, Exception;
|
|
|
/**
|
* 抽奖-天天抽奖励券
|
* @param uid
|
* @return
|
* @throws UserLotteryRecordException
|
* @throws Exception
|
*/
|
public Map<String, Object> executeLotteryDaily(Long uid) throws UserLotteryRecordException, Exception;
|
|
|
/**
|
* 新人抽奖-次数
|
* @param uid
|
* @return
|
* @throws UserLotteryRecordException
|
* @throws Exception
|
*/
|
public JSONObject getLotteryCountNewbies(Long uid) throws UserLotteryRecordException, Exception;
|
|
/**
|
* 新人抽奖-抽奖结果
|
* @param uid
|
* @return
|
* @throws UserLotteryRecordException
|
* @throws Exception
|
*/
|
public Map<String, Object> executeLotteryNewbies(Long uid) throws UserLotteryRecordException, Exception;
|
|
|
/**
|
* 新人抽奖 -返回奖品
|
* @param count
|
* @param countPrize
|
* @param couponType
|
* @return
|
*/
|
public String getLotteryPrizeNewbies(int count, int countPrize, String couponType);
|
|
}
|