mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 15:11:15 +00:00
Replaced imports of ActionExamples with ExtendsActionsExamples in all extends actions. Updated action summary, description, tags, and example references for consistency and clarity across actions. This improves maintainability and aligns with the new examples structure.
25 lines
962 B
TypeScript
25 lines
962 B
TypeScript
import { ActionName } from '@/napcat-onebot/action/router';
|
|
import { GetPacketStatusDepends } from '@/napcat-onebot/action/packet/GetPacketStatus';
|
|
import { Type, Static } from '@sinclair/typebox';
|
|
|
|
import { ExtendsActionsExamples } from './examples';
|
|
|
|
const ReturnSchema = Type.Array(Type.Any(), { description: 'Rkey列表' });
|
|
|
|
type ReturnType = Static<typeof ReturnSchema>;
|
|
|
|
export class GetRkey extends GetPacketStatusDepends<void, ReturnType> {
|
|
override actionName = ActionName.GetRkey;
|
|
override payloadSchema = Type.Void();
|
|
override returnSchema = ReturnSchema;
|
|
override actionSummary = '获取Rkey';
|
|
override actionDescription = '获取用于媒体资源的Rkey列表';
|
|
override actionTags = ['扩展接口'];
|
|
override payloadExample = ExtendsActionsExamples.GetRkey.payload;
|
|
override returnExample = ExtendsActionsExamples.GetRkey.response;
|
|
|
|
async _handle () {
|
|
return await this.core.apis.PacketApi.pkt.operation.FetchRkey();
|
|
}
|
|
}
|