feat: Support multiple vector database selection, add InMemory and Qdrant adapters, introduce admin dashboard

This commit is contained in:
shiyu
2025-05-31 21:01:37 +08:00
parent b2bacc54a9
commit 44d2616fd4
51 changed files with 5498 additions and 1214 deletions
@@ -0,0 +1,21 @@
using Foxel.Models;
using Foxel.Models.Response.User;
namespace Foxel.Services.Management;
public interface IUserManagementService
{
Task<PaginatedResult<UserResponse>> GetUsersAsync(int page = 1, int pageSize = 10);
Task<UserResponse> GetUserByIdAsync(int id);
Task<UserResponse> CreateUserAsync(string userName, string email, string password, string role);
Task<UserResponse> UpdateUserAsync(int id, string userName, string email, string role);
Task<bool> DeleteUserAsync(int id);
Task<BatchDeleteResult> BatchDeleteUsersAsync(List<int> ids);
}
public class BatchDeleteResult
{
public int SuccessCount { get; set; }
public int FailedCount { get; set; }
public List<int> FailedIds { get; set; } = new();
}