admin
2019-11-12 5396bf8f7e14a559f825e275579e0091a9d29e73
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
package com.yeshi.fanli.service.inter.redpack;
 
import java.math.BigDecimal;
 
import com.yeshi.fanli.entity.redpack.RedPackGiveRecord;
import com.yeshi.fanli.exception.redpack.RedPackGiveRecordException;
 
public interface RedPackGiveRecordService {
 
    /**
     * 赠送红包
     * @param uid
     * @param amount
     * @return
     * @throws RedPackGiveRecordException
     */
    public String giving(Long uid, BigDecimal amount) throws RedPackGiveRecordException;
 
    /**
     * 查询记录
     * @param id
     * @return
     */
    public RedPackGiveRecord selectByPrimaryKey(Long id);
 
    /**
     * 更新记录
     * @param record
     */
    public void updateByPrimaryKeySelective(RedPackGiveRecord record);
 
    /**
     * 口令红包领取
     * @param uid
     * @param id
     * @throws RedPackGiveRecordException
     */
    public RedPackGiveRecord receiveFriendsGive(Long uid, Long id) throws RedPackGiveRecordException;
 
 
    /**
     * 赠送退回
     * @param id
     * @throws Exception
     */
    public void overdueByPrimaryKey(Long id) throws Exception;
 
 
}