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

import com.red.circle.other.infra.database.rds.service.user.user.ApprovalUserAccountStatusLogService;
import com.red.circle.other.app.inner.convertor.user.UserAccountInnerConvertor;
import com.red.circle.other.inner.model.cmd.user.ApprovalUserAccountStatusLogCmd;
import com.red.circle.other.app.inner.service.user.user.ApprovalUserAccountClientService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 审批账户历史记录.
 *
 * @author pengliang on 2023/10/17
 */
@Service
@RequiredArgsConstructor
public class ApprovalUserAccountClientServiceImpl implements
    ApprovalUserAccountClientService {

  private final UserAccountInnerConvertor userAccountInnerConvertor;
  private final ApprovalUserAccountStatusLogService approvalUserAccountStatusLogService;

  @Override
  public void saveLog(ApprovalUserAccountStatusLogCmd cmd) {
    approvalUserAccountStatusLogService.saveLog(
        userAccountInnerConvertor.toApprovalUserAccountStatusLog(cmd));
  }

}
