15 lines
673 B
C#
15 lines
673 B
C#
using back.DataModels;
|
|
using back.DTO;
|
|
using DependencyInjector.Abstractions.Lifetimes;
|
|
|
|
namespace back.services.bussines.PhotoService;
|
|
|
|
public interface IPhotoService: IScoped
|
|
{
|
|
Task<Photo?> Create(PhotoFormModel form);
|
|
Task Delete(string id, string userId = "00000000-0000-0000-0000-000000000001");
|
|
Task<Photo?> Get(string id, string userId = "00000000-0000-0000-0000-000000000001");
|
|
Task<(string? mediaType, byte[]? fileBytes)> GetBytes(string id, string res = "");
|
|
Task<(int totalItems, IEnumerable<Photo>? pageData)> GetPage(int page, int pageSize);
|
|
Task<Photo?> Update(Photo photo, string userId = "00000000-0000-0000-0000-000000000001");
|
|
} |