75674df502
ClientAPI: use Axios ServerAPI: use @koa/router FullDate: wrapped Date only class APIPromise: enhanced Promise on api response application/json only(multipart/*, image/*, ... are not supported) get, post, put, delete, patch only
23 lines
650 B
JavaScript
23 lines
650 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.configDefault = {
|
|
// format
|
|
interfacePrefix: 'I',
|
|
indentString: ' ',
|
|
responsePrefix: '',
|
|
// name
|
|
schemasName: 'schemas',
|
|
IHandlerName: 'IHandler',
|
|
IServerAPIName: 'IServerAPI',
|
|
IClientAPIName: 'IClientAPI',
|
|
ClientAPIName: 'ClientAPI',
|
|
routerName: 'apiRouter',
|
|
// TS path
|
|
apiDirTSPath: '#api',
|
|
ServerAPITSPath: '#ServerAPI',
|
|
utilsTSPath: 'api-codegen-ts/utils',
|
|
stateTSPath: null,
|
|
// other
|
|
outputDir: 'api/generated',
|
|
validateStatus: function (status) { return /^2..$/.test(status); },
|
|
};
|