Commit 1a8bf461 authored by 邓晓峰's avatar 邓晓峰

fix: 修复openapi

parent e3a58a52
Pipeline #23702 skipped with stages
// @ts-ignore
//import { Request, Response } from 'express';
// import { Request, Response } from 'express';
module.exports = {};
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -98,9 +98,9 @@
"@ant-design/pro-utils": "^1.10.4",
"@babel/polyfill": "7.4.3",
"@babel/runtime": "^7.10.5",
"@wisdom-utils/components": "0.0.9",
"@wisdom-utils/components": "0.0.14",
"@wisdom-utils/runtime": "0.0.15",
"@wisdom-utils/utils": "0.0.44",
"@wisdom-utils/utils": "0.0.46",
"animate.css": "^4.1.1",
"antd": "^4.11.2",
"compression": "1.7.4",
......@@ -114,7 +114,7 @@
"js-cookie": "^2.2.1",
"kit_global_config": "^1.0.24",
"kit_logger": "^1.0.2",
"kit_utils": "^1.3.10",
"kit_utils": "^1.3.11",
"lodash": "4.17.11",
"minimist": "1.2.0",
"mqtt-client": "^1.0.11",
......
......@@ -60,6 +60,7 @@ const generateService = async ({ requestLibPath, schemaPath, mockFolder, ...rest
const requestImportStatement = getImportStatement(requestLibPath);
const serviceGenerator = new serviceGenerators.ServiceGenerator({
namespace: 'API',
basePath: openAPI.servers[0].url,
requestImportStatement,
...rest,
}, openAPI);
......@@ -77,4 +78,4 @@ const generateService = async ({ requestLibPath, schemaPath, mockFolder, ...rest
module.exports = {
generateService,
getSchema
}
\ No newline at end of file
}
const chalk = require('chalk');
const Log = (...rest) => console.log(`${chalk.blue('[openAPI]')}: ${rest.join('\n')}`);
module.exports = Log;
\ No newline at end of file
const Log = (...rest) =>
console.log(`${chalk.blue('[openAPI]')}: ${rest.join('\n')}`);
module.exports = Log;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment