feat: add accounts table
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user