🎨合并编译打包

This commit is contained in:
2024-06-04 09:55:48 +08:00
parent e1f168b274
commit 6d4f4b2e02
275 changed files with 17590 additions and 951 deletions

27
web-src/src/api/server.ts Normal file
View File

@@ -0,0 +1,27 @@
import { http } from "@/utils/http";
import { baseUri } from "@/api/utils";
// 获取服务端信息
export const getServer = () => {
return http.request<any>("get", baseUri("/server"));
};
// 更新服务端信息
export const updateServer = (data?: object) => {
return http.request<any>("post", baseUri("/server"), { data });
};
// 获取全局配置
export const getGlobalConfig = () => {
return http.request<any>("get", baseUri("/setting/server"));
};
// 更新全局配置
export const updateGlobalSetting = (data?: object) => {
return http.request<any>("post", baseUri("/setting/server-global"), { data });
};
// 获取当前主机的公网IP
export const getPublicIP = () => {
return http.request<any>("get", baseUri("/setting/public-ip"));
};