shoc-backend/SeaHaven.DataServices/Interfaces/ISettingsDataService.cs

17 lines
993 B
C#
Raw Normal View History

using Data.SeaHavenIndustries;
using SeaHaven.DataServices.Dto;
namespace SeaHaven.DataServices.Interfaces
{
public interface ISettingsDataService
{
Task AddCategoryAsync(string name, CancellationToken cancellationToken);
Task<bool> UpdateCategoryAsync(int id, string name, CancellationToken cancellationToken);
Task<bool> DeleteCategoryCascadeAsync(int id, CancellationToken cancellationToken);
Task<(IReadOnlyList<SettingsCategoryItemDTO> Items, int Total)> GetCategoryListPagedAsync(int page, int pageSize, CancellationToken cancellationToken);
Task<(IReadOnlyList<WorkOrder> Items, int Total)> GetTemplatesPagedAsync(int page, int pageSize, CancellationToken cancellationToken);
Task<(IReadOnlyList<ApplicationUser> Users, int Total)> GetUsersPagedAsync(string? search, int page, int pageSize, CancellationToken cancellationToken);
Task<IReadOnlyList<string>> GetRoleNamesAsync(CancellationToken cancellationToken);
}
}