Files
Backend-Api/AccountManagement.Domain/MediaAgg/IMediaRepository.cs
2025-05-21 18:25:09 +03:30

31 lines
1.0 KiB
C#

using System.Collections.Generic;
using _0_Framework.Application;
using _0_Framework.Domain;
using AccountManagement.Application.Contracts.Media;
using Microsoft.AspNetCore.Http;
namespace AccountManagement.Domain.MediaAgg;
public interface IMediaRepository:IRepository<long,Media>
{
public string BasePath { get; protected set; }
void CreateMediaWithTaskMedia(long taskId, long mediaId);
List<MediaViewModel> GetMediaByTaskId(long taskId);
void Remove(long id);
void RemoveRange(IEnumerable<Media> medias);
void CreateTicketMedia(long ticketId, long mediaId);
void CreateAdminResponseMedia(long adminResponseId, long mediaId);
void CreateClientResponseMedia(long clientResponseId, long mediaId);
#region Pooya
List<MediaViewModel> GetMedias(List<long> ids);
List<Media> GetRange(IEnumerable<long> mediaIds);
#endregion
OperationResult UploadFile(IFormFile file, string fileLabel, string relativePath, int maximumFileLength,
List<string> allowedExtensions, string category);
}