feat: 草稿删除接口改为请求体接收参数
This commit is contained in:
+2
-1
@@ -201,7 +201,8 @@ public class WorkCenterController {
|
|||||||
@AutoLog(value = "删除草稿")
|
@AutoLog(value = "删除草稿")
|
||||||
@ApiOperation(value = "删除草稿")
|
@ApiOperation(value = "删除草稿")
|
||||||
@PostMapping("/deleteDraft")
|
@PostMapping("/deleteDraft")
|
||||||
public Result<?> deleteDraft(String id) {
|
public Result<?> deleteDraft(@RequestBody Map<String, String> map) {
|
||||||
|
String id = map.get("id");
|
||||||
// 判断当前登录人是否属于草稿的所有人
|
// 判断当前登录人是否属于草稿的所有人
|
||||||
ProcessDraft processDraft = processDraftService.getById(id);
|
ProcessDraft processDraft = processDraftService.getById(id);
|
||||||
if (!CurrentUserUtil.getId().equals(processDraft.getUserId())) {
|
if (!CurrentUserUtil.getId().equals(processDraft.getUserId())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user