mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
30 lines
831 B
C#
30 lines
831 B
C#
using AutoMapper;
|
|
using Govor.API.Extensions.Mapping;
|
|
using Govor.Application.Profiles;
|
|
using Govor.Contracts.DTOs;
|
|
using Govor.Contracts.Responses;
|
|
using Govor.Core.Models;
|
|
using Govor.Core.Models.Messages;
|
|
using Govor.Core.Models.Users;
|
|
|
|
namespace Govor.API.Common.Mapping;
|
|
|
|
public class MappingProfile : Profile
|
|
{
|
|
public MappingProfile()
|
|
{
|
|
CreateMap<Message, MessageResponse>();
|
|
CreateMap<MediaAttachments, MediaAttachmentResponse>();
|
|
CreateMap<MessageReaction, MessageReactionResponse>();
|
|
CreateMap<MessageView, MessageViewResponse>();
|
|
|
|
CreateMap<User, UserDto>()
|
|
.AfterMap<UserToUserDtoMappingAction>();
|
|
|
|
CreateMap<Friendship, FriendshipDto>();
|
|
|
|
CreateMap<UserSession, SessionDto>();
|
|
|
|
CreateMap<UserProfile, UserProfileDto>();
|
|
}
|
|
} |