transactions
This commit is contained in:
16
back/services/bussines/PhotoService/IPhotoService.cs
Normal file
16
back/services/bussines/PhotoService/IPhotoService.cs
Normal 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");
|
||||
}
|
Reference in New Issue
Block a user