|
|
@@ -6,11 +6,11 @@ set dir=%~dp0
|
|
|
set apiServicesPath=%dir%..\src\api-services\
|
|
|
|
|
|
if exist %apiServicesPath% (
|
|
|
- echo 删除 api-services 文件夹
|
|
|
+ echo ================================ 删除目录 api-services ================================
|
|
|
rd /s /q %apiServicesPath%
|
|
|
)
|
|
|
|
|
|
-echo 开始生成 api-services ...
|
|
|
+echo ================================ 开始生成 api-services ================================
|
|
|
|
|
|
java -jar %dir%swagger-codegen-cli.jar generate -i http://localhost:5005/swagger/All%%20Groups/swagger.json -l typescript-axios -o %apiServicesPath%
|
|
|
|
|
|
@@ -22,4 +22,6 @@ del /q %apiServicesPath%.swagger-codegen-ignore
|
|
|
del /q %apiServicesPath%git_push.sh
|
|
|
del /q %apiServicesPath%package.json
|
|
|
del /q %apiServicesPath%README.md
|
|
|
-del /q %apiServicesPath%tsconfig.json
|
|
|
+del /q %apiServicesPath%tsconfig.json
|
|
|
+
|
|
|
+echo ================================ 生成结束 ================================
|