feat: add authService and rename userService

This commit is contained in:
2025-06-16 12:32:08 +05:00
parent d55a99aafd
commit 5def1a9bb1
3 changed files with 36 additions and 22 deletions

View File

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