package com.yeshi.makemoney.app.service.inter.goldcorn;
|
|
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornConsumeRecordException;
|
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornMoneyExchangeRateRecordException;
|
import com.yeshi.makemoney.app.exception.money.UserMoneyRecordException;
|
import com.yeshi.makemoney.app.exception.user.UserInfoException;
|
|
import java.math.BigDecimal;
|
|
/**
|
* @author hxh
|
* @title: GoldCornSettleService
|
* @description: 金币结算服务
|
* @date 2022/4/7 11:14
|
*/
|
public interface GoldCornSettleService {
|
//获取结算的用户
|
|
/**
|
* @return void
|
* @author hxh
|
* @description 开始结算
|
* @date 11:46 2022/4/7
|
* @param: day
|
**/
|
public void startSettle(String day);
|
|
|
/**
|
* @return void
|
* @author hxh
|
* @description 结算某个用户某天的资金
|
* @date 11:47 2022/4/7
|
* @param: uid
|
* @param: day
|
* @param: rate 汇率
|
**/
|
public void settle(Long uid, String day, BigDecimal rate) throws GoldCornConsumeRecordException, UserMoneyRecordException;
|
|
|
/**
|
* @return void
|
* @author hxh
|
* @description 结算某个用户某天的资金
|
* @date 11:47 2022/4/7
|
* @param: uid
|
* @param: day
|
**/
|
public void settle(Long uid, String day) throws UserInfoException, GoldCornMoneyExchangeRateRecordException, UserMoneyRecordException, GoldCornConsumeRecordException;
|
|
|
}
|