mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-04 14:41:14 +00:00
Moved action example files into a new 'example' directory and updated all imports accordingly. Removed the monolithic 'examples.ts' and redefined ActionExamples in OneBotAction.ts to only include common error codes. This improves code organization and maintainability.
14 lines
560 B
TypeScript
14 lines
560 B
TypeScript
import { GetFileBase } from './GetFile';
|
|
import { ActionName } from '@/napcat-onebot/action/router';
|
|
|
|
import { FileActionsExamples } from '../example/FileActionsExamples';
|
|
|
|
export default class GetImage extends GetFileBase {
|
|
override actionName = ActionName.GetImage;
|
|
override actionSummary = '获取图片';
|
|
override actionDescription = '获取指定图片的信息及路径';
|
|
override actionTags = ['文件接口'];
|
|
override payloadExample = FileActionsExamples.GetImage.payload;
|
|
override returnExample = FileActionsExamples.GetImage.response;
|
|
}
|