mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 14:41:14 +00:00
Moved action example files into a new 'example' directory and updated all imports accordingly. Removed the monolithic 'examples.ts' and redefined ActionExamples in OneBotAction.ts to only include common error codes. This improves code organization and maintainability.
11 lines
331 B
TypeScript
11 lines
331 B
TypeScript
export const NewActionsExamples = {
|
|
GetDoubtFriendsAddRequest: {
|
|
payload: { count: 10 },
|
|
response: [{ user_id: 123456789, nickname: '昵称', age: 20, sex: 'male', reason: '申请理由', flag: 'flag_123' }],
|
|
},
|
|
SetDoubtFriendsAddRequest: {
|
|
payload: { flag: 'flag_123', approve: true },
|
|
response: {},
|
|
},
|
|
};
|