package com.yeshi.makemoney.app.service.inter.goldcorn;
|
|
import com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetRecord;
|
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: isDouble 是否加倍
|
* @param: time 发生时间
|
**/
|
public GoldCornGetRecord addGoldCorn(Long uid, GoldCornGetType type, boolean isDouble, Date time, Integer price) 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, 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);
|
|
|
/**
|
* @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;
|
|
|
}
|