Files
hi-frontend/packages/ui/src/services/admin/tool.ts
T
shanshanzhong147 8d0ddbb5ef fix: 修复合并后 TypeScript 编译错误
- 补充 RefObject import(local-captcha、slider-captcha、node-group-form)
- 删除 slider-captcha 中无用的 _scaleX/_scaleY 变量
- user_subscribe_id 类型转换 number → string
- 移除 services 文件中失效的 @ts-expect-error 指令
2026-03-24 01:23:36 -07:00

54 lines
1.5 KiB
TypeScript

/* eslint-disable */
import request from "@workspace/ui/lib/request";
/** Query IP Location GET /v1/admin/tool/ip/location */
export async function queryIpLocation(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.QueryIPLocationParams,
options?: { [key: string]: any }
) {
return request<API.Response & { data?: API.QueryIPLocationResponse }>(
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/tool/ip/location`,
{
method: "GET",
params: {
...params,
},
...(options || {}),
}
);
}
/** Get System Log GET /v1/admin/tool/log */
export async function getSystemLog(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.LogResponse }>(
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/tool/log`,
{
method: "GET",
...(options || {}),
}
);
}
/** Restart System GET /v1/admin/tool/restart */
export async function restartSystem(options?: { [key: string]: any }) {
return request<API.Response & { data?: any }>(
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/tool/restart`,
{
method: "GET",
...(options || {}),
}
);
}
/** Get Version GET /v1/admin/tool/version */
export async function getVersion(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.VersionResponse }>(
`${import.meta.env.VITE_API_PREFIX || ""}/v1/admin/tool/version`,
{
method: "GET",
...(options || {}),
}
);
}