MilliSim/backend/MilliSim.Api/Services/INotificationService.cs

15 lines
611 B
C#

using MilliSim.Common.Dtos;
using MilliSim.Common.Models;
namespace MilliSim.Services;
public interface INotificationService
{
Task<ApiResponse<PagedResult<NotificationDto>>> GetNotificationsAsync(NotificationType? type, PageRequest request);
Task<ApiResponse<int>> GetUnreadCountAsync();
Task<ApiResponse> MarkAsReadAsync(long id);
Task<ApiResponse> MarkAllAsReadAsync();
Task<ApiResponse> DeleteNotificationAsync(long id);
Task<ApiResponse<NotificationDto>> CreateNotificationAsync(NotificationType type, string title, string content, long? userId = null, string? eventId = null);
}