From 1fa2facb2705e5928f712ce29213247ee71fbded Mon Sep 17 00:00:00 2001 From: otto <731554297@qq.com> Date: Wed, 20 May 2026 09:43:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(AI=E8=B5=84=E6=BA=90=E5=B9=BF=E5=9C=BA):?= =?UTF-8?q?=20=E6=A8=A1=E5=9E=8B=E5=92=8C=E6=95=B0=E6=8D=AE=E9=9B=86?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Skill的提交、撤回、下架、上架接口兼容模型和数据集 --- .../common/controller/FrontController.java | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/microservices-modules/microservices-modules-zone/src/main/java/com/microservices/zone/common/controller/FrontController.java b/microservices-modules/microservices-modules-zone/src/main/java/com/microservices/zone/common/controller/FrontController.java index 6335fdaec..446947aaf 100644 --- a/microservices-modules/microservices-modules-zone/src/main/java/com/microservices/zone/common/controller/FrontController.java +++ b/microservices-modules/microservices-modules-zone/src/main/java/com/microservices/zone/common/controller/FrontController.java @@ -210,25 +210,18 @@ public class FrontController extends BaseController { return success(zoneResourceService.insertAiSkillResource(inputVo)); } - - /** - * 重新提交被驳回的Skill资源 - */ - @RequiresPermissions("zone:front:skill:add") - @Log(title = "重新提交Skill资源", businessType = BusinessType.UPDATE) - @PutMapping("/skillResource/{id}/resubmit") + @RequiresPermissions("zone:front:resource:add") + @Log(title = "重新提交被驳回的资源", businessType = BusinessType.UPDATE) + @PutMapping("/resource/{id}/resubmit") @ApiOperation(value = "重新提交被驳回的资源") public AjaxResult resubmitAiResource( @ApiParam(value = "资源ID", required = true) @PathVariable("id") Long id) { return toAjax(zoneResourceService.resubmitAiResource(id)); } - /** - * 撤回审核中的Skill资源 - */ - @RequiresPermissions("zone:front:skill:edit") - @Log(title = "撤回Skill资源", businessType = BusinessType.UPDATE) - @PutMapping("/skillResource/{id}/withdraw") + @RequiresPermissions("zone:front:resource:edit") + @Log(title = "撤回审核中的资源", businessType = BusinessType.UPDATE) + @PutMapping("/resource/{id}/withdraw") @ApiOperation(value = "撤回审核中的资源") public AjaxResult withdrawAiResource( @ApiParam(value = "资源ID", required = true) @PathVariable("id") Long id) {