fix(api): mc_uuid 统一校验为 UUID,非法值返回 400 bad_mc_uuid 并按规范形式存储

This commit is contained in:
Lemon-miaow committed 2026-09-27 12:57:40 +08:00
1 parent 5b0686dc06
commit e91886822c
13 files changed
+159 -35

No files matched your search

+8
View File
@@ -1422,6 +1422,8 @@ paths:
additionalProperties:
type: string
enum: [retiring, start_failed, owner, wake, owner_only, allowlist]
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
@@ -1505,6 +1507,8 @@ paths:
required: [linked]
properties:
linked: { type: boolean }
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
@@ -1637,6 +1641,8 @@ paths:
required: [blacklisted]
properties:
blacklisted: { type: boolean }
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
@@ -4684,6 +4690,8 @@ paths:
properties:
ok: { type: boolean, const: true }
mc_uuid: { type: string, format: uuid }
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':