package com.zcloud.zcGbsServicer.command.convertor;

import com.zcloud.zcGbsServicer.dto.clientobject.FireBrigadeCO;
import com.zcloud.zcGbsServicer.persistence.dataobject.FireBrigadeDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

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

    @Mapping(source = "orgName", target = "org")
    List<FireBrigadeCO> converDOsToCOs(List<FireBrigadeDO> fireBrigadeDOs);

    @Mapping(source = "orgName", target = "org")
    FireBrigadeCO converDOToCO(FireBrigadeDO fireBrigadeDO);
}
