/* * @Author: Kane * @Date: 2023-03-02 14:48:35 * @LastEditors: Kane * @FilePath: /task_schedule/src/utils/account.ts * @Description: * * Copyright (c) ${2022} by Kane, All Rights Reserved. */ import { type AxiosResponse } from "axios"; import { service as instance } from "./api/request.js"; import { API_URL } from "./api/config.js"; interface LoginInfo { p13account: string; password: string; } async function login( data: LoginInfo ): Promise> { return await instance.request( { method: "post", url: API_URL.URL_LOGIN, data, } ); } export { type LoginInfo, login };