package com.jwipc.message.convert;

import com.jwipc.message.dto.AddresseeUserDTO;
import com.jwipc.message.dto.MessageAddresseeDTO;
import com.jwipc.message.dto.MessageCenterDTO;
import com.jwipc.message.dto.MessageCenterParamDTO;
import com.jwipc.message.entity.MessageAddressee;
import com.jwipc.message.entity.MessageCenter;
import com.jwipc.message.model.po.AddresseeUserPO;
import com.jwipc.message.model.po.MessageAddresseePO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/7/3 10:54
 * @desc
 */
@Mapper(componentModel = "spring")
public interface MessageAddresseeConvert {
    List<MessageAddressee> dTO2EntityList(List<MessageAddresseeDTO> messageAddresseeList);

    List<MessageAddresseeDTO> entity2DTOList(List<MessageAddressee> messageAddressees);

    List<MessageAddresseeDTO> po2DTOList(List<MessageAddresseePO> messageAddressees);

    MessageAddresseeDTO po2DTO(MessageAddresseePO messageAddressee);
}
