yujian
2019-08-23 89e89fe2b2a1578a94b2e2c8ee81efbfbbf85f08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.yeshi.fanli.service.inter.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 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;
 
    
}