修改群公告的参数名 feed_id 为 notice_id

This commit is contained in:
ling
2024-08-26 10:37:11 +08:00
parent bc62feb71b
commit 871cc61dfc
5 changed files with 10 additions and 10 deletions

View File

@@ -8,9 +8,9 @@ const SchemaData = {
type: 'object',
properties: {
group_id: { type: ['number', 'string'] },
feed_id: { type: 'string' },
notice_id: { type: 'string' },
},
required: ['group_id','feed_id'],
required: ['group_id','notice_id'],
} as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>;
@@ -22,7 +22,7 @@ export class DelGroupNotice extends BaseAction<Payload, any> {
async _handle(payload: Payload) {
const NTQQGroupApi = this.core.apis.GroupApi;
const group = payload.group_id.toString();
const feedId = payload.feed_id;
return await NTQQGroupApi.deleteGroupBulletin(group, feedId);
const noticeId = payload.notice_id;
return await NTQQGroupApi.deleteGroupBulletin(group, noticeId);
}
}