refactor: Action

This commit is contained in:
手瓜一十雪
2024-11-19 12:49:51 +08:00
parent d4fbbd6711
commit 9ffaab178a
88 changed files with 206 additions and 221 deletions

View File

@@ -1,5 +1,5 @@
import { FromSchema, JSONSchema } from 'json-schema-to-ts';
import BaseAction from '../BaseAction';
import { OneBotAction } from '@/onebot/action/OneBotAction';
import { ActionName } from '../types';
const SchemaData = {
@@ -12,7 +12,7 @@ const SchemaData = {
type Payload = FromSchema<typeof SchemaData>;
export class GetGroupFileSystemInfo extends BaseAction<Payload, {
export class GetGroupFileSystemInfo extends OneBotAction<Payload, {
file_count: number,
limit_count: number, // unimplemented
used_space: number, // TODO:unimplemented, but can be implemented later