mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 14:41:14 +00:00
Moved action example data to dedicated 'examples.ts' files for each action category (extends, file, go-cqhttp, group, msg, system, user). Updated all action classes to import and use the new example modules, improving code organization and maintainability. Also added missing actionTags and actionDescription where appropriate.
23 lines
720 B
TypeScript
23 lines
720 B
TypeScript
export const FileActionsExamples = {
|
|
GetFile: {
|
|
payload: { file: 'file_id_123' },
|
|
response: { file: '/path/to/file', url: 'http://...', file_size: 1024, file_name: 'test.jpg' },
|
|
},
|
|
GetGroupFileUrl: {
|
|
payload: { group_id: '123456', file_id: 'file_id_123', busid: 102 },
|
|
response: { url: 'http://...' },
|
|
},
|
|
GetImage: {
|
|
payload: { file: 'image_id_123' },
|
|
response: { file: '/path/to/image', url: 'http://...' },
|
|
},
|
|
GetPrivateFileUrl: {
|
|
payload: { user_id: '123456789', file_id: 'file_id_123' },
|
|
response: { url: 'http://...' },
|
|
},
|
|
GetRecord: {
|
|
payload: { file: 'record_id_123', out_format: 'mp3' },
|
|
response: { file: '/path/to/record', url: 'http://...' },
|
|
},
|
|
};
|