import type { AxiosResponse } from 'axios'; import type { HttpResponse } from '@/api/helper/http.define'; import type { UserModel } from '@/api/model/userModel'; import client from '@/api/helper/client'; export const login = function (params: { username: string; password: string }) { return client.post>>( '/api/user/login', params ); }; export const getUser = function (userId: string) { return client.get>>( `/api/user/${userId}` ); };