package com.zcloud.zcGbsServicer.command.convertor;

import com.zcloud.zcGbsServicer.dto.clientobject.AlarmRecordCO;
import com.zcloud.zcGbsServicer.persistence.dataobject.FireAlarmInfoDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface AlarmRecordCoConvertor {

    @Mapping(target = "fireBrigadeId", ignore = true)
    List<AlarmRecordCO> converDOsToCOs(List<FireAlarmInfoDO> fireAlarmInfoDOs);

    @Mapping(target = "fireBrigadeId", ignore = true)
    AlarmRecordCO converDOToCO(FireAlarmInfoDO fireAlarmInfoDO);
}
