mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-13 00:10:27 +00:00
- 将 == 改为 === 进行严格相等检查 - 修复未使用的变量,改为 _varName 格式 - 移除箭头函数中缺少的返回值 - 将 void 改为 undefined - 移除无用的构造函数 - 修复 Promise 参数命名规范 - 移除不必要的转义符 - 添加 Service Worker 全局变量声明 - 修复未使用的类型参数
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
export const ExtendsActionsExamples = {
|
|
OCRImage: {
|
|
payload: { image: 'image_id_123' },
|
|
response: { texts: [{ text: '识别内容', coordinates: [] }] },
|
|
},
|
|
GetAiCharacters: {
|
|
payload: { group_id: '123456' },
|
|
response: [
|
|
{
|
|
type: 'string',
|
|
characters: [
|
|
{ character_id: 'id', character_name: 'name', preview_url: 'url' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
GetClientkey: {
|
|
payload: {},
|
|
response: { clientkey: 'abcdef123456' },
|
|
},
|
|
SetQQAvatar: {
|
|
payload: { file: 'base64://...' },
|
|
response: null,
|
|
},
|
|
SetGroupKickMembers: {
|
|
payload: { group_id: '123456', user_id: ['123456789'], reject_add_request: false },
|
|
response: null,
|
|
},
|
|
TranslateEnWordToZn: {
|
|
payload: { words: ['hello'] },
|
|
response: { words: ['你好'] },
|
|
},
|
|
GetRkey: {
|
|
payload: {},
|
|
response: { rkey: '...' },
|
|
},
|
|
SetLongNick: {
|
|
payload: { longNick: '个性签名' },
|
|
response: null,
|
|
},
|
|
SetSpecialTitle: {
|
|
payload: { group_id: '123456', user_id: '123456789', special_title: '头衔' },
|
|
response: null,
|
|
},
|
|
};
|