package com.red.circle.other.app.command.user.query;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.other.infra.common.user.RedPacketInviteUserCommon;

import java.sql.Timestamp;
import java.util.Date;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 新用户下次可助力时间.
 * </p>
 *
 * @author pengshigang
 * @since 2023-12-28
 */
@Service
@AllArgsConstructor
public class InviteNewNextHelpTimeQryExe {

  private final RedPacketInviteUserCommon redPacketInviteUserCommon;

  public Timestamp execute(AppExtCommand cmd) {
    return redPacketInviteUserCommon.getNextHelpTime(cmd.getReqUserId());
  }

}
