Add tool submit and cancel management

This commit is contained in:
2024-02-01 19:07:46 +08:00
parent 8e5031e8a3
commit 06213d3414
6 changed files with 117 additions and 14 deletions

View File

@@ -24,4 +24,8 @@ export const r_tool_detail = (username: string, toolId: string, ver: string) =>
export const r_tool_update = (param: ToolUpdateParam) => request.put<ToolVo>(URL_TOOL, param)
export const r_tool_submit = (id: string) => request.post(`${URL_TOOL}/${id}`)
export const r_tool_cancel = (id: string) => request.put(`${URL_TOOL}/${id}`)
export const r_tool_delete = (id: string) => request.delete(`${URL_TOOL}/${id}`)