package com.red.circle.other.domain.gateway.user.ability;

import com.red.circle.other.inner.model.cmd.user.IncrDeviceRegisterCmd;
import com.red.circle.other.inner.model.cmd.user.device.AllowDeviceRegisterCmd;

/**
 * 注册设备.
 *
 * @author pengliang on 2023/12/17
 */
public interface RegisterDeviceGateway {

  /**
   * 累计注册数量.
   */
  void incrRegisterQuantityAsync(IncrDeviceRegisterCmd cmd);

  /**
   * 是否允许用户设备注册.
   *
   * @return true 允许注册、false 不允许
   */
  boolean checkAllowDeviceRegister(AllowDeviceRegisterCmd cmd);
}
