完善插件脚手架

This commit is contained in:
cool 2024-02-19 14:33:52 +08:00
parent 99aa383e0b
commit 1d3615c6eb
3 changed files with 16 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@cool-midway/plugin-cli", "name": "@cool-midway/plugin-cli",
"version": "7.1.0", "version": "7.1.2",
"description": "cool-admin midway plugin", "description": "cool-admin midway plugin",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {

View File

@ -32,17 +32,17 @@ export interface Mode {
/** /**
* *
*/ */
export interface BaseFile { export interface BaseUpload {
/** /**
* *
*/ */
getMode(): Promise<string>; getMode(): Promise<Mode>;
/** /**
* *
* @returns * @returns
*/ */
getMetaFileObj(): Promise<any>; getMetaFileObj();
/** /**
* *

View File

@ -1,5 +1,17 @@
import { IMidwayContext, IMidwayApplication } from "@midwayjs/core"; import { IMidwayContext, IMidwayApplication } from "@midwayjs/core";
// 文件上传
export * from "./hook/upload";
// 异常处理
export * from "./exception/base";
export * from "./exception/comm";
export * from "./exception/core";
export * from "./exception/validate";
// 全局参数
export * from "./constant/global";
/** /**
* *
*/ */