feat: 草稿删除改为post请求

This commit is contained in:
2024-06-28 11:37:01 +08:00
parent f5783459c0
commit 4e77e04fb6
@@ -200,8 +200,8 @@ public class WorkCenterController {
@AutoLog(value = "删除草稿")
@ApiOperation(value = "删除草稿")
@GetMapping("/deleteDraft")
public Result<?> deleteDraft(@RequestParam("id") String id) {
@PostMapping("/deleteDraft")
public Result<?> deleteDraft(String id) {
// 判断当前登录人是否属于草稿的所有人
ProcessDraft processDraft = processDraftService.getById(id);
if (!CurrentUserUtil.getId().equals(processDraft.getUserId())) {