修改群公告的参数名 feed_id 为 notice_id
This commit is contained in:
1 parent
e7f3cd9f84
commit
5d796bb81a
5 files changed
+10
-10
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user