feat:添加admin相关接口
This commit is contained in:
@@ -2,15 +2,15 @@ import {http2} from "@/utils/request.js";
|
||||
|
||||
/**获取 guacamole 列表 */
|
||||
export const getGuacamoleList = data => {
|
||||
return http2.get(`/v1/admin/server/get_guacamole_list`);
|
||||
return http2.get(`/acs/v1/admin/server/get_guacamole_list`);
|
||||
};
|
||||
/**获取服务器 guacamole 信息 */
|
||||
export const getGuacamoleInfo = data => {
|
||||
return http2.get(`/v1/admin/server/get_server_guacamole?server_id=${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(`/v1/admin/server/add_guacamole`, data,{
|
||||
return http2.post(`/acs/v1/admin/server/add_guacamole`, data,{
|
||||
headers:{
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
@@ -18,7 +18,7 @@ export const addGuacamoleInfo = data => {
|
||||
};
|
||||
/**修改guacamole 参数 id:string,url:string,username:string,password:string*/
|
||||
export const updateGuacamoleInfo = data => {
|
||||
return http2.post(`/v1/admin/server/edit_guacamole`, data,{
|
||||
return http2.post(`/acs/v1/admin/server/edit_guacamole`, data,{
|
||||
headers:{
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
@@ -26,7 +26,7 @@ export const updateGuacamoleInfo = data => {
|
||||
};
|
||||
/**删除guacamole 参数 id:string */
|
||||
export const deleteGuacamoleInfo = data => {
|
||||
return http2.post(`/v1/admin/server/delete_guacamole`, data,{
|
||||
return http2.post(`/acs/v1/admin/server/delete_guacamole`, data,{
|
||||
headers:{
|
||||
'Content-Type': 'multipart/form-data'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user