init local code

This commit is contained in:
chenxing
2026-09-07 09:11:37 +08:00
commit a3a75c3680
112 changed files with 24837 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { defineConfig } from "@alova/wormhole";
export default defineConfig({
generator: [
{
input: "http://localhost:8072/cms/v2/api-docs",
platform: "swagger",
output: "src/api/gen",
type: "typescript",
global: "Apis",
splitImplementation: true,
implementation: "inline",
handleApi: (api: any) => {
if (api.deprecated) return false;
api.name = api.summary || api.name;
return api;
},
},
],
});