package com.red.circle.other.app.convertor.live;

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.other.infra.database.rds.entity.live.RoomMember;
import com.red.circle.other.inner.model.dto.live.RoomMemberDTO;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2023/11/22
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface RoomMemberAppConvertor {

  RoomMemberDTO toRoomMemberDTO(RoomMember roomMember);

  RoomMember toRoomMember(RoomMemberDTO roomMemberDTO);

  PageResult<RoomMemberDTO> toPageRoomMemberDTO(PageResult<RoomMember> result);

}
