✨ feat(ui): System Tool
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
/* eslint-disable */
|
||||
|
||||
// API 更新时间:
|
||||
// API 唯一标识:
|
||||
import * as announcement from './announcement';
|
||||
@@ -11,6 +11,7 @@ import * as server from './server';
|
||||
import * as subscribe from './subscribe';
|
||||
import * as system from './system';
|
||||
import * as ticket from './ticket';
|
||||
import * as tool from './tool';
|
||||
import * as user from './user';
|
||||
export default {
|
||||
announcement,
|
||||
@@ -22,5 +23,6 @@ export default {
|
||||
subscribe,
|
||||
system,
|
||||
ticket,
|
||||
tool,
|
||||
user,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
// @ts-ignore
|
||||
/* eslint-disable */
|
||||
import request from '@/utils/request';
|
||||
|
||||
/** Get System Log GET /v1/admin/tool/log */
|
||||
export async function getSystemLog(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.LogResponse }>('/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 }>('/v1/admin/tool/restart', {
|
||||
method: 'GET',
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
+4
@@ -494,6 +494,10 @@ declare namespace API {
|
||||
only_first_purchase: boolean;
|
||||
};
|
||||
|
||||
type LogResponse = {
|
||||
list: Record<string, any>;
|
||||
};
|
||||
|
||||
type NodeConfig = {
|
||||
node_secret: string;
|
||||
node_pull_interval: number;
|
||||
|
||||
Reference in New Issue
Block a user