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.FreightSellerService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 检查是否是经销商卖家
 *
 * @author zongpubin on 2023/7/18
 */
@Service
@RequiredArgsConstructor
public class CheckFreightSellerQryExe {


  private final FreightSellerService freightSellerService;

  public Boolean execute(AppExtCommand cmd) {
    return freightSellerService.existsSeller(cmd.requiredReqUserId());
  }
}
