package com.red.circle.wallet.app.command.bank;

import com.red.circle.common.business.dto.cmd.IdLongCmd;
import com.red.circle.wallet.infra.database.mongo.service.bank.UserBankCardService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 用户银行卡查询.
 *
 * @author pengshigang on 2022/12/15
 */
@Component
@RequiredArgsConstructor
public class UserBankCardDeleteExe {

  private final UserBankCardService userBankCardService;

  public void execute(IdLongCmd cmd) {
    userBankCardService
        .deleteByIdByUserId(cmd.getId(), cmd.requiredReqUserId(), cmd.requiredReqUserId());
  }

}
