feat: 新增删除接口

This commit is contained in:
奔跑的面条
2022-05-22 15:25:07 +08:00
parent 09b31547e1
commit f46e6ad8c8
5 changed files with 48 additions and 33 deletions
+10
View File
@@ -20,4 +20,14 @@ export const createProjectApi = async (data: object) => {
} catch {
httpErrorHandle();
}
}
// * 删除项目
export const deleteProjectApi = async (data: object) => {
try {
const res = await http(RequestHttpEnum.DELETE)(`${ModuleTypeEnum.PROJECT}/delete`, data);
return res;
} catch {
httpErrorHandle();
}
}