feat: add accounts table

This commit is contained in:
2025-06-24 13:00:40 +05:00
parent 71ab39a03c
commit a3ee18f6fd
5 changed files with 130 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
import api from '@/api/api';
import { User } from '@/types/user';
import { AllUserResponse, User } from '@/types/user';
export class UserService {
static async getProfile(): Promise<User> {
@@ -9,8 +9,8 @@ export class UserService {
return user;
}
static async getUsers(page: number = 1, limit: number = 10): Promise<any> {
const users = api.getUsers(page, limit);
return users;
static async getUsers(page: number = 1, limit: number = 10): Promise<AllUserResponse> {
const allUsers = api.getUsers(page, limit);
return allUsers;
}
}