feat: add user and role management pages with API integration

- Implemented user management functionality in UsersPage including user creation, editing, deletion, and role assignment.
- Added role management functionality in RolesPage with role creation, editing, deletion, and path rule management.
- Created users API for handling user-related operations.
- Created roles API for handling role-related operations.
- Integrated permissions handling in both user and role management.
- Enhanced UI with Ant Design components for better user experience.
This commit is contained in:
shiyu
2026-01-30 15:59:22 +08:00
parent 4a2e01196d
commit e6ab01ef9d
33 changed files with 3462 additions and 10 deletions

View File

@@ -1,3 +1,19 @@
from .database import StorageAdapter
from .database import (
StorageAdapter,
UserAccount,
Role,
UserRole,
Permission,
RolePermission,
PathRule,
)
__all__ = ["StorageAdapter"]
__all__ = [
"StorageAdapter",
"UserAccount",
"Role",
"UserRole",
"Permission",
"RolePermission",
"PathRule",
]