mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
new app server and database + added hub and controller of user profile
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Govor.Core.Models;
|
||||
using Govor.Core.Models.Messages;
|
||||
|
||||
namespace Govor.Application.Interfaces.Medias;
|
||||
@@ -8,6 +9,7 @@ public interface IMediaService
|
||||
public Task DeleteMediaAsync(Guid fileId);
|
||||
public Task<Media> GetMediaByUrlAsync(string url);
|
||||
public Task<Media> GetMediaByIdAsync(Guid mediaId);
|
||||
Task AttachToMessageAsync(Guid mediaId, Guid messageId);
|
||||
}
|
||||
|
||||
public record Media(Guid UploaderId,
|
||||
@@ -16,6 +18,8 @@ public record Media(Guid UploaderId,
|
||||
byte[] Data,
|
||||
MediaType Type,
|
||||
string MimeType,
|
||||
string EncryptedKey);
|
||||
string EncryptedKey,
|
||||
MediaOwnerType OwnerType,
|
||||
Guid? OwnerId);
|
||||
|
||||
public record MediaUploadResult(Guid? MediaId, string Url);
|
||||
Reference in New Issue
Block a user