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.UserBeautifulNumberApplyCmdExe;
import com.red.circle.other.app.command.user.query.ExistUserBeautifulNumberQryExe;
import com.red.circle.other.app.dto.cmd.user.user.UserSpecialIdApplyCmd;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 用户靓号申请 实现.
 *
 * @author pengshiang on 2021/8/18
 */
@Service
@RequiredArgsConstructor
public class BeautifulNumberApplyServiceImpl implements BeautifulNumberApplyService {

  private final UserBeautifulNumberApplyCmdExe userBeautifulNumberApplyCmdExe;
  private final ExistUserBeautifulNumberQryExe existUserBeautifulNumberQryExe;

  @Override
  public void apply(UserSpecialIdApplyCmd cmd) {
    userBeautifulNumberApplyCmdExe.execute(cmd);
  }

  @Override
  public Boolean existRecord(AppExtCommand cmd) {
    return existUserBeautifulNumberQryExe.execute(cmd);
  }

}
