后端:添加添加好友处理事件

文档:添加测试环境文档
This commit is contained in:
2026-01-30 22:13:56 +08:00
parent a590aa0a26
commit 2d22b4bd27
12 changed files with 115 additions and 26 deletions
+1
View File
@@ -28,6 +28,7 @@ namespace IM_API.Configs
//好友信息模型转换
CreateMap<Friend, FriendInfoDto>()
.ForMember(dest => dest.UserInfo, opt => opt.MapFrom(src => src.FriendNavigation))
.ForMember(dest => dest.Avatar, opt => opt.MapFrom(src => src.FriendNavigation.Avatar))
;
//好友请求通过后新增好友关系
CreateMap<FriendRequestDto, Friend>()