mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 06:31:13 +00:00
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:
parent
bb3c1dbb5f
commit
46ff1a64e9
@ -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'
|
||||
};
|
||||
|
||||
@ -44,6 +44,7 @@ router.get('/schemas', async (_req: Request, res: Response) => {
|
||||
payload: action.payloadSchema,
|
||||
response: action.returnSchema,
|
||||
payloadExample: action.payloadExample,
|
||||
tags: action.actionTags,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,6 +5,7 @@ export interface OneBotHttpApiContent {
|
||||
payload: TSchema;
|
||||
response: TSchema;
|
||||
payloadExample?: any;
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
export type OneBotHttpApi = Record<string, OneBotHttpApiContent>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user