工具发布流程和使用申请流程
This commit is contained in:
@@ -17,20 +17,29 @@ export function getTool(toolId) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function getInfoByBpmcId(bpmcId) {
|
||||
return request({
|
||||
url: '/tool/bpmc/' + bpmcId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增工具信息
|
||||
export function addTool(data) {
|
||||
return request({
|
||||
url: '/tool',
|
||||
method: 'post',
|
||||
data: data
|
||||
data: data,
|
||||
timeout: 30*60*1000
|
||||
})
|
||||
}
|
||||
|
||||
// 修改工具信息
|
||||
export function updateTool(data) {
|
||||
return request({
|
||||
url: '/tool',
|
||||
method: 'put',
|
||||
url: '/tool/edit',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@@ -42,3 +51,11 @@ export function delTool(toolId) {
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function checkToolExist(params) {
|
||||
return request({
|
||||
url: '/tool/checkToolExist',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user