package com.tuoheng.admin.conver;

import com.tuoheng.admin.entity.domain.Inspection;
import com.tuoheng.admin.entity.domain.Report;
import com.tuoheng.admin.entity.vo.inspection.InspectionReportVo;
import com.tuoheng.admin.entity.vo.ReportPageListVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ReportConverMapper {

    ReportConverMapper INSTANCE = Mappers.getMapper(ReportConverMapper.class);

    Report fromInspectionToReport(Inspection inspection);

    List<ReportPageListVo> fromReportListToReportPageListList(List<Report> reportList);

    InspectionReportVo fromReportToInspectionReportVo(Report report);

}
