拓扑图配置
This commit is contained in:
37
src/api/cs-device-boot/topologyTemplate.ts
Normal file
37
src/api/cs-device-boot/topologyTemplate.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import createAxios from '@/utils/request'
|
||||
// 上传拓扑图
|
||||
export const uploadTopo = file => {
|
||||
let form = new FormData()
|
||||
form.append('file', file)
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/topologyTemplate/uploadImage',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
},
|
||||
data: form
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 查询拓扑图模板
|
||||
export const getTopoTemplate = () => {
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/topologyTemplate/queryImage',
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
|
||||
//删除拓扑图模板
|
||||
export const deleteTopoTemplate = id => {
|
||||
let form = new FormData()
|
||||
form.append('id', id)
|
||||
return createAxios({
|
||||
url: '/cs-device-boot/topologyTemplate/deleteImage',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: form
|
||||
})
|
||||
}
|
||||
@@ -4,7 +4,6 @@ import createAxios from '@/utils/request'
|
||||
* 查询app个人中心信息详情
|
||||
* @param id
|
||||
*/
|
||||
|
||||
export const queryAppInfo = (type: string) => {
|
||||
let form = new FormData()
|
||||
form.append('type', type)
|
||||
@@ -17,3 +16,15 @@ export const queryAppInfo = (type: string) => {
|
||||
data: form
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增app基础信息
|
||||
**/
|
||||
export const addAppInfo = (data: { type: string, content: string }) => {
|
||||
return createAxios({
|
||||
url: '/cs-system-boot/appinfo/addAppInfo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user