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

import com.zcloud.basic.info.dto.clientobject.CorpInfoCO;
import com.zcloud.basic.info.dto.clientobject.PostCO;
import com.zcloud.basic.info.persistence.dataobject.PostDO;
import com.zcloud.gbscommon.zcloudcorp.response.ZcloudCorpInfoCO;
import com.zcloud.gbscommon.zcloudpost.response.ZcloudPostCO;
import org.mapstruct.Mapper;

import java.util.List;


/**
 * web-app
 *
 * @Author SondonYong
 * @Date 2025-10-31 17:24:04
 */
@Mapper(componentModel = "spring")
public interface PostCoConvertor {
    /**
     * @param postDOs
     * @return
     */
    List<PostCO> converDOsToCOs(List<PostDO> postDOs);

    PostCO converDOToCO(PostDO postDO);

    List<ZcloudPostCO> converCOsToDubboCOs(List<PostCO> data);

    ZcloudPostCO converCOToDubboCO(PostCO data);
}

