import {http2} from "@/utils/request.js";

/**获取 guacamole 列表 */
export const getGuacamoleList = data => {
  return http2.get(`/acs/v1/admin/server/get_guacamole_list`);
};
/**获取服务器 guacamole 信息 */
export const getGuacamoleInfo = data => {
  return http2.get(`/acs/v1/admin/server/get_server_guacamole?server_id=${data}`);
};
/**新增 guacamole 参数 url:string,username:string,password:string*/
export const addGuacamoleInfo = data => {
  return http2.post(`/acs/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(`/acs/v1/admin/server/edit_guacamole`, data,{
    headers:{
        'Content-Type': 'multipart/form-data'
    }
  });
};
/**删除guacamole 参数 id:string */
export const deleteGuacamoleInfo = data => {
  return http2.post(`/acs/v1/admin/server/delete_guacamole`, data,{
    headers:{
        'Content-Type': 'multipart/form-data'
    }
  });
};
