package com.red.circle.other.app.service.activity;

import com.red.circle.other.app.command.activity.ActivityRechargeRankExe;
import com.red.circle.other.app.command.activity.UserActivityRechargeExe;
import com.red.circle.other.app.dto.clientobject.activity.ActivityRechargeRankCO;
import com.red.circle.other.app.dto.clientobject.activity.UserActivityRechargeCO;
import com.red.circle.other.app.dto.cmd.activity.ActivityRechargeRankCmd;
import com.red.circle.other.app.dto.cmd.activity.UserActivityRechargeCmd;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 活动充值服务实现
 */
@Service
@RequiredArgsConstructor
public class ActivityRechargeServiceImpl implements ActivityRechargeService {

    private final ActivityRechargeRankExe activityRechargeRankExe;
    private final UserActivityRechargeExe userActivityRechargeExe;

    @Override
    public ActivityRechargeRankCO getRechargeRank(ActivityRechargeRankCmd cmd) {
        return activityRechargeRankExe.execute(cmd);
    }

    @Override
    public UserActivityRechargeCO getUserRecharge(UserActivityRechargeCmd cmd) {
        return userActivityRechargeExe.execute(cmd);
    }
}
