mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 22:51:13 +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.
39 lines
931 B
TypeScript
39 lines
931 B
TypeScript
export const UserActionsExamples = {
|
|
GetCookies: {
|
|
payload: { domain: 'qun.qq.com' },
|
|
response: { cookies: 'p_skey=xxx; p_uin=o0123456789;' },
|
|
},
|
|
GetFriendList: {
|
|
payload: {},
|
|
response: [{ user_id: 123456789, nickname: '昵称', remark: '备注' }],
|
|
},
|
|
GetRecentContact: {
|
|
payload: { count: 10 },
|
|
response: [
|
|
{
|
|
lastestMsg: 'hello',
|
|
peerUin: '123456789',
|
|
remark: 'remark',
|
|
msgTime: '1710000000',
|
|
chatType: 1,
|
|
msgId: '12345',
|
|
sendNickName: 'nick',
|
|
sendMemberName: 'card',
|
|
peerName: 'name',
|
|
},
|
|
],
|
|
},
|
|
SendLike: {
|
|
payload: { user_id: '123456789', times: 10 },
|
|
response: {},
|
|
},
|
|
SetFriendAddRequest: {
|
|
payload: { flag: 'flag_123', approve: true, remark: '好友' },
|
|
response: {},
|
|
},
|
|
SetFriendRemark: {
|
|
payload: { user_id: '123456789', remark: '新备注' },
|
|
response: {},
|
|
},
|
|
};
|