12 lines
458 B
TypeScript
12 lines
458 B
TypeScript
|
|
import request from "./src/api/http.js";
|
||
|
|
import { type TrangleAgentApiLoginV1LoginRes, type DeepRequired, type TrangleAgentApiLoginV1LoginReq } from "../../interface";
|
||
|
|
import { type AxiosRequestConfig } from "axios";
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 用户登录
|
||
|
|
* /api/login
|
||
|
|
*/
|
||
|
|
export function postApiLogin(input?: TrangleAgentApiLoginV1LoginReq, config?: AxiosRequestConfig) {
|
||
|
|
return request.post<DeepRequired<TrangleAgentApiLoginV1LoginRes>>(`/api/login`, input, config);
|
||
|
|
}
|