Add action tags to OneBot API schema and update tag name

Included the 'tags' property in the OneBot API schema for both backend and frontend, allowing actions to be categorized. Also updated the action tag from '群扩展' to '群组扩展' in SetGroupSign for consistency.
This commit is contained in:
手瓜一十雪 2026-01-25 21:06:21 +08:00
parent bb3c1dbb5f
commit 46ff1a64e9
3 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class SetGroupSignBase extends GetPacketStatusDepends<PayloadType, ReturnType> {
override payloadSchema = PayloadSchema;
override returnSchema = ReturnSchema;
override actionSummary = '设置群签名';
override actionTags = ['群扩展'];
override actionTags = ['群扩展'];
override payloadExample = {
group_id: '123456789'
};

View File

@ -44,6 +44,7 @@ router.get('/schemas', async (_req: Request, res: Response) => {
payload: action.payloadSchema,
response: action.returnSchema,
payloadExample: action.payloadExample,
tags: action.actionTags,
};
}
}

View File

@ -5,6 +5,7 @@ export interface OneBotHttpApiContent {
payload: TSchema;
response: TSchema;
payloadExample?: any;
tags?: string[];
}
export type OneBotHttpApi = Record<string, OneBotHttpApiContent>;