package com.red.circle.wallet.app.command.freight.query;

import com.red.circle.common.business.dto.cmd.AppExtCommand;
import com.red.circle.wallet.infra.database.rds.service.freight.FreightBalanceService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 检查是否是经销商.
 *
 * @author zongpubin on 2023/5/25
 */
@Service
@RequiredArgsConstructor
public class CheckDealerQryExe {

  private final FreightBalanceService freightBalanceService;

  public Boolean execute(AppExtCommand cmd) {
    return freightBalanceService.checkDealer(cmd.requireReqSysOriginEnum(), cmd.requiredReqUserId());
  }

}
