新增 APPROVE_PUBLISH 动作与 approve-publish 接口,草稿/审核中/已下线 可直接流转为已上线,事务内同步上线草稿分集并记录一条审核记录, 后台审核操作由三步减为一步。
This commit is contained in:
1 parent
eba7d400e1
commit
32ada4c2bf
3 files changed
+57
No files matched your search
+9
@@ -113,6 +113,15 @@ public class DramaController {
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "审核通过并上线")
|
||||
@PostMapping("/{id}/approve-publish")
|
||||
@PreAuthorize("@ss.hasPermission('drama:review')")
|
||||
@OperationLog(module = "内容管理", action = "审核通过并上线")
|
||||
public Result<Void> approvePublish(@PathVariable Long id, @RequestBody(required = false) DramaStatusReqVO req) {
|
||||
changeStatus(id, "APPROVE_PUBLISH", req);
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
@Operation(summary = "上线")
|
||||
@PostMapping("/{id}/publish")
|
||||
@PreAuthorize("@ss.hasPermission('drama:review')")
|
||||
|
||||
Reference in new issue
Block a user