package com.yeshi.fanli.service.inter.user.integral;
|
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.integral.IntegralExchange;
|
import com.yeshi.fanli.exception.integral.IntegralExchangeException;
|
import com.yeshi.fanli.vo.integral.ExchangeTipVO;
|
|
public interface IntegralExchangeService {
|
|
/**
|
* 根据主键查询
|
* @param id
|
* @return
|
*/
|
public IntegralExchange selectByPrimaryKey(Long id);
|
|
/**
|
* 查询有效的
|
* @param start
|
* @param count
|
* @return
|
*/
|
public List<IntegralExchange> listValidCache(long start, int count);
|
|
public Long countValid();
|
|
/**
|
* 金币兑换检验
|
* @param uid
|
* @param id
|
* @return
|
* @throws IntegralExchangeException
|
*/
|
public ExchangeTipVO verifyExchange(Long uid, Long id) throws IntegralExchangeException;
|
|
|
/**
|
* 验证内部页面
|
* @param uid
|
* @param id
|
* @return
|
* @throws IntegralExchangeException
|
*/
|
public ExchangeTipVO verifyInviteCode(Long uid, Long id) throws IntegralExchangeException;
|
|
/**
|
* 金币兑换
|
* @param uid
|
* @param id
|
* @throws IntegralExchangeException
|
*/
|
public IntegralExchange exchange(Long uid, Long id) throws IntegralExchangeException;
|
|
|
/**
|
* 邀请码兑换
|
* @param uid
|
* @param id
|
* @return
|
* @throws IntegralExchangeException
|
*/
|
public String exchangeInviteCode(Long uid, Long id) throws IntegralExchangeException;
|
|
|
}
|