Refactoring, database structure changed

This commit is contained in:
2025-03-03 00:56:32 +01:00
Unverified
parent d3805ef3db
commit c603c41c0b
913 changed files with 21764 additions and 32775 deletions

View File

@@ -0,0 +1,19 @@
using Ardalis.Result;
using WatchIt.DTO.Models.Controllers.Photos.Photo;
using WatchIt.DTO.Models.Controllers.Photos.PhotoBackground;
using WatchIt.DTO.Query;
namespace WatchIt.WebAPI.BusinessLogic.Photos;
public interface IPhotosBusinessLogic
{
Task<Result<PhotoResponse>> GetPhoto(Guid photoId);
Task<Result<IEnumerable<PhotoResponse>>> GetPhotos(PhotoFilterQuery filterQuery, OrderQuery orderQuery, PagingQuery pagingQuery);
Task<Result<PhotoResponse>> GetPhotoBackground();
Task<Result<PhotoResponse>> PostPhoto(PhotoRequest body);
Task<Result<PhotoResponse>> PutPhoto(Guid photoId, PhotoRequest body);
Task<Result> DeletePhoto(Guid photoId);
Task<Result<PhotoBackgroundResponse>> PutPhotoBackground(Guid photoId, PhotoBackgroundRequest body);
Task<Result> DeletePhotoBackground(Guid photoId);
}