mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-05 06:35:30 -04:00
* Implemented the ability to disable authentication on a server instance. Admins will require authentication, but non-admin accounts can be setup without any password requirements. * WIP for new login page. * Reworked code to handle disabled auth better. First time user flow is moved into the user login component. * Removed debug code * Removed home component, shakeout testing is complete. * remove a file accidently committed * Fixed a code smell from last PR * Code smells
34 lines
1.6 KiB
C#
34 lines
1.6 KiB
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using API.Data.Repositories;
|
|
using API.DTOs;
|
|
using API.DTOs.Reader;
|
|
using API.Entities;
|
|
|
|
namespace API.Interfaces.Repositories
|
|
{
|
|
public interface IUserRepository
|
|
{
|
|
void Update(AppUser user);
|
|
void Update(AppUserPreferences preferences);
|
|
void Update(AppUserBookmark bookmark);
|
|
public void Delete(AppUser user);
|
|
Task<IEnumerable<MemberDto>> GetMembersAsync();
|
|
Task<IEnumerable<AppUser>> GetAdminUsersAsync();
|
|
Task<IEnumerable<AppUser>> GetNonAdminUsersAsync();
|
|
Task<bool> IsUserAdmin(AppUser user);
|
|
Task<AppUserRating> GetUserRating(int seriesId, int userId);
|
|
Task<AppUserPreferences> GetPreferencesAsync(string username);
|
|
Task<IEnumerable<BookmarkDto>> GetBookmarkDtosForSeries(int userId, int seriesId);
|
|
Task<IEnumerable<BookmarkDto>> GetBookmarkDtosForVolume(int userId, int volumeId);
|
|
Task<IEnumerable<BookmarkDto>> GetBookmarkDtosForChapter(int userId, int chapterId);
|
|
Task<IEnumerable<BookmarkDto>> GetAllBookmarkDtos(int userId);
|
|
Task<AppUserBookmark> GetBookmarkForPage(int page, int chapterId, int userId);
|
|
Task<int> GetUserIdByApiKeyAsync(string apiKey);
|
|
Task<AppUser> GetUserByUsernameAsync(string username, AppUserIncludes includeFlags = AppUserIncludes.None);
|
|
Task<AppUser> GetUserByIdAsync(int userId, AppUserIncludes includeFlags = AppUserIncludes.None);
|
|
Task<int> GetUserIdByUsernameAsync(string username);
|
|
Task<AppUser> GetUserWithReadingListsByUsernameAsync(string username);
|
|
}
|
|
}
|