refactor(onebot): give trans_group_file semantic param roles

Follow-up to #161: trans_group_file's group_id/file_id used plain
f.uint()/f.string(); switch them to f.groupId()/f.fileId() (identical
coercion) so the WebUI debug console renders a group picker + file-id
control for the new action and the catalog carries the roles. Catalog
regenerated.
This commit is contained in:
DrSmoothl committed 2026-07-01 02:27:35 +08:00
1 parent 9ca64bed10
commit 5d6ce86b66
3 files changed
+14 -6

No files matched your search

+6 -2
View File
@@ -9105,6 +9105,7 @@ export const ACTIONS: CatalogAction[] = [
"name": "group_id",
"type": "uint",
"required": true,
"role": "group_id",
"schema": {
"type": "integer",
"minimum": 1
@@ -9114,6 +9115,7 @@ export const ACTIONS: CatalogAction[] = [
"name": "file_id",
"type": "string",
"required": true,
"role": "file_id",
"schema": {
"type": "string",
"minLength": 1
@@ -9126,11 +9128,13 @@ export const ACTIONS: CatalogAction[] = [
"properties": {
"group_id": {
"type": "integer",
"minimum": 1
"minimum": 1,
"x-role": "group_id"
},
"file_id": {
"type": "string",
"minLength": 1
"minLength": 1,
"x-role": "file_id"
}
},
"required": [