import { request, get, post } from '@/utils/request.uts' export function login(username : string, password : string) : Promise { const data : UTSJSONObject = {} data['username'] = username data['password'] = password return post('/auth/login', data) } export function getUserProfile() : Promise { return get('/user/profile') }