mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-17 12:59:25 +00:00
Add primitive groups and required channel
Adds server-side group and channel management, private invitations, member moderation, avatar handling, and required-channel configuration. This change also introduces SignalR group profile/member notifications, updates registration to atomically join required channels, and adds EF migration and test coverage for group membership, permissions, and invitation expiry rules.
This commit is contained in:
@@ -65,6 +65,8 @@ public static class ConfigurationProgramExtensions
|
||||
services.AddScoped<IPingHandlerService, PingHandlerService>();
|
||||
|
||||
services.AddScoped<IUserGroupsGetterService, UserGroupsGetterService>();
|
||||
services.AddScoped<IGroupManagementService, GroupManagementService>();
|
||||
services.AddScoped<IGroupAvatarService, GroupAvatarService>();
|
||||
|
||||
//services.AddScoped<IMessageCommandService, MessageCommandService>();
|
||||
services.AddScoped<IMessageSendingService, MessageSendingService>();
|
||||
|
||||
@@ -9,6 +9,7 @@ using Govor.Application.Messages.Parameters;
|
||||
using Govor.Contracts.Responses.SignalR;
|
||||
using Govor.Application.Reactions;
|
||||
using Govor.Domain.Models.Reactions;
|
||||
using Govor.Application.Groups;
|
||||
|
||||
namespace Govor.API.Common.Mapping;
|
||||
|
||||
@@ -22,6 +23,11 @@ public class MappingProfile : Profile
|
||||
CreateMap<ReactionCount, ReactionCountResponse>();
|
||||
CreateMap<MessageReactionState, MessageReactionsChangedResponse>();
|
||||
CreateMap<ChannelReactionPolicy, ChannelReactionPolicyResponse>();
|
||||
CreateMap<GroupSummary, GroupResponse>()
|
||||
.IncludeMembers(s => s.Group);
|
||||
CreateMap<ChatGroup, GroupResponse>();
|
||||
CreateMap<GroupMember, GroupMemberResponse>();
|
||||
CreateMap<GroupInvitation, GroupInvitationResponse>();
|
||||
CreateMap<Message, MessageResponse>();
|
||||
CreateMap<MediaAttachments, MediaAttachmentResponse>();
|
||||
CreateMap<MessageReaction, MessageReactionResponse>();
|
||||
|
||||
Reference in New Issue
Block a user