package com.tuoheng.admin.conver;

import com.tuoheng.admin.entity.domain.Inspection;
import com.tuoheng.admin.entity.request.inspection.AddInspectionRequest;
import com.tuoheng.admin.entity.request.inspection.EditInspectionRequest;
import com.tuoheng.admin.entity.vo.inspection.InspectionDetailsVo;
import com.tuoheng.admin.entity.vo.inspection.InspectionVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface InspectionConverMapper {

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

    Inspection fromAddInspectionRequestToInspection(AddInspectionRequest request);

    Inspection fromEditInspectionRequestToInspection(EditInspectionRequest request);

    List<InspectionVo> fromInspectionListToInspectionVoList(List<Inspection> inspectionList);

    InspectionDetailsVo fromInspectionToInspectionDetailsVo(Inspection inspection);

}
