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

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.other.infra.database.rds.service.user.user.UserBeautifulNumberApplyService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 是否存在申请记录 实现.
 *
 * @author pengshiang on 2021/8/18
 */
@Component
@RequiredArgsConstructor
public class ExistUserBeautifulNumberQryExe {

  private final UserBeautifulNumberApplyService userBeautifulNumberApplyService;

  public Boolean execute(AppExtCommand cmd) {
    return userBeautifulNumberApplyService.isExistPending(cmd.requiredReqUserId());
  }

}
