This commit is contained in:
Jane
2024-07-16 14:21:16 +08:00
parent de8c3c4a74
commit c77036a671
29 changed files with 2639 additions and 163 deletions

44
src/api/tool/tool.js Normal file
View File

@@ -0,0 +1,44 @@
import request from '@/utils/request'
// 查询工具信息列表
export function listTool(query) {
return request({
url: '/tool/list',
method: 'get',
params: query
})
}
// 查询工具信息详细
export function getTool(toolId) {
return request({
url: '/tool/' + toolId,
method: 'get'
})
}
// 新增工具信息
export function addTool(data) {
return request({
url: '/tool',
method: 'post',
data: data
})
}
// 修改工具信息
export function updateTool(data) {
return request({
url: '/tool',
method: 'put',
data: data
})
}
// 删除工具信息
export function delTool(toolId) {
return request({
url: '/tool/' + toolId,
method: 'delete'
})
}