feat: 新增删除接口

This commit is contained in:
奔跑的面条
2022-05-22 15:25:07 +08:00
parent b21fc3f5e7
commit 7c5a66978e
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();
}
}