package com.zcloud.basic.info.command.convertor;

import com.zcloud.basic.info.dto.clientobject.DepartmentCO;
import com.zcloud.basic.info.dto.clientobject.DepartmentTreeInfoCO;
import com.zcloud.basic.info.persistence.dataobject.DepartmentDO;
import com.zcloud.gbscommon.zclouddepartment.response.ZcloudDepartmentInfoCo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;


/**
 * web-app
 *
 * @Author zhaokai
 * @Date 2025-10-29 16:03:19
 */
@Mapper(componentModel = "spring")
public interface DepartmentCoConvertor {
    /**
     * @param departmentDOs
     * @return
     */
    List<DepartmentCO> converDOsToCOs(List<DepartmentDO> departmentDOs);

    List<DepartmentTreeInfoCO> converDOsToInfoCOs(List<DepartmentDO> pageResponse);


    List<ZcloudDepartmentInfoCo> converCOsToDoubbpCOs(List<DepartmentCO> departmentCOList);

    List<ZcloudDepartmentInfoCo> converCOsToDubboCOs(List<DepartmentCO> listed);
}

