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

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.other.app.command.user.query.UserInAppPurchasingCheckValidQryExe;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 用户行为操作检测.
 *
 * @author pengliang on 2020/11/2
 */
@Service
@RequiredArgsConstructor
public class UserActionCheckServiceImpl implements UserActionCheckService {

  private final UserInAppPurchasingCheckValidQryExe userInAppPurchasingCheckValidQryExe;

  @Override
  public Boolean isInAppPurchasing(AppExtCommand cmd) {
    return userInAppPurchasingCheckValidQryExe.execute(cmd);
  }
}
