package com.kamco.cd.kamcoback.model.service;

import com.kamco.cd.kamcoback.model.dto.ModelMgmtDto;
import com.kamco.cd.kamcoback.postgres.core.ModelMgmtCoreService;
import java.time.LocalDate;
import lombok.RequiredArgsConstructor;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class ModelMgmtService {

  private final ModelMgmtCoreService modelMgmtCoreService;

  public Page<ModelMgmtDto.ModelList> findModelMgmtList(
      ModelMgmtDto.searchReq searchReq,
      LocalDate startDate,
      LocalDate endDate,
      String modelType,
      String searchVal) {
    return modelMgmtCoreService.findModelMgmtList(
        searchReq, startDate, endDate, modelType, searchVal);
  }
}
