Commit 1402aae2 authored by xuhaoze's avatar xuhaoze

宿主机业务前端初始化

parent 59efc8a7
import request from '@/utils/request'
import Qs from 'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询宿主机列表
export function listResHost(query) {
return request({
url: '/reshost/list',
method: 'get',
params: query
})
}
// 2. 查询宿主机详细信息
export function getResHost(businessId) {
return request({
url: '/reshost/detail/' + businessId,
method: 'get'
})
}
// 3. 新增宿主机
export function addResHost(data) {
data = Qs.stringify(data)
return request({
url: '/reshost/add',
method: 'post',
data: data
})
}
// 4. 修改宿主机
export function updateResHost(data) {
const businessId = data.businessId
data = Qs.stringify(data)
return request({
url: '/reshost/update/' + businessId,
method: 'put',
data
})
}
// 5. 逻辑删除宿主机
export function delResHost(businessId) {
return request({
url: '/reshost/deleteLogical/' + businessId,
method: 'delete'
})
}
// 6. 导出宿主机
export function exportResHost(query) {
return request({
url: '/reshost/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment