package com.interplug.qcast.biz.roofmaterial;

import com.interplug.qcast.biz.roofmaterial.dto.RoofMaterialInfoResponse;
import com.interplug.qcast.biz.trestle.TrestleInfoService;
import com.interplug.qcast.biz.trestle.dto.TrestleInfoResponse;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class RoofMaterialInfoService {
  private final RoofMaterialInfoMapper roofMapper;
  private final TrestleInfoService trestleInfoService;

  public List<RoofMaterialInfoResponse> getRoofMaterials() {
    return roofMapper.getRoofMaterials();
  }

  public List<TrestleInfoResponse> getTrestlesByRoofMaterialId(Integer roofMaterialId) {
    return trestleInfoService.getTrestlesByRoofMaterialId(roofMaterialId);
  }
}
