mirror of
https://github.com/cool-team-official/cool-admin-midway-packages.git
synced 2026-01-07 10:28:11 +00:00
完善插件脚手架
This commit is contained in:
parent
99aa383e0b
commit
1d3615c6eb
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cool-midway/plugin-cli",
|
||||
"version": "7.1.0",
|
||||
"version": "7.1.2",
|
||||
"description": "cool-admin midway plugin",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
|
||||
@ -32,17 +32,17 @@ export interface Mode {
|
||||
/**
|
||||
* 文件上传
|
||||
*/
|
||||
export interface BaseFile {
|
||||
export interface BaseUpload {
|
||||
/**
|
||||
* 获得上传模式
|
||||
*/
|
||||
getMode(): Promise<string>;
|
||||
getMode(): Promise<Mode>;
|
||||
|
||||
/**
|
||||
* 获得原始操作对象
|
||||
* @returns
|
||||
*/
|
||||
getMetaFileObj(): Promise<any>;
|
||||
getMetaFileObj();
|
||||
|
||||
/**
|
||||
* 下载并上传
|
||||
|
||||
@ -1,5 +1,17 @@
|
||||
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";
|
||||
|
||||
/**
|
||||
* 插件信息
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user