'固件列表展示'

This commit is contained in:
刘召雪
2020-11-10 16:21:54 +08:00
parent 57430e6b75
commit 119ac9b1e8
3 changed files with 227 additions and 4 deletions

View File

@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询固件列表
export function list(params) {
return request({
url: '/system/firmware/list',
method: 'get',
params
})
}
// 查询固件详细
export function Info(firmwareId) {
return request({
url: '/system/firmware/' + firmwareId,
method: 'get'
})
}
// 新增固件
export function add(data) {
return request({
url: '/system/firmware',
method: 'post',
data
})
}
// 修改固件
export function update(data) {
return request({
url: '/system/firmware',
method: 'post',
data
})
}
// 删除固件
export function del(firmwareId) {
return request({
url: '/system/firmware/' + firmwareId,
method: 'delete'
})
}