feat(skills): 场景预设 - 提供公开只读目录并校验内置技能引用 (#603)

This commit is contained in:
Wyatt_K
2026-09-23 16:01:27 +08:00
committed by ddCat
parent 7ebdd06268
commit ec81a1b92b
8 changed files with 364 additions and 0 deletions

View File

@@ -114,6 +114,15 @@ paths:
"200": {description: 标准信封 data 为完整工具}
"400": {description: 参数无效或预览资源不符合要求}
"401": {description: 未登录}
/skills/presets:
get:
tags: [canvas]
security: []
summary: 获取公开场景技能预设目录
responses:
"200":
description: 标准信封 data 为 presets 数组;预设只引用公开且启用的种子技能
"500": {$ref: "#/components/responses/Error"}
/tools/{id}:
parameters:
- {in: path, name: id, required: true, schema: {type: integer, format: int64, minimum: 1}}