JinZHouXiYiJi_DaPin2/examples/api/user/user.ts

17 lines
360 B
TypeScript
Raw Normal View History

2023-12-05 13:23:01 +08:00
import type { AxiosResponse } from 'axios'
import type { LoginData } from '@/types/user'
import { apiHttp as http } from '@/utils/http'
//
/***
*
* @param data
*/
export const loginApi = async (data: LoginData): Promise<AxiosResponse<string>> => {
return http.post<string>({
url: '/user/login',
data: data
})
}