🎨合并编译打包

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

View File

@@ -0,0 +1,34 @@
import { http } from "@/utils/http";
import { baseUri } from "@/api/utils";
// 获取服务端信息
export const getClients = (params?: object) => {
return http.request<any>("get", baseUri("/client/list"), { params });
};
// 下载客户端配置文件
export const downloadClient = (id: string) => {
return http.request<any>("post", baseUri("/client/download/" + id), null, {
responseType: "arraybuffer"
});
};
// 获取客户端配置二维码
export const clientQrCode = (id: string) => {
return http.request<any>("post", baseUri("/client/generate-qrcode/" + id));
};
// 新增/更新客户端信息
export const saveClient = (data?: object) => {
return http.request<any>("post", baseUri("/client/save"), { data });
};
// 删除客户端
export const deleteClient = (id: string) => {
return http.request<any>("delete", baseUri("/client/" + id));
};
// 获取客户端链接状态列表
export const getClientConnects = () => {
return http.request<any>("get", baseUri("/client/status"));
};