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