99d25adbb1
Backend CI / build-and-test (push) Failing after 13m11s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Failing after 10m12s
Frontend CI / build-and-check (push) Failing after 16m9s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Failing after 14m6s
🚀 Create and publish a Docker image / Build & publish backend image (push) Failing after 14m58s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Failing after 14m58s
17 lines
768 B
C#
17 lines
768 B
C#
using UniVerse.Application.DTOs.Common;
|
|
using UniVerse.Application.DTOs.Reviews;
|
|
|
|
namespace UniVerse.Application.Interfaces;
|
|
|
|
public interface IReviewService
|
|
{
|
|
Task<ReviewDto> CreateAsync(int userId, CreateReviewRequest request);
|
|
Task<ReviewDto> GetByIdAsync(int id);
|
|
Task<ReviewDto> UpdateAsync(int id, int userId, UpdateReviewRequest request);
|
|
Task DeleteAsync(int id, int userId, bool isAdmin = false);
|
|
Task<PagedResult<ReviewDto>> GetByLectureAsync(int lectureId, PaginationRequest pagination, int? currentUserId = null, bool isAdmin = false);
|
|
Task<PagedResult<ReviewDto>> GetByUserAsync(int userId, PaginationRequest pagination);
|
|
Task<PagedResult<ReviewDto>> GetAllAsync(ReviewFilterRequest filter);
|
|
Task ReanalyzeAsync(int id);
|
|
}
|