admin
2019-09-29 6f14a131b39c8fc44b29b6130c4e2002bbf2d3ca
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
60
61
62
63
64
65
66
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;
 
    
}