feat(AccountsPage): add userEdit

This commit is contained in:
2025-06-24 16:23:43 +05:00
parent aae56a8c73
commit e5dfdc3464
7 changed files with 139 additions and 44 deletions

View File

@@ -9,8 +9,18 @@ export class UserService {
return user;
}
static async getUsers(page: number = 1, limit: number = 10): Promise<AllUserResponse> {
static async getUsers(
page: number = 1,
limit: number = 10
): Promise<AllUserResponse> {
console.log('getUsers');
const allUsers = api.getUsers(page, limit);
return allUsers;
}
static async getUserById(userId: number): Promise<User> {
console.log('getUserById');
const user = api.getUserById(userId);
return user;
}
}