feat:新增发布和取消发布接口

This commit is contained in:
奔跑的面条
2022-05-22 16:38:22 +08:00
parent 341015c584
commit bfac86d5dd
9 changed files with 137 additions and 35 deletions
+10
View File
@@ -30,4 +30,14 @@ export const deleteProjectApi = async (data: object) => {
} catch {
httpErrorHandle();
}
}
// * 修改发布状态 [-1未发布,1发布]
export const changeProjectReleaseApi = async (data: object) => {
try {
const res = await http(RequestHttpEnum.PUT)(`${ModuleTypeEnum.PROJECT}/publish`, data);
return res;
} catch {
httpErrorHandle();
}
}