feat:add guacamole
Build and Deploy Vue3 / build (push) Successful in 1m8s
Build and Deploy Vue3 / deploy (push) Successful in 4m43s

This commit is contained in:
2025-09-28 23:29:18 +08:00
parent 2b4083c2f1
commit 4fc9a43fd2
5 changed files with 829 additions and 2 deletions
+34
View File
@@ -0,0 +1,34 @@
import {http2} from "@/utils/request.js";
/**获取 guacamole 列表 */
export const getGuacamoleList = data => {
return http2.get(`/v1/admin/server/get_guacamole_list`);
};
/**获取服务器 guacamole 信息 */
export const getGuacamoleInfo = data => {
return http2.get(`/v1/admin/server/get_server_guacamole?server_id=${data}`);
};
/**新增 guacamole 参数 url:string,username:string,password:string*/
export const addGuacamoleInfo = data => {
return http2.post(`/v1/admin/server/add_guacamole`, data,{
headers:{
'Content-Type': 'multipart/form-data'
}
});
};
/**修改guacamole 参数 id:string,url:string,username:string,password:string*/
export const updateGuacamoleInfo = data => {
return http2.post(`/v1/admin/server/edit_guacamole`, data,{
headers:{
'Content-Type': 'multipart/form-data'
}
});
};
/**删除guacamole 参数 id:string */
export const deleteGuacamoleInfo = data => {
return http2.post(`/v1/admin/server/delete_guacamole`, data,{
headers:{
'Content-Type': 'multipart/form-data'
}
});
};