🎨合并编译打包
This commit is contained in:
27
web-src/src/api/server.ts
Normal file
27
web-src/src/api/server.ts
Normal 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"));
|
||||
};
|
Reference in New Issue
Block a user