admin
2022-10-28 0e9b6603d4ae9d11c1fbc90257ce816c5807b8ff
app/src/main/java/com/yeshi/makemoney/app/service/inter/goldcorn/GoldCornMakeService.java
@@ -1,6 +1,9 @@
package com.yeshi.makemoney.app.service.inter.goldcorn;
import com.yeshi.makemoney.app.dto.goldcorn.GoldCornMakeResultDTO;
import com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetRecord;
import com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetType;
import com.yeshi.makemoney.app.entity.user.UserInfo;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetFrequencyConfigException;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetPriceException;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetRecordException;
@@ -24,9 +27,10 @@
     * @date 16:55 2022/4/6
     * @param: uid 用户ID
     * @param: type 类型
     * @param: isDouble 是否加倍
     * @param: time 发生时间
     **/
    public void addGoldCorn(Long uid, GoldCornGetType type, Date time) throws UserInfoException, GoldCornGetPriceException, GoldCornGetFrequencyConfigException, GoldCornMakeException;
    public GoldCornGetRecord addGoldCorn(Long uid, GoldCornGetType type, boolean isDouble, Date time, Integer price, Long eventCount) throws UserInfoException, GoldCornGetFrequencyConfigException, GoldCornMakeException;
    /**
@@ -37,7 +41,110 @@
     * @param: uid
     * @param: day
     **/
    public Long getGoldCornByDay(Long uid, String day);
    public Long getGoldCornByDay(Long uid, Date day);
    /**
     * @return java.lang.Long
     * @author hxh
     * @description 获取正在折算中的金币数量
     * @date 11:21 2022/4/21
     * @param: uid
     **/
    public Long getExchangingGoldCorn(Long uid, int dayCount);
    /**
     * @return int
     * @author hxh
     * @description 获取连续签到的天数
     * @date 16:24 2022/4/21
     * @param: uid
     **/
    public int getContinueSignDay(Long uid);
    /**
     * @return boolean
     * @author hxh
     * @description 是否签到
     * @date 17:05 2022/4/21
     * @param: uid
     * @param: date
     **/
    public boolean isSignIn(Long uid, Date date);
    public long frequencyVerify(UserInfo user, GoldCornGetType type, Date time) throws GoldCornGetFrequencyConfigException, GoldCornMakeException;
    /**
     * @return com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetRecord
     * @author hxh
     * @description 签到
     * @date 19:14 2022/4/21
     * @param: uid
     **/
    public GoldCornGetRecord signIn(Long uid) throws GoldCornGetFrequencyConfigException, UserInfoException, GoldCornGetPriceException, GoldCornMakeException;
    /**
     * @return com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetRecord
     * @author hxh
     * @description 观看视频
     * @date 18:47 2022/4/26
     * @param: uid
     * @param: isDouble
     * @param: time
     * @param: timeSeconds
     **/
    public GoldCornMakeResultDTO watchVideo(Long uid, boolean isDouble, Date time, long timeSeconds) throws GoldCornGetPriceException, UserInfoException, GoldCornMakeException, GoldCornGetFrequencyConfigException;
    /**
     * @return com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetRecord
     * @author hxh
     * @description 阅读小说
     * @date 18:48 2022/4/26
     * @param: uid
     * @param: isDouble
     * @param: time
     * @param: timeSeconds
     **/
    public GoldCornMakeResultDTO readNovel(Long uid, boolean isDouble, Date time, long timeSeconds) throws GoldCornGetPriceException, UserInfoException, GoldCornMakeException, GoldCornGetFrequencyConfigException;
    /**
     * @return com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetRecord
     * @author hxh
     * @description 浏览资讯
     * @date 18:48 2022/4/26
     * @param: uid
     * @param: isDouble
     * @param: time
     * @param: num
     **/
    public GoldCornMakeResultDTO scanNews(Long uid, boolean isDouble, Date time, int num) throws GoldCornGetPriceException, UserInfoException, GoldCornMakeException, GoldCornGetFrequencyConfigException;
    /**
     * @return com.yeshi.makemoney.app.dto.goldcorn.GoldCornMakeResultDTO
     * @author hxh
     * @description /邀请好友
     * @date 18:55 2022/4/28
     * @param: uid
     * @param: friendInfo
     * @param: time
     **/
    public GoldCornMakeResultDTO inviteFriends(Long uid, UserInfo friendInfo, Date time) throws UserInfoException, GoldCornGetPriceException, GoldCornMakeException, GoldCornGetFrequencyConfigException;
    /**
     * @author hxh
     * @description 提现
     * @date 18:55 2022/4/28
     * @param: uid
     * @param: time
     * @return com.yeshi.makemoney.app.dto.goldcorn.GoldCornMakeResultDTO
     **/
    public GoldCornMakeResultDTO extract(Long uid, Date time) throws UserInfoException, GoldCornGetPriceException, GoldCornMakeException, GoldCornGetFrequencyConfigException;
}