2023-03-02 08:59:48 +00:00
|
|
|
/*
|
|
|
|
* @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.
|
|
|
|
*/
|
|
|
|
|
2023-03-03 08:08:27 +00:00
|
|
|
import { service as instance } from "./api/request";
|
|
|
|
import { API_URL } from "./api/config";
|
2023-03-02 08:59:48 +00:00
|
|
|
interface LoginInfo
|
|
|
|
{
|
2023-03-02 11:48:08 +00:00
|
|
|
p13account: string;
|
2023-03-02 08:59:48 +00:00
|
|
|
password: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
function login(data: LoginInfo)
|
|
|
|
{
|
|
|
|
return instance.request(
|
|
|
|
{
|
|
|
|
method: "post",
|
|
|
|
url: API_URL.URL_LOGIN,
|
|
|
|
data: data,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export { LoginInfo, login };
|