feat: create new user with password

This commit is contained in:
2025-06-26 15:05:28 +05:00
parent 22064d2b52
commit 692461e266
11 changed files with 80 additions and 48 deletions

View File

@@ -1,5 +1,5 @@
import api from '@/api/api';
import { AllUserResponse, User, UserUpdate } from '@/types/user';
import { AllUserResponse, User, UserCreate } from '@/types/user';
export class UserService {
static async getProfile(): Promise<User> {
@@ -24,7 +24,7 @@ export class UserService {
return user;
}
static async createUser(user: UserUpdate): Promise<User> {
static async createUser(user: UserCreate): Promise<User> {
console.log('createUser');
const createdUser = api.createUser(user);
return createdUser;