user login WIP

This commit is contained in:
2022-10-18 00:28:19 +02:00
parent 8fc5a164a4
commit 90969cfe4c
9 changed files with 180 additions and 38 deletions

View File

@ -0,0 +1,7 @@
import type { LoginUserBody, UserInfo } from '@core';
import { post } from './request';
export async function login(raw: LoginUserBody) {
const user = await post<UserInfo>('/user/login', raw);
console.debug(user);
}