Merge branch 'dev' of gitea.51mars.com:Oak-Team/oak-domain into dev
This commit is contained in:
commit
a652ffffc5
|
|
@ -3,6 +3,7 @@ import { EntityDict as BaseEntityDict } from "../base-app-domain";
|
|||
import { AttrUpdateMatrix } from './EntityDesc';
|
||||
import { ActionDefDict } from './Action';
|
||||
import { StyleDict } from './Style';
|
||||
import type { IKoaBodyOptions } from 'koa-body';
|
||||
/**
|
||||
* redis连接信息,如果是Redis集群,可以配置多个
|
||||
*/
|
||||
|
|
@ -43,18 +44,7 @@ export type ServerConfiguration = {
|
|||
methods?: string[];
|
||||
};
|
||||
internalExceptionMask?: string;
|
||||
koaBody?: {
|
||||
multipart?: boolean;
|
||||
formidable?: {
|
||||
maxFileSize?: number;
|
||||
maxFields?: number;
|
||||
maxFieldsSize?: number;
|
||||
uploadDir?: string;
|
||||
keepExtensions?: boolean;
|
||||
hashAlgorithm?: string;
|
||||
multiples?: boolean;
|
||||
};
|
||||
};
|
||||
koaBody?: IKoaBodyOptions;
|
||||
};
|
||||
/**
|
||||
* 前后台访问配置
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"dayjs": "^1.11.9",
|
||||
"koa-body": "^5.0.0",
|
||||
"node-schedule": "^2.1.1",
|
||||
"socket.io": "^4.8.1",
|
||||
"uuid": "^9.0.0",
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { EntityDict as BaseEntityDict } from "../base-app-domain";
|
|||
import { AttrUpdateMatrix } from './EntityDesc';
|
||||
import { ActionDefDict } from './Action';
|
||||
import { StyleDict } from './Style';
|
||||
import type { IKoaBodyOptions } from 'koa-body';
|
||||
|
||||
/**
|
||||
* redis连接信息,如果是Redis集群,可以配置多个
|
||||
|
|
@ -46,18 +47,7 @@ export type ServerConfiguration = {
|
|||
methods?: string[];
|
||||
},
|
||||
internalExceptionMask?: string;
|
||||
koaBody?: {
|
||||
multipart?: boolean; //框架默认开启 用于处理multipart/form-data类型的请求,这种类型通常用于上传文件。
|
||||
formidable?: {
|
||||
maxFileSize?: number;
|
||||
maxFields?: number;
|
||||
maxFieldsSize?: number;
|
||||
uploadDir?: string;
|
||||
keepExtensions?: boolean;
|
||||
hashAlgorithm?: string;
|
||||
multiples?: boolean;
|
||||
}
|
||||
};
|
||||
koaBody?: IKoaBodyOptions, // koa-body配置
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue