feat(userManagement): add user detail view and filtering capabilities

This commit is contained in:
shiyu
2025-06-02 12:46:11 +08:00
parent 6243b9b62a
commit 686cc5fd11
11 changed files with 380 additions and 86 deletions
@@ -5,8 +5,9 @@ namespace Foxel.Services.Management;
public interface IUserManagementService
{
Task<PaginatedResult<UserResponse>> GetUsersAsync(int page = 1, int pageSize = 10);
Task<PaginatedResult<UserResponse>> GetUsersAsync(int page = 1, int pageSize = 10, string? searchQuery = null, string? role = null, DateTime? startDate = null, DateTime? endDate = null);
Task<UserResponse> GetUserByIdAsync(int id);
Task<UserDetailResponse> GetUserDetailAsync(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);