@fecommunity/reactpress-cli 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cli.d.ts +4 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +102 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/config.d.ts +8 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +54 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/init.d.ts +6 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +33 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/restart.d.ts +2 -0
- package/dist/commands/restart.d.ts.map +1 -0
- package/dist/commands/restart.js +29 -0
- package/dist/commands/restart.js.map +1 -0
- package/dist/commands/start.d.ts +2 -0
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/start.js +31 -0
- package/dist/commands/start.js.map +1 -0
- package/dist/commands/status.d.ts +2 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +20 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/stop.d.ts +5 -0
- package/dist/commands/stop.d.ts.map +1 -0
- package/dist/commands/stop.js +29 -0
- package/dist/commands/stop.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/services/config.d.ts +11 -0
- package/dist/services/config.d.ts.map +1 -0
- package/dist/services/config.js +102 -0
- package/dist/services/config.js.map +1 -0
- package/dist/services/database.d.ts +43 -0
- package/dist/services/database.d.ts.map +1 -0
- package/dist/services/database.js +252 -0
- package/dist/services/database.js.map +1 -0
- package/dist/services/exec.d.ts +22 -0
- package/dist/services/exec.d.ts.map +1 -0
- package/dist/services/exec.js +46 -0
- package/dist/services/exec.js.map +1 -0
- package/dist/services/init.d.ts +10 -0
- package/dist/services/init.d.ts.map +1 -0
- package/dist/services/init.js +50 -0
- package/dist/services/init.js.map +1 -0
- package/dist/services/process.d.ts +9 -0
- package/dist/services/process.d.ts.map +1 -0
- package/dist/services/process.js +98 -0
- package/dist/services/process.js.map +1 -0
- package/dist/services/server-health.d.ts +4 -0
- package/dist/services/server-health.d.ts.map +1 -0
- package/dist/services/server-health.js +27 -0
- package/dist/services/server-health.js.map +1 -0
- package/dist/services/server.d.ts +19 -0
- package/dist/services/server.d.ts.map +1 -0
- package/dist/services/server.js +133 -0
- package/dist/services/server.js.map +1 -0
- package/dist/templates/config.default.json +12 -0
- package/dist/templates/docker-compose.yml +27 -0
- package/dist/templates/env.default +11 -0
- package/dist/templates/package.json +10 -0
- package/dist/types/config.d.ts +30 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +2 -0
- package/dist/types/config.js.map +1 -0
- package/dist/utils/cli-context.d.ts +4 -0
- package/dist/utils/cli-context.d.ts.map +1 -0
- package/dist/utils/cli-context.js +10 -0
- package/dist/utils/cli-context.js.map +1 -0
- package/dist/utils/logger.d.ts +10 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +32 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/paths.d.ts +17 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +27 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/platform.d.ts +8 -0
- package/dist/utils/platform.d.ts.map +1 -0
- package/dist/utils/platform.js +21 -0
- package/dist/utils/platform.js.map +1 -0
- package/dist/utils/port.d.ts +5 -0
- package/dist/utils/port.d.ts.map +1 -0
- package/dist/utils/port.js +25 -0
- package/dist/utils/port.js.map +1 -0
- package/dist/utils/server-bundle.d.ts +11 -0
- package/dist/utils/server-bundle.d.ts.map +1 -0
- package/dist/utils/server-bundle.js +71 -0
- package/dist/utils/server-bundle.js.map +1 -0
- package/package.json +69 -0
- package/scripts/install-bundled-runtime.mjs +46 -0
- package/server/bin/reactpress-server.js +203 -0
- package/server/dist/app.module.d.ts +2 -0
- package/server/dist/app.module.js +80 -0
- package/server/dist/app.module.js.map +1 -0
- package/server/dist/filters/http-exception.filter.d.ts +4 -0
- package/server/dist/filters/http-exception.filter.js +36 -0
- package/server/dist/filters/http-exception.filter.js.map +1 -0
- package/server/dist/generate-swagger.d.ts +1 -0
- package/server/dist/generate-swagger.js +73 -0
- package/server/dist/generate-swagger.js.map +1 -0
- package/server/dist/interceptors/transform.interceptor.d.ts +9 -0
- package/server/dist/interceptors/transform.interceptor.js +36 -0
- package/server/dist/interceptors/transform.interceptor.js.map +1 -0
- package/server/dist/logger/index.d.ts +4 -0
- package/server/dist/logger/index.js +33 -0
- package/server/dist/logger/index.js.map +1 -0
- package/server/dist/main.d.ts +6 -0
- package/server/dist/main.js +263 -0
- package/server/dist/main.js.map +1 -0
- package/server/dist/modules/article/article.controller.d.ts +27 -0
- package/server/dist/modules/article/article.controller.js +198 -0
- package/server/dist/modules/article/article.controller.js.map +1 -0
- package/server/dist/modules/article/article.entity.d.ts +23 -0
- package/server/dist/modules/article/article.entity.js +128 -0
- package/server/dist/modules/article/article.entity.js.map +1 -0
- package/server/dist/modules/article/article.module.d.ts +2 -0
- package/server/dist/modules/article/article.module.js +30 -0
- package/server/dist/modules/article/article.module.js.map +1 -0
- package/server/dist/modules/article/article.service.d.ts +30 -0
- package/server/dist/modules/article/article.service.js +303 -0
- package/server/dist/modules/article/article.service.js.map +1 -0
- package/server/dist/modules/article/article.util.d.ts +1 -0
- package/server/dist/modules/article/article.util.js +9 -0
- package/server/dist/modules/article/article.util.js.map +1 -0
- package/server/dist/modules/auth/auth.controller.d.ts +12 -0
- package/server/dist/modules/auth/auth.controller.js +66 -0
- package/server/dist/modules/auth/auth.controller.js.map +1 -0
- package/server/dist/modules/auth/auth.module.d.ts +2 -0
- package/server/dist/modules/auth/auth.module.js +41 -0
- package/server/dist/modules/auth/auth.module.js.map +1 -0
- package/server/dist/modules/auth/auth.service.d.ts +26 -0
- package/server/dist/modules/auth/auth.service.js +127 -0
- package/server/dist/modules/auth/auth.service.js.map +1 -0
- package/server/dist/modules/auth/jwt-auth.guard.d.ts +7 -0
- package/server/dist/modules/auth/jwt-auth.guard.js +29 -0
- package/server/dist/modules/auth/jwt-auth.guard.js.map +1 -0
- package/server/dist/modules/auth/jwt.strategy.d.ts +9 -0
- package/server/dist/modules/auth/jwt.strategy.js +38 -0
- package/server/dist/modules/auth/jwt.strategy.js.map +1 -0
- package/server/dist/modules/auth/roles.guard.d.ts +10 -0
- package/server/dist/modules/auth/roles.guard.js +46 -0
- package/server/dist/modules/auth/roles.guard.js.map +1 -0
- package/server/dist/modules/category/category.controller.d.ts +11 -0
- package/server/dist/modules/category/category.controller.js +91 -0
- package/server/dist/modules/category/category.controller.js.map +1 -0
- package/server/dist/modules/category/category.entity.d.ts +9 -0
- package/server/dist/modules/category/category.entity.js +60 -0
- package/server/dist/modules/category/category.entity.js.map +1 -0
- package/server/dist/modules/category/category.module.d.ts +2 -0
- package/server/dist/modules/category/category.module.js +27 -0
- package/server/dist/modules/category/category.module.js.map +1 -0
- package/server/dist/modules/category/category.service.d.ts +12 -0
- package/server/dist/modules/category/category.service.js +89 -0
- package/server/dist/modules/category/category.service.js.map +1 -0
- package/server/dist/modules/comment/comment.controller.d.ts +12 -0
- package/server/dist/modules/comment/comment.controller.js +100 -0
- package/server/dist/modules/comment/comment.controller.js.map +1 -0
- package/server/dist/modules/comment/comment.entity.d.ts +17 -0
- package/server/dist/modules/comment/comment.entity.js +104 -0
- package/server/dist/modules/comment/comment.entity.js.map +1 -0
- package/server/dist/modules/comment/comment.module.d.ts +2 -0
- package/server/dist/modules/comment/comment.module.js +30 -0
- package/server/dist/modules/comment/comment.module.js.map +1 -0
- package/server/dist/modules/comment/comment.service.d.ts +24 -0
- package/server/dist/modules/comment/comment.service.js +172 -0
- package/server/dist/modules/comment/comment.service.js.map +1 -0
- package/server/dist/modules/comment/html.d.ts +15 -0
- package/server/dist/modules/comment/html.js +632 -0
- package/server/dist/modules/comment/html.js.map +1 -0
- package/server/dist/modules/file/file.controller.d.ts +10 -0
- package/server/dist/modules/file/file.controller.js +84 -0
- package/server/dist/modules/file/file.controller.js.map +1 -0
- package/server/dist/modules/file/file.entity.d.ts +9 -0
- package/server/dist/modules/file/file.entity.js +60 -0
- package/server/dist/modules/file/file.entity.js.map +1 -0
- package/server/dist/modules/file/file.module.d.ts +2 -0
- package/server/dist/modules/file/file.module.js +27 -0
- package/server/dist/modules/file/file.module.js.map +1 -0
- package/server/dist/modules/file/file.service.d.ts +17 -0
- package/server/dist/modules/file/file.service.js +111 -0
- package/server/dist/modules/file/file.service.js.map +1 -0
- package/server/dist/modules/install/install.controller.d.ts +11 -0
- package/server/dist/modules/install/install.controller.js +49 -0
- package/server/dist/modules/install/install.controller.js.map +1 -0
- package/server/dist/modules/install/install.module.d.ts +2 -0
- package/server/dist/modules/install/install.module.js +26 -0
- package/server/dist/modules/install/install.module.js.map +1 -0
- package/server/dist/modules/install/install.service.d.ts +12 -0
- package/server/dist/modules/install/install.service.js +63 -0
- package/server/dist/modules/install/install.service.js.map +1 -0
- package/server/dist/modules/knowledge/knowledge.controller.d.ts +14 -0
- package/server/dist/modules/knowledge/knowledge.controller.js +128 -0
- package/server/dist/modules/knowledge/knowledge.controller.js.map +1 -0
- package/server/dist/modules/knowledge/knowledge.entity.d.ts +18 -0
- package/server/dist/modules/knowledge/knowledge.entity.js +109 -0
- package/server/dist/modules/knowledge/knowledge.entity.js.map +1 -0
- package/server/dist/modules/knowledge/knowledge.module.d.ts +2 -0
- package/server/dist/modules/knowledge/knowledge.module.js +27 -0
- package/server/dist/modules/knowledge/knowledge.module.js.map +1 -0
- package/server/dist/modules/knowledge/knowledge.service.d.ts +14 -0
- package/server/dist/modules/knowledge/knowledge.service.js +143 -0
- package/server/dist/modules/knowledge/knowledge.service.js.map +1 -0
- package/server/dist/modules/page/page.controller.d.ts +12 -0
- package/server/dist/modules/page/page.controller.js +102 -0
- package/server/dist/modules/page/page.controller.js.map +1 -0
- package/server/dist/modules/page/page.entity.d.ts +15 -0
- package/server/dist/modules/page/page.entity.js +94 -0
- package/server/dist/modules/page/page.entity.js.map +1 -0
- package/server/dist/modules/page/page.module.d.ts +2 -0
- package/server/dist/modules/page/page.module.js +27 -0
- package/server/dist/modules/page/page.module.js.map +1 -0
- package/server/dist/modules/page/page.service.d.ts +12 -0
- package/server/dist/modules/page/page.service.js +97 -0
- package/server/dist/modules/page/page.service.js.map +1 -0
- package/server/dist/modules/search/search.controller.d.ts +8 -0
- package/server/dist/modules/search/search.controller.js +67 -0
- package/server/dist/modules/search/search.controller.js.map +1 -0
- package/server/dist/modules/search/search.entity.d.ts +8 -0
- package/server/dist/modules/search/search.entity.js +59 -0
- package/server/dist/modules/search/search.entity.js.map +1 -0
- package/server/dist/modules/search/search.module.d.ts +2 -0
- package/server/dist/modules/search/search.module.js +27 -0
- package/server/dist/modules/search/search.module.js.map +1 -0
- package/server/dist/modules/search/search.service.d.ts +12 -0
- package/server/dist/modules/search/search.service.js +84 -0
- package/server/dist/modules/search/search.service.js.map +1 -0
- package/server/dist/modules/setting/setting.constant.d.ts +3 -0
- package/server/dist/modules/setting/setting.constant.js +25 -0
- package/server/dist/modules/setting/setting.constant.js.map +1 -0
- package/server/dist/modules/setting/setting.controller.d.ts +12 -0
- package/server/dist/modules/setting/setting.controller.js +77 -0
- package/server/dist/modules/setting/setting.controller.js.map +1 -0
- package/server/dist/modules/setting/setting.entity.d.ts +26 -0
- package/server/dist/modules/setting/setting.entity.js +149 -0
- package/server/dist/modules/setting/setting.entity.js.map +1 -0
- package/server/dist/modules/setting/setting.module.d.ts +2 -0
- package/server/dist/modules/setting/setting.module.js +28 -0
- package/server/dist/modules/setting/setting.module.js.map +1 -0
- package/server/dist/modules/setting/setting.service.d.ts +10 -0
- package/server/dist/modules/setting/setting.service.js +106 -0
- package/server/dist/modules/setting/setting.service.js.map +1 -0
- package/server/dist/modules/smtp/mail.util.d.ts +6 -0
- package/server/dist/modules/smtp/mail.util.js +33 -0
- package/server/dist/modules/smtp/mail.util.js.map +1 -0
- package/server/dist/modules/smtp/smtp.controller.d.ts +9 -0
- package/server/dist/modules/smtp/smtp.controller.js +69 -0
- package/server/dist/modules/smtp/smtp.controller.js.map +1 -0
- package/server/dist/modules/smtp/smtp.entity.d.ts +9 -0
- package/server/dist/modules/smtp/smtp.entity.js +60 -0
- package/server/dist/modules/smtp/smtp.entity.js.map +1 -0
- package/server/dist/modules/smtp/smtp.module.d.ts +2 -0
- package/server/dist/modules/smtp/smtp.module.js +28 -0
- package/server/dist/modules/smtp/smtp.module.js.map +1 -0
- package/server/dist/modules/smtp/smtp.service.d.ts +11 -0
- package/server/dist/modules/smtp/smtp.service.js +82 -0
- package/server/dist/modules/smtp/smtp.service.js.map +1 -0
- package/server/dist/modules/tag/tag.controller.d.ts +12 -0
- package/server/dist/modules/tag/tag.controller.js +101 -0
- package/server/dist/modules/tag/tag.controller.js.map +1 -0
- package/server/dist/modules/tag/tag.entity.d.ts +9 -0
- package/server/dist/modules/tag/tag.entity.js +59 -0
- package/server/dist/modules/tag/tag.entity.js.map +1 -0
- package/server/dist/modules/tag/tag.module.d.ts +2 -0
- package/server/dist/modules/tag/tag.module.js +27 -0
- package/server/dist/modules/tag/tag.module.js.map +1 -0
- package/server/dist/modules/tag/tag.service.d.ts +13 -0
- package/server/dist/modules/tag/tag.service.js +103 -0
- package/server/dist/modules/tag/tag.service.js.map +1 -0
- package/server/dist/modules/user/user.controller.d.ts +13 -0
- package/server/dist/modules/user/user.controller.js +114 -0
- package/server/dist/modules/user/user.controller.js.map +1 -0
- package/server/dist/modules/user/user.entity.d.ts +15 -0
- package/server/dist/modules/user/user.entity.js +96 -0
- package/server/dist/modules/user/user.entity.js.map +1 -0
- package/server/dist/modules/user/user.module.d.ts +2 -0
- package/server/dist/modules/user/user.module.js +28 -0
- package/server/dist/modules/user/user.module.js.map +1 -0
- package/server/dist/modules/user/user.service.d.ts +16 -0
- package/server/dist/modules/user/user.service.js +151 -0
- package/server/dist/modules/user/user.service.js.map +1 -0
- package/server/dist/modules/view/view.controller.d.ts +11 -0
- package/server/dist/modules/view/view.controller.js +92 -0
- package/server/dist/modules/view/view.controller.js.map +1 -0
- package/server/dist/modules/view/view.entity.d.ts +14 -0
- package/server/dist/modules/view/view.entity.js +88 -0
- package/server/dist/modules/view/view.entity.js.map +1 -0
- package/server/dist/modules/view/view.module.d.ts +2 -0
- package/server/dist/modules/view/view.module.js +27 -0
- package/server/dist/modules/view/view.module.js.map +1 -0
- package/server/dist/modules/view/view.service.d.ts +11 -0
- package/server/dist/modules/view/view.service.js +89 -0
- package/server/dist/modules/view/view.service.js.map +1 -0
- package/server/dist/public/favicon.png +0 -0
- package/server/dist/public/index.html +439 -0
- package/server/dist/public/swagger/custom.css +11 -0
- package/server/dist/starter.d.ts +1 -0
- package/server/dist/starter.js +84 -0
- package/server/dist/starter.js.map +1 -0
- package/server/dist/tsconfig.build.tsbuildinfo +16764 -0
- package/server/dist/utils/date.util.d.ts +1 -0
- package/server/dist/utils/date.util.js +13 -0
- package/server/dist/utils/date.util.js.map +1 -0
- package/server/dist/utils/ip.util.d.ts +2 -0
- package/server/dist/utils/ip.util.js +27 -0
- package/server/dist/utils/ip.util.js.map +1 -0
- package/server/dist/utils/markdown.util.d.ts +4 -0
- package/server/dist/utils/markdown.util.js +42 -0
- package/server/dist/utils/markdown.util.js.map +1 -0
- package/server/dist/utils/oss/aliyun-oss-client.d.ts +6 -0
- package/server/dist/utils/oss/aliyun-oss-client.js +28 -0
- package/server/dist/utils/oss/aliyun-oss-client.js.map +1 -0
- package/server/dist/utils/oss/oss-client.d.ts +6 -0
- package/server/dist/utils/oss/oss-client.js +10 -0
- package/server/dist/utils/oss/oss-client.js.map +1 -0
- package/server/dist/utils/oss.util.d.ts +13 -0
- package/server/dist/utils/oss.util.js +48 -0
- package/server/dist/utils/oss.util.js.map +1 -0
- package/server/dist/utils/ua.util.d.ts +9 -0
- package/server/dist/utils/ua.util.js +36 -0
- package/server/dist/utils/ua.util.js.map +1 -0
- package/server/dist/utils/uniqueid.util.d.ts +1 -0
- package/server/dist/utils/uniqueid.util.js +9 -0
- package/server/dist/utils/uniqueid.util.js.map +1 -0
- package/server/dist/utils/upload.util.d.ts +5 -0
- package/server/dist/utils/upload.util.js +34 -0
- package/server/dist/utils/upload.util.js.map +1 -0
- package/server/dist/utils/user.util.d.ts +1 -0
- package/server/dist/utils/user.util.js +18 -0
- package/server/dist/utils/user.util.js.map +1 -0
- package/server/ecosystem.config.js +18 -0
- package/server/package.json +149 -0
- package/server/public/favicon.png +0 -0
- package/server/public/index.html +439 -0
- package/server/public/swagger/custom.css +11 -0
- package/templates/config.default.json +12 -0
- package/templates/docker-compose.yml +27 -0
- package/templates/env.default +11 -0
- package/templates/package.json +10 -0
- package/toolkit/dist/api/Article.d.ts +123 -0
- package/toolkit/dist/api/Article.js +188 -0
- package/toolkit/dist/api/Auth.d.ts +32 -0
- package/toolkit/dist/api/Auth.js +58 -0
- package/toolkit/dist/api/Category.d.ts +51 -0
- package/toolkit/dist/api/Category.js +84 -0
- package/toolkit/dist/api/Comment.d.ts +60 -0
- package/toolkit/dist/api/Comment.js +97 -0
- package/toolkit/dist/api/File.d.ts +42 -0
- package/toolkit/dist/api/File.js +71 -0
- package/toolkit/dist/api/HttpClient.d.ts +41 -0
- package/toolkit/dist/api/HttpClient.js +96 -0
- package/toolkit/dist/api/Knowledge.d.ts +78 -0
- package/toolkit/dist/api/Knowledge.js +123 -0
- package/toolkit/dist/api/Page.d.ts +60 -0
- package/toolkit/dist/api/Page.js +97 -0
- package/toolkit/dist/api/Search.d.ts +32 -0
- package/toolkit/dist/api/Search.js +58 -0
- package/toolkit/dist/api/Setting.d.ts +24 -0
- package/toolkit/dist/api/Setting.js +45 -0
- package/toolkit/dist/api/Smtp.d.ts +33 -0
- package/toolkit/dist/api/Smtp.js +58 -0
- package/toolkit/dist/api/Tag.d.ts +60 -0
- package/toolkit/dist/api/Tag.js +97 -0
- package/toolkit/dist/api/User.d.ts +43 -0
- package/toolkit/dist/api/User.js +72 -0
- package/toolkit/dist/api/View.d.ts +51 -0
- package/toolkit/dist/api/View.js +84 -0
- package/toolkit/dist/api/index.d.ts +13 -0
- package/toolkit/dist/api/index.js +30 -0
- package/toolkit/dist/api/instance.d.ts +47 -0
- package/toolkit/dist/api/instance.js +71 -0
- package/toolkit/dist/config/env.d.ts +1 -0
- package/toolkit/dist/config/env.js +89 -0
- package/toolkit/dist/config/global.d.ts +34 -0
- package/toolkit/dist/config/global.js +382 -0
- package/toolkit/dist/config/i18n.d.ts +4 -0
- package/toolkit/dist/config/i18n.js +43 -0
- package/toolkit/dist/config/index.d.ts +15 -0
- package/toolkit/dist/config/index.js +25 -0
- package/toolkit/dist/index.d.ts +11 -0
- package/toolkit/dist/index.js +38 -0
- package/toolkit/dist/locales/en.json +97 -0
- package/toolkit/dist/locales/zh.json +97 -0
- package/toolkit/dist/types/index.d.ts +245 -0
- package/toolkit/dist/types/index.js +12 -0
- package/toolkit/dist/utils/index.d.ts +33 -0
- package/toolkit/dist/utils/index.js +59 -0
- package/toolkit/package.json +19 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ISmtpControllerCreateData } from '../types';
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
+
export declare class Smtp<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* No description
|
|
8
|
+
*
|
|
9
|
+
* @tags Smtp
|
|
10
|
+
* @name SmtpControllerCreate
|
|
11
|
+
* @request POST:/smtp
|
|
12
|
+
* @response `200` `ISmtpControllerCreateData` 发送邮件
|
|
13
|
+
*/
|
|
14
|
+
create: (params?: RequestParams) => Promise<ISmtpControllerCreateData>;
|
|
15
|
+
/**
|
|
16
|
+
* No description
|
|
17
|
+
*
|
|
18
|
+
* @tags Smtp
|
|
19
|
+
* @name SmtpControllerFindAll
|
|
20
|
+
* @request GET:/smtp
|
|
21
|
+
* @response `200` `ISmtpControllerFindAllData`
|
|
22
|
+
*/
|
|
23
|
+
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* No description
|
|
26
|
+
*
|
|
27
|
+
* @tags Smtp
|
|
28
|
+
* @name SmtpControllerDeleteById
|
|
29
|
+
* @request DELETE:/smtp/{id}
|
|
30
|
+
* @response `200` `ISmtpControllerDeleteByIdData`
|
|
31
|
+
*/
|
|
32
|
+
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Smtp = void 0;
|
|
14
|
+
class Smtp {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags Smtp
|
|
20
|
+
* @name SmtpControllerCreate
|
|
21
|
+
* @request POST:/smtp
|
|
22
|
+
* @response `200` `ISmtpControllerCreateData` 发送邮件
|
|
23
|
+
*/
|
|
24
|
+
this.create = (params = {}) => this.http.request({
|
|
25
|
+
path: `/smtp`,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
...params,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* No description
|
|
31
|
+
*
|
|
32
|
+
* @tags Smtp
|
|
33
|
+
* @name SmtpControllerFindAll
|
|
34
|
+
* @request GET:/smtp
|
|
35
|
+
* @response `200` `ISmtpControllerFindAllData`
|
|
36
|
+
*/
|
|
37
|
+
this.findAll = (params = {}) => this.http.request({
|
|
38
|
+
path: `/smtp`,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
...params,
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Smtp
|
|
46
|
+
* @name SmtpControllerDeleteById
|
|
47
|
+
* @request DELETE:/smtp/{id}
|
|
48
|
+
* @response `200` `ISmtpControllerDeleteByIdData`
|
|
49
|
+
*/
|
|
50
|
+
this.deleteById = (id, params = {}) => this.http.request({
|
|
51
|
+
path: `/smtp/${id}`,
|
|
52
|
+
method: 'DELETE',
|
|
53
|
+
...params,
|
|
54
|
+
});
|
|
55
|
+
this.http = http;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.Smtp = Smtp;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ITagControllerCreateData } from '../types';
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
+
export declare class Tag<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* No description
|
|
8
|
+
*
|
|
9
|
+
* @tags Tag
|
|
10
|
+
* @name TagControllerCreate
|
|
11
|
+
* @request POST:/tag
|
|
12
|
+
* @response `200` `ITagControllerCreateData` 创建标签
|
|
13
|
+
*/
|
|
14
|
+
create: (params?: RequestParams) => Promise<ITagControllerCreateData>;
|
|
15
|
+
/**
|
|
16
|
+
* No description
|
|
17
|
+
*
|
|
18
|
+
* @tags Tag
|
|
19
|
+
* @name TagControllerFindAll
|
|
20
|
+
* @request GET:/tag
|
|
21
|
+
* @response `200` `ITagControllerFindAllData`
|
|
22
|
+
*/
|
|
23
|
+
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* No description
|
|
26
|
+
*
|
|
27
|
+
* @tags Tag
|
|
28
|
+
* @name TagControllerFindById
|
|
29
|
+
* @request GET:/tag/{id}
|
|
30
|
+
* @response `200` `ITagControllerFindByIdData`
|
|
31
|
+
*/
|
|
32
|
+
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* No description
|
|
35
|
+
*
|
|
36
|
+
* @tags Tag
|
|
37
|
+
* @name TagControllerUpdateById
|
|
38
|
+
* @request PATCH:/tag/{id}
|
|
39
|
+
* @response `200` `ITagControllerUpdateByIdData`
|
|
40
|
+
*/
|
|
41
|
+
updateById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Tag
|
|
46
|
+
* @name TagControllerDeleteById
|
|
47
|
+
* @request DELETE:/tag/{id}
|
|
48
|
+
* @response `200` `ITagControllerDeleteByIdData`
|
|
49
|
+
*/
|
|
50
|
+
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* No description
|
|
53
|
+
*
|
|
54
|
+
* @tags Tag
|
|
55
|
+
* @name TagControllerGetArticleById
|
|
56
|
+
* @request GET:/tag/{id}/article
|
|
57
|
+
* @response `200` `ITagControllerGetArticleByIdData`
|
|
58
|
+
*/
|
|
59
|
+
getArticleById: (id: string, params?: RequestParams) => Promise<any>;
|
|
60
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.Tag = void 0;
|
|
14
|
+
class Tag {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags Tag
|
|
20
|
+
* @name TagControllerCreate
|
|
21
|
+
* @request POST:/tag
|
|
22
|
+
* @response `200` `ITagControllerCreateData` 创建标签
|
|
23
|
+
*/
|
|
24
|
+
this.create = (params = {}) => this.http.request({
|
|
25
|
+
path: `/tag`,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
...params,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* No description
|
|
31
|
+
*
|
|
32
|
+
* @tags Tag
|
|
33
|
+
* @name TagControllerFindAll
|
|
34
|
+
* @request GET:/tag
|
|
35
|
+
* @response `200` `ITagControllerFindAllData`
|
|
36
|
+
*/
|
|
37
|
+
this.findAll = (params = {}) => this.http.request({
|
|
38
|
+
path: `/tag`,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
...params,
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Tag
|
|
46
|
+
* @name TagControllerFindById
|
|
47
|
+
* @request GET:/tag/{id}
|
|
48
|
+
* @response `200` `ITagControllerFindByIdData`
|
|
49
|
+
*/
|
|
50
|
+
this.findById = (id, params = {}) => this.http.request({
|
|
51
|
+
path: `/tag/${id}`,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
...params,
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* No description
|
|
57
|
+
*
|
|
58
|
+
* @tags Tag
|
|
59
|
+
* @name TagControllerUpdateById
|
|
60
|
+
* @request PATCH:/tag/{id}
|
|
61
|
+
* @response `200` `ITagControllerUpdateByIdData`
|
|
62
|
+
*/
|
|
63
|
+
this.updateById = (id, params = {}) => this.http.request({
|
|
64
|
+
path: `/tag/${id}`,
|
|
65
|
+
method: 'PATCH',
|
|
66
|
+
...params,
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* No description
|
|
70
|
+
*
|
|
71
|
+
* @tags Tag
|
|
72
|
+
* @name TagControllerDeleteById
|
|
73
|
+
* @request DELETE:/tag/{id}
|
|
74
|
+
* @response `200` `ITagControllerDeleteByIdData`
|
|
75
|
+
*/
|
|
76
|
+
this.deleteById = (id, params = {}) => this.http.request({
|
|
77
|
+
path: `/tag/${id}`,
|
|
78
|
+
method: 'DELETE',
|
|
79
|
+
...params,
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* No description
|
|
83
|
+
*
|
|
84
|
+
* @tags Tag
|
|
85
|
+
* @name TagControllerGetArticleById
|
|
86
|
+
* @request GET:/tag/{id}/article
|
|
87
|
+
* @response `200` `ITagControllerGetArticleByIdData`
|
|
88
|
+
*/
|
|
89
|
+
this.getArticleById = (id, params = {}) => this.http.request({
|
|
90
|
+
path: `/tag/${id}/article`,
|
|
91
|
+
method: 'GET',
|
|
92
|
+
...params,
|
|
93
|
+
});
|
|
94
|
+
this.http = http;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.Tag = Tag;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IUserControllerFindAllData, IUserControllerRegisterData, IUserControllerUpdateData, IUserControllerUpdatePasswordData } from '../types';
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
+
export declare class User<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* No description
|
|
8
|
+
*
|
|
9
|
+
* @tags User
|
|
10
|
+
* @name UserControllerFindAll
|
|
11
|
+
* @request GET:/user
|
|
12
|
+
* @response `200` `IUserControllerFindAllData` 获取用户列表
|
|
13
|
+
* @response `403` `void` 无权获取用户列表
|
|
14
|
+
*/
|
|
15
|
+
findAll: (params?: RequestParams) => Promise<IUserControllerFindAllData>;
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags User
|
|
20
|
+
* @name UserControllerRegister
|
|
21
|
+
* @request POST:/user/register
|
|
22
|
+
* @response `201` `IUserControllerRegisterData` 创建用户
|
|
23
|
+
*/
|
|
24
|
+
register: (params?: RequestParams) => Promise<IUserControllerRegisterData>;
|
|
25
|
+
/**
|
|
26
|
+
* No description
|
|
27
|
+
*
|
|
28
|
+
* @tags User
|
|
29
|
+
* @name UserControllerUpdate
|
|
30
|
+
* @request POST:/user/update
|
|
31
|
+
* @response `200` `IUserControllerUpdateData` 更新用户成功
|
|
32
|
+
*/
|
|
33
|
+
update: (params?: RequestParams) => Promise<IUserControllerUpdateData>;
|
|
34
|
+
/**
|
|
35
|
+
* No description
|
|
36
|
+
*
|
|
37
|
+
* @tags User
|
|
38
|
+
* @name UserControllerUpdatePassword
|
|
39
|
+
* @request POST:/user/password
|
|
40
|
+
* @response `201` `IUserControllerUpdatePasswordData` 更新密码成功
|
|
41
|
+
*/
|
|
42
|
+
updatePassword: (params?: RequestParams) => Promise<IUserControllerUpdatePasswordData>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.User = void 0;
|
|
14
|
+
class User {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags User
|
|
20
|
+
* @name UserControllerFindAll
|
|
21
|
+
* @request GET:/user
|
|
22
|
+
* @response `200` `IUserControllerFindAllData` 获取用户列表
|
|
23
|
+
* @response `403` `void` 无权获取用户列表
|
|
24
|
+
*/
|
|
25
|
+
this.findAll = (params = {}) => this.http.request({
|
|
26
|
+
path: `/user`,
|
|
27
|
+
method: 'GET',
|
|
28
|
+
...params,
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* No description
|
|
32
|
+
*
|
|
33
|
+
* @tags User
|
|
34
|
+
* @name UserControllerRegister
|
|
35
|
+
* @request POST:/user/register
|
|
36
|
+
* @response `201` `IUserControllerRegisterData` 创建用户
|
|
37
|
+
*/
|
|
38
|
+
this.register = (params = {}) => this.http.request({
|
|
39
|
+
path: `/user/register`,
|
|
40
|
+
method: 'POST',
|
|
41
|
+
...params,
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* No description
|
|
45
|
+
*
|
|
46
|
+
* @tags User
|
|
47
|
+
* @name UserControllerUpdate
|
|
48
|
+
* @request POST:/user/update
|
|
49
|
+
* @response `200` `IUserControllerUpdateData` 更新用户成功
|
|
50
|
+
*/
|
|
51
|
+
this.update = (params = {}) => this.http.request({
|
|
52
|
+
path: `/user/update`,
|
|
53
|
+
method: 'POST',
|
|
54
|
+
...params,
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* No description
|
|
58
|
+
*
|
|
59
|
+
* @tags User
|
|
60
|
+
* @name UserControllerUpdatePassword
|
|
61
|
+
* @request POST:/user/password
|
|
62
|
+
* @response `201` `IUserControllerUpdatePasswordData` 更新密码成功
|
|
63
|
+
*/
|
|
64
|
+
this.updatePassword = (params = {}) => this.http.request({
|
|
65
|
+
path: `/user/password`,
|
|
66
|
+
method: 'POST',
|
|
67
|
+
...params,
|
|
68
|
+
});
|
|
69
|
+
this.http = http;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.User = User;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { IViewControllerCreateData } from '../types';
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
+
export declare class View<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* No description
|
|
8
|
+
*
|
|
9
|
+
* @tags View
|
|
10
|
+
* @name ViewControllerCreate
|
|
11
|
+
* @request POST:/view
|
|
12
|
+
* @response `200` `IViewControllerCreateData` 访问记录添加成功
|
|
13
|
+
*/
|
|
14
|
+
create: (params?: RequestParams) => Promise<IViewControllerCreateData>;
|
|
15
|
+
/**
|
|
16
|
+
* No description
|
|
17
|
+
*
|
|
18
|
+
* @tags View
|
|
19
|
+
* @name ViewControllerFindAll
|
|
20
|
+
* @request GET:/view
|
|
21
|
+
* @response `200` `IViewControllerFindAllData`
|
|
22
|
+
*/
|
|
23
|
+
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* No description
|
|
26
|
+
*
|
|
27
|
+
* @tags View
|
|
28
|
+
* @name ViewControllerFindByUrl
|
|
29
|
+
* @request GET:/view/url
|
|
30
|
+
* @response `200` `IViewControllerFindByUrlData`
|
|
31
|
+
*/
|
|
32
|
+
findByUrl: (params?: RequestParams) => Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* No description
|
|
35
|
+
*
|
|
36
|
+
* @tags View
|
|
37
|
+
* @name ViewControllerFindById
|
|
38
|
+
* @request GET:/view/{id}
|
|
39
|
+
* @response `200` `IViewControllerFindByIdData`
|
|
40
|
+
*/
|
|
41
|
+
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags View
|
|
46
|
+
* @name ViewControllerDeleteById
|
|
47
|
+
* @request DELETE:/view/{id}
|
|
48
|
+
* @response `200` `IViewControllerDeleteByIdData`
|
|
49
|
+
*/
|
|
50
|
+
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.View = void 0;
|
|
14
|
+
class View {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags View
|
|
20
|
+
* @name ViewControllerCreate
|
|
21
|
+
* @request POST:/view
|
|
22
|
+
* @response `200` `IViewControllerCreateData` 访问记录添加成功
|
|
23
|
+
*/
|
|
24
|
+
this.create = (params = {}) => this.http.request({
|
|
25
|
+
path: `/view`,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
...params,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* No description
|
|
31
|
+
*
|
|
32
|
+
* @tags View
|
|
33
|
+
* @name ViewControllerFindAll
|
|
34
|
+
* @request GET:/view
|
|
35
|
+
* @response `200` `IViewControllerFindAllData`
|
|
36
|
+
*/
|
|
37
|
+
this.findAll = (params = {}) => this.http.request({
|
|
38
|
+
path: `/view`,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
...params,
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags View
|
|
46
|
+
* @name ViewControllerFindByUrl
|
|
47
|
+
* @request GET:/view/url
|
|
48
|
+
* @response `200` `IViewControllerFindByUrlData`
|
|
49
|
+
*/
|
|
50
|
+
this.findByUrl = (params = {}) => this.http.request({
|
|
51
|
+
path: `/view/url`,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
...params,
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* No description
|
|
57
|
+
*
|
|
58
|
+
* @tags View
|
|
59
|
+
* @name ViewControllerFindById
|
|
60
|
+
* @request GET:/view/{id}
|
|
61
|
+
* @response `200` `IViewControllerFindByIdData`
|
|
62
|
+
*/
|
|
63
|
+
this.findById = (id, params = {}) => this.http.request({
|
|
64
|
+
path: `/view/${id}`,
|
|
65
|
+
method: 'GET',
|
|
66
|
+
...params,
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* No description
|
|
70
|
+
*
|
|
71
|
+
* @tags View
|
|
72
|
+
* @name ViewControllerDeleteById
|
|
73
|
+
* @request DELETE:/view/{id}
|
|
74
|
+
* @response `200` `IViewControllerDeleteByIdData`
|
|
75
|
+
*/
|
|
76
|
+
this.deleteById = (id, params = {}) => this.http.request({
|
|
77
|
+
path: `/view/${id}`,
|
|
78
|
+
method: 'DELETE',
|
|
79
|
+
...params,
|
|
80
|
+
});
|
|
81
|
+
this.http = http;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.View = View;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { Article } from './Article';
|
|
2
|
+
export { Auth } from './Auth';
|
|
3
|
+
export { Category } from './Category';
|
|
4
|
+
export { Comment } from './Comment';
|
|
5
|
+
export { File } from './File';
|
|
6
|
+
export { Knowledge } from './Knowledge';
|
|
7
|
+
export { Page } from './Page';
|
|
8
|
+
export { Search } from './Search';
|
|
9
|
+
export { Setting } from './Setting';
|
|
10
|
+
export { Smtp } from './Smtp';
|
|
11
|
+
export { Tag } from './Tag';
|
|
12
|
+
export { User } from './User';
|
|
13
|
+
export { View } from './View';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Auto-generated API module index
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.View = exports.User = exports.Tag = exports.Smtp = exports.Setting = exports.Search = exports.Page = exports.Knowledge = exports.File = exports.Comment = exports.Category = exports.Auth = exports.Article = void 0;
|
|
5
|
+
var Article_1 = require("./Article");
|
|
6
|
+
Object.defineProperty(exports, "Article", { enumerable: true, get: function () { return Article_1.Article; } });
|
|
7
|
+
var Auth_1 = require("./Auth");
|
|
8
|
+
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return Auth_1.Auth; } });
|
|
9
|
+
var Category_1 = require("./Category");
|
|
10
|
+
Object.defineProperty(exports, "Category", { enumerable: true, get: function () { return Category_1.Category; } });
|
|
11
|
+
var Comment_1 = require("./Comment");
|
|
12
|
+
Object.defineProperty(exports, "Comment", { enumerable: true, get: function () { return Comment_1.Comment; } });
|
|
13
|
+
var File_1 = require("./File");
|
|
14
|
+
Object.defineProperty(exports, "File", { enumerable: true, get: function () { return File_1.File; } });
|
|
15
|
+
var Knowledge_1 = require("./Knowledge");
|
|
16
|
+
Object.defineProperty(exports, "Knowledge", { enumerable: true, get: function () { return Knowledge_1.Knowledge; } });
|
|
17
|
+
var Page_1 = require("./Page");
|
|
18
|
+
Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
|
|
19
|
+
var Search_1 = require("./Search");
|
|
20
|
+
Object.defineProperty(exports, "Search", { enumerable: true, get: function () { return Search_1.Search; } });
|
|
21
|
+
var Setting_1 = require("./Setting");
|
|
22
|
+
Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return Setting_1.Setting; } });
|
|
23
|
+
var Smtp_1 = require("./Smtp");
|
|
24
|
+
Object.defineProperty(exports, "Smtp", { enumerable: true, get: function () { return Smtp_1.Smtp; } });
|
|
25
|
+
var Tag_1 = require("./Tag");
|
|
26
|
+
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.Tag; } });
|
|
27
|
+
var User_1 = require("./User");
|
|
28
|
+
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return User_1.User; } });
|
|
29
|
+
var View_1 = require("./View");
|
|
30
|
+
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.View; } });
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { HttpClient } from './HttpClient';
|
|
2
|
+
import { Article } from './Article';
|
|
3
|
+
import { Auth } from './Auth';
|
|
4
|
+
import { Category } from './Category';
|
|
5
|
+
import { Comment } from './Comment';
|
|
6
|
+
import { File } from './File';
|
|
7
|
+
import { Knowledge } from './Knowledge';
|
|
8
|
+
import { Page } from './Page';
|
|
9
|
+
import { Search } from './Search';
|
|
10
|
+
import { Setting } from './Setting';
|
|
11
|
+
import { Smtp } from './Smtp';
|
|
12
|
+
import { Tag } from './Tag';
|
|
13
|
+
import { User } from './User';
|
|
14
|
+
import { View } from './View';
|
|
15
|
+
export declare const http: HttpClient<unknown>;
|
|
16
|
+
export declare const api: {
|
|
17
|
+
article: Article<unknown>;
|
|
18
|
+
auth: Auth<unknown>;
|
|
19
|
+
category: Category<unknown>;
|
|
20
|
+
comment: Comment<unknown>;
|
|
21
|
+
file: File<unknown>;
|
|
22
|
+
knowledge: Knowledge<unknown>;
|
|
23
|
+
page: Page<unknown>;
|
|
24
|
+
search: Search<unknown>;
|
|
25
|
+
setting: Setting<unknown>;
|
|
26
|
+
smtp: Smtp<unknown>;
|
|
27
|
+
tag: Tag<unknown>;
|
|
28
|
+
user: User<unknown>;
|
|
29
|
+
view: View<unknown>;
|
|
30
|
+
};
|
|
31
|
+
export declare function createApiInstance(config: any): {
|
|
32
|
+
article: Article<unknown>;
|
|
33
|
+
auth: Auth<unknown>;
|
|
34
|
+
category: Category<unknown>;
|
|
35
|
+
comment: Comment<unknown>;
|
|
36
|
+
file: File<unknown>;
|
|
37
|
+
knowledge: Knowledge<unknown>;
|
|
38
|
+
page: Page<unknown>;
|
|
39
|
+
search: Search<unknown>;
|
|
40
|
+
setting: Setting<unknown>;
|
|
41
|
+
smtp: Smtp<unknown>;
|
|
42
|
+
tag: Tag<unknown>;
|
|
43
|
+
user: User<unknown>;
|
|
44
|
+
view: View<unknown>;
|
|
45
|
+
};
|
|
46
|
+
export default api;
|
|
47
|
+
export { Article, Auth, Category, Comment, File, Knowledge, Page, Search, Setting, Smtp, Tag, User, View, };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.View = exports.User = exports.Tag = exports.Smtp = exports.Setting = exports.Search = exports.Page = exports.Knowledge = exports.File = exports.Comment = exports.Category = exports.Auth = exports.Article = exports.createApiInstance = exports.api = exports.http = void 0;
|
|
4
|
+
const HttpClient_1 = require("./HttpClient");
|
|
5
|
+
// Auto-generated API instance
|
|
6
|
+
const Article_1 = require("./Article");
|
|
7
|
+
Object.defineProperty(exports, "Article", { enumerable: true, get: function () { return Article_1.Article; } });
|
|
8
|
+
const Auth_1 = require("./Auth");
|
|
9
|
+
Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return Auth_1.Auth; } });
|
|
10
|
+
const Category_1 = require("./Category");
|
|
11
|
+
Object.defineProperty(exports, "Category", { enumerable: true, get: function () { return Category_1.Category; } });
|
|
12
|
+
const Comment_1 = require("./Comment");
|
|
13
|
+
Object.defineProperty(exports, "Comment", { enumerable: true, get: function () { return Comment_1.Comment; } });
|
|
14
|
+
const File_1 = require("./File");
|
|
15
|
+
Object.defineProperty(exports, "File", { enumerable: true, get: function () { return File_1.File; } });
|
|
16
|
+
const Knowledge_1 = require("./Knowledge");
|
|
17
|
+
Object.defineProperty(exports, "Knowledge", { enumerable: true, get: function () { return Knowledge_1.Knowledge; } });
|
|
18
|
+
const Page_1 = require("./Page");
|
|
19
|
+
Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
|
|
20
|
+
const Search_1 = require("./Search");
|
|
21
|
+
Object.defineProperty(exports, "Search", { enumerable: true, get: function () { return Search_1.Search; } });
|
|
22
|
+
const Setting_1 = require("./Setting");
|
|
23
|
+
Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return Setting_1.Setting; } });
|
|
24
|
+
const Smtp_1 = require("./Smtp");
|
|
25
|
+
Object.defineProperty(exports, "Smtp", { enumerable: true, get: function () { return Smtp_1.Smtp; } });
|
|
26
|
+
const Tag_1 = require("./Tag");
|
|
27
|
+
Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.Tag; } });
|
|
28
|
+
const User_1 = require("./User");
|
|
29
|
+
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return User_1.User; } });
|
|
30
|
+
const View_1 = require("./View");
|
|
31
|
+
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.View; } });
|
|
32
|
+
// Create default HTTP client
|
|
33
|
+
exports.http = new HttpClient_1.HttpClient();
|
|
34
|
+
// Create API instance with all modules
|
|
35
|
+
exports.api = {
|
|
36
|
+
article: new Article_1.Article(exports.http),
|
|
37
|
+
auth: new Auth_1.Auth(exports.http),
|
|
38
|
+
category: new Category_1.Category(exports.http),
|
|
39
|
+
comment: new Comment_1.Comment(exports.http),
|
|
40
|
+
file: new File_1.File(exports.http),
|
|
41
|
+
knowledge: new Knowledge_1.Knowledge(exports.http),
|
|
42
|
+
page: new Page_1.Page(exports.http),
|
|
43
|
+
search: new Search_1.Search(exports.http),
|
|
44
|
+
setting: new Setting_1.Setting(exports.http),
|
|
45
|
+
smtp: new Smtp_1.Smtp(exports.http),
|
|
46
|
+
tag: new Tag_1.Tag(exports.http),
|
|
47
|
+
user: new User_1.User(exports.http),
|
|
48
|
+
view: new View_1.View(exports.http),
|
|
49
|
+
};
|
|
50
|
+
// Create custom API instance function
|
|
51
|
+
function createApiInstance(config) {
|
|
52
|
+
const customHttp = new HttpClient_1.HttpClient(config);
|
|
53
|
+
return {
|
|
54
|
+
article: new Article_1.Article(customHttp),
|
|
55
|
+
auth: new Auth_1.Auth(customHttp),
|
|
56
|
+
category: new Category_1.Category(customHttp),
|
|
57
|
+
comment: new Comment_1.Comment(customHttp),
|
|
58
|
+
file: new File_1.File(customHttp),
|
|
59
|
+
knowledge: new Knowledge_1.Knowledge(customHttp),
|
|
60
|
+
page: new Page_1.Page(customHttp),
|
|
61
|
+
search: new Search_1.Search(customHttp),
|
|
62
|
+
setting: new Setting_1.Setting(customHttp),
|
|
63
|
+
smtp: new Smtp_1.Smtp(customHttp),
|
|
64
|
+
tag: new Tag_1.Tag(customHttp),
|
|
65
|
+
user: new User_1.User(customHttp),
|
|
66
|
+
view: new View_1.View(customHttp),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
exports.createApiInstance = createApiInstance;
|
|
70
|
+
// Export default API instance
|
|
71
|
+
exports.default = exports.api;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const file: string, config: Record<string, string>;
|