From 6cc97918a5a42e37a3c3867cc5b78a0b9fd43a24 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 29 四月 2022 19:55:41 +0800 Subject: [PATCH] 功能完善 --- app/src/main/java/com/yeshi/makemoney/app/service/inter/goldcorn/GoldCornMakeService.java | 34 ++++++++++++++++++++++++++++++---- 1 files changed, 30 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/yeshi/makemoney/app/service/inter/goldcorn/GoldCornMakeService.java b/app/src/main/java/com/yeshi/makemoney/app/service/inter/goldcorn/GoldCornMakeService.java index 0e5c5c0..a5dfecc 100644 --- a/app/src/main/java/com/yeshi/makemoney/app/service/inter/goldcorn/GoldCornMakeService.java +++ b/app/src/main/java/com/yeshi/makemoney/app/service/inter/goldcorn/GoldCornMakeService.java @@ -1,7 +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; @@ -28,7 +30,7 @@ * @param: isDouble 鏄惁鍔犲�� * @param: time 鍙戠敓鏃堕棿 **/ - public GoldCornGetRecord addGoldCorn(Long uid, GoldCornGetType type, boolean isDouble, Date time, Integer price) throws UserInfoException, GoldCornGetFrequencyConfigException, GoldCornMakeException; + public GoldCornGetRecord addGoldCorn(Long uid, GoldCornGetType type, boolean isDouble, Date time, Integer price, Long eventCount) throws UserInfoException, GoldCornGetFrequencyConfigException, GoldCornMakeException; /** @@ -71,6 +73,8 @@ **/ 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 @@ -92,7 +96,7 @@ * @param: time * @param: timeSeconds **/ - public Integer watchVideo(Long uid, boolean isDouble, Date time, int timeSeconds) throws GoldCornGetPriceException, UserInfoException, GoldCornMakeException, GoldCornGetFrequencyConfigException; + public GoldCornMakeResultDTO watchVideo(Long uid, boolean isDouble, Date time, long timeSeconds) throws GoldCornGetPriceException, UserInfoException, GoldCornMakeException, GoldCornGetFrequencyConfigException; /** @@ -105,7 +109,7 @@ * @param: time * @param: timeSeconds **/ - public Integer readNovel(Long uid, boolean isDouble, Date time, int timeSeconds) throws GoldCornGetPriceException, UserInfoException, GoldCornMakeException, GoldCornGetFrequencyConfigException; + public GoldCornMakeResultDTO readNovel(Long uid, boolean isDouble, Date time, long timeSeconds) throws GoldCornGetPriceException, UserInfoException, GoldCornMakeException, GoldCornGetFrequencyConfigException; /** @@ -118,7 +122,29 @@ * @param: time * @param: num **/ - public Integer scanNews(Long uid, boolean isDouble, Date time, int num) throws GoldCornGetPriceException, UserInfoException, GoldCornMakeException, GoldCornGetFrequencyConfigException; + 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; + } -- Gitblit v1.8.0