sync public allowlist from private myoffice

This commit is contained in:
myoffice-sync
2026-08-05 10:36:17 +00:00
parent 6f7fd61ee9
commit 874796c860
720 changed files with 2841 additions and 69563 deletions
@@ -1,19 +0,0 @@
namespace MyOffice.Data.Repositories.Item;
using MyOffice.Data.Models.Items;
public interface IItemRepository
{
List<Item> GetAll(Guid userId);
Task<List<Item>> GetAllAsync(Guid userId, CancellationToken cancellationToken = default);
List<Item> GetByCategory(Guid userId, Guid categoryId);
Task<List<Item>> GetByCategoryAsync(Guid userId, Guid categoryId, CancellationToken cancellationToken = default);
Item? GetByGlobal(Guid userId, Guid globalItemId);
Task<Item?> GetByGlobalAsync(Guid userId, Guid globalItemId, CancellationToken cancellationToken = default);
bool Add(Item item);
Task<bool> AddAsync(Item item, CancellationToken cancellationToken = default);
bool Update(Item item);
Task<bool> UpdateAsync(Item item, CancellationToken cancellationToken = default);
List<Item> Find(Guid userId, string term, int limit);
Task<List<Item>> FindAsync(Guid userId, string term, int limit, CancellationToken cancellationToken = default);
}