feat: create new user with password
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user