admin
2022-04-07 e1cc0d03fadc2d251d36c0dc3650f75e830d5363
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
package com.yeshi.makemoney.app.service.inter.goldcorn;
 
import com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetType;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetFrequencyConfigException;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetPriceException;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetRecordException;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornMakeException;
import com.yeshi.makemoney.app.exception.user.UserInfoException;
 
import java.util.Date;
 
/**
 * @author hxh
 * @title: GoldCornGetService
 * @description:赚取金币服务
 * @date 2022/4/6 16:53
 */
public interface GoldCornMakeService {
 
    /**
     * @return void
     * @author hxh
     * @description 添加金币
     * @date 16:55 2022/4/6
     * @param: uid 用户ID
     * @param: type 类型
     * @param: time 发生时间
     **/
    public void addGoldCorn(Long uid, GoldCornGetType type, Date time) throws UserInfoException, GoldCornGetPriceException, GoldCornGetFrequencyConfigException, GoldCornMakeException;
 
 
    /**
     * @return java.lang.Long
     * @author hxh
     * @description 根据日期计算金币
     * @date 18:43 2022/4/6
     * @param: uid
     * @param: day
     **/
    public Long getGoldCornByDay(Long uid, String day);
 
 
}