ChatGroup work

This commit is contained in:
Artemy
2025-07-04 12:43:12 +07:00
parent d170c6270f
commit fab3d6b67b
8 changed files with 65 additions and 21 deletions
@@ -1,8 +1,9 @@
using Govor.Application.Interfaces.Messages;
using Govor.Core.Models;
namespace Govor.API.Services;
public interface IGroupService
public interface IGroupService : IMessageSendingService, IMessageManagementService
{
ChatGroup GetGroupByInvite(string code);
}
@@ -1,3 +1,3 @@
namespace Govor.Application.Interfaces.Messages.Parameters;
public record Result(bool IsSuccess, Exception Exception);
public record Result(bool IsSuccess, Exception Exception, Guid messageId);
@@ -48,11 +48,12 @@ public class PrivateChatService : IChatService
};
await _messages.AddAsync(message);
return new Result(true, null);
return new Result(true, null, messageId);
}
catch (Exception ex)
{
return new Result(false, ex);
return new Result(false, ex, Guid.Empty);
}
}