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

import com.red.circle.common.business.dto.cmd.app.AppFlowCmd;
import com.red.circle.other.app.command.user.query.UserInviteRewardRecordQryExe;
import com.red.circle.other.app.command.user.query.UserInviteUserRegisterQryExe;
import com.red.circle.other.app.dto.clientobject.user.user.InviteUserRewardRecordCO;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 邀请用户服务.
 *
 * @author pengliang on 2023/6/10
 */
@Service
@RequiredArgsConstructor
public class UserInviteServiceImpl implements UserInviteService {

  private final UserInviteUserRegisterQryExe userInviteUserRegisterQryExe;
  private final UserInviteRewardRecordQryExe userInviteRewardRecordQryExe;

  @Override
  public List<UserProfileDTO> listSearchInviteUser(AppFlowCmd cmd) {
    return userInviteUserRegisterQryExe.execute(cmd);
  }

  @Override
  public List<InviteUserRewardRecordCO> flowInviteUserReward(AppFlowCmd cmd) {
    return userInviteRewardRecordQryExe.execute(cmd);
  }

}
