transactions

This commit is contained in:
2025-08-24 14:18:20 +02:00
parent 1b2d95344a
commit 5777e351bf
107 changed files with 4940 additions and 1266 deletions

View File

@@ -0,0 +1,16 @@
using back.DataModels;
using back.DTO;
using DependencyInjector.Abstractions.ClassTypes;
using DependencyInjector.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");
}