notification service and user management improvements
This commit is contained in:
		
							
								
								
									
										16
									
								
								Oqtane.Client/Services/Interfaces/IFolderService.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Oqtane.Client/Services/Interfaces/IFolderService.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,16 @@
 | 
			
		||||
using Oqtane.Models;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
 | 
			
		||||
namespace Oqtane.Services
 | 
			
		||||
{
 | 
			
		||||
    public interface IFolderService
 | 
			
		||||
    {
 | 
			
		||||
        Task<List<Folder>> GetFoldersAsync(int SiteId);
 | 
			
		||||
        Task<Folder> GetFolderAsync(int FolderId);
 | 
			
		||||
        Task<Folder> AddFolderAsync(Folder Folder);
 | 
			
		||||
        Task<Folder> UpdateFolderAsync(Folder Folder);
 | 
			
		||||
        Task UpdateFolderOrderAsync(int SiteId, int FolderId, int? ParentId);
 | 
			
		||||
        Task DeleteFolderAsync(int FolderId);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										19
									
								
								Oqtane.Client/Services/Interfaces/INotificationService.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								Oqtane.Client/Services/Interfaces/INotificationService.cs
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
			
		||||
using Oqtane.Models;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
 | 
			
		||||
namespace Oqtane.Services
 | 
			
		||||
{
 | 
			
		||||
    public interface INotificationService
 | 
			
		||||
    {
 | 
			
		||||
        Task<List<Notification>> GetNotificationsAsync(int SiteId, string Direction, int UserId);
 | 
			
		||||
 | 
			
		||||
        Task<Notification> GetNotificationAsync(int NotificationId);
 | 
			
		||||
 | 
			
		||||
        Task<Notification> AddNotificationAsync(Notification Notification);
 | 
			
		||||
 | 
			
		||||
        Task<Notification> UpdateNotificationAsync(Notification Notification);
 | 
			
		||||
 | 
			
		||||
        Task DeleteNotificationAsync(int NotificationId);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
@ -23,5 +23,9 @@ namespace Oqtane.Services
 | 
			
		||||
        Task<User> LoginUserAsync(User User, bool SetCookie, bool IsPersistent);
 | 
			
		||||
 | 
			
		||||
        Task LogoutUserAsync(User User);
 | 
			
		||||
 | 
			
		||||
        Task ForgotPasswordAsync(User User);
 | 
			
		||||
 | 
			
		||||
        Task<User> ResetPasswordAsync(User User, string Token);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user