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

import com.red.circle.other.app.command.user.AccountPwdResetCmdExe;
import com.red.circle.other.app.command.user.ForgetPwdResetCmdExe;
import com.red.circle.other.app.command.user.query.AccountCheckPwdQryExe;
import com.red.circle.other.app.dto.cmd.user.account.AccountCheckPwdCmd;
import com.red.circle.other.app.dto.cmd.user.account.ForgetPwdResetCmd;
import com.red.circle.other.inner.model.cmd.user.account.AccountPwdResetCmd;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 用户账号服务 实现.
 *
 * @author pengliang on 2023/5/29
 */
@Service
@RequiredArgsConstructor
public class AppUserAccountServiceImpl implements AppUserAccountService {

  private final ForgetPwdResetCmdExe forgetPwdResetCmdExe;
  private final AccountPwdResetCmdExe accountPwdResetCmdExe;
  private final AccountCheckPwdQryExe accountCheckPwdQryExe;

  @Override
  public void forgetPwdResetPhone(ForgetPwdResetCmd cmd) {
    forgetPwdResetCmdExe.execute(cmd);
  }

  @Override
  public void accountPwdUpdate(AccountPwdResetCmd cmd) {
    accountPwdResetCmdExe.execute(cmd);
  }

  @Override
  public void accountCheckPwd(AccountCheckPwdCmd cmd) {
    accountCheckPwdQryExe.execute(cmd);
  }

}
