@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,188 @@
|
|
|
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.Article = void 0;
|
|
14
|
+
class Article {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags Article
|
|
20
|
+
* @name ArticleControllerCreate
|
|
21
|
+
* @request POST:/article
|
|
22
|
+
* @response `200` `IArticleControllerCreateData` 创建文章
|
|
23
|
+
*/
|
|
24
|
+
this.create = (params = {}) => this.http.request({
|
|
25
|
+
path: `/article`,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
...params,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* No description
|
|
31
|
+
*
|
|
32
|
+
* @tags Article
|
|
33
|
+
* @name ArticleControllerFindAll
|
|
34
|
+
* @request GET:/article
|
|
35
|
+
* @response `200` `IArticleControllerFindAllData`
|
|
36
|
+
*/
|
|
37
|
+
this.findAll = (params = {}) => this.http.request({
|
|
38
|
+
path: `/article`,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
...params,
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Article
|
|
46
|
+
* @name ArticleControllerFindArticlesByCategory
|
|
47
|
+
* @request GET:/article/category/{id}
|
|
48
|
+
* @response `200` `IArticleControllerFindArticlesByCategoryData`
|
|
49
|
+
*/
|
|
50
|
+
this.findArticlesByCategory = (id, params = {}) => this.http.request({
|
|
51
|
+
path: `/article/category/${id}`,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
...params,
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* No description
|
|
57
|
+
*
|
|
58
|
+
* @tags Article
|
|
59
|
+
* @name ArticleControllerFindArticlesByTag
|
|
60
|
+
* @request GET:/article/tag/{id}
|
|
61
|
+
* @response `200` `IArticleControllerFindArticlesByTagData`
|
|
62
|
+
*/
|
|
63
|
+
this.findArticlesByTag = (id, params = {}) => this.http.request({
|
|
64
|
+
path: `/article/tag/${id}`,
|
|
65
|
+
method: 'GET',
|
|
66
|
+
...params,
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* No description
|
|
70
|
+
*
|
|
71
|
+
* @tags Article
|
|
72
|
+
* @name ArticleControllerGetRecommendArticles
|
|
73
|
+
* @request GET:/article/all/recommend
|
|
74
|
+
* @response `200` `IArticleControllerGetRecommendArticlesData`
|
|
75
|
+
*/
|
|
76
|
+
this.getRecommendArticles = (params = {}) => this.http.request({
|
|
77
|
+
path: `/article/all/recommend`,
|
|
78
|
+
method: 'GET',
|
|
79
|
+
...params,
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* No description
|
|
83
|
+
*
|
|
84
|
+
* @tags Article
|
|
85
|
+
* @name ArticleControllerGetArchives
|
|
86
|
+
* @request GET:/article/archives
|
|
87
|
+
* @response `200` `IArticleControllerGetArchivesData`
|
|
88
|
+
*/
|
|
89
|
+
this.getArchives = (params = {}) => this.http.request({
|
|
90
|
+
path: `/article/archives`,
|
|
91
|
+
method: 'GET',
|
|
92
|
+
...params,
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* No description
|
|
96
|
+
*
|
|
97
|
+
* @tags Article
|
|
98
|
+
* @name ArticleControllerRecommend
|
|
99
|
+
* @request GET:/article/recommend
|
|
100
|
+
* @response `200` `IArticleControllerRecommendData`
|
|
101
|
+
*/
|
|
102
|
+
this.recommend = (params = {}) => this.http.request({
|
|
103
|
+
path: `/article/recommend`,
|
|
104
|
+
method: 'GET',
|
|
105
|
+
...params,
|
|
106
|
+
});
|
|
107
|
+
/**
|
|
108
|
+
* No description
|
|
109
|
+
*
|
|
110
|
+
* @tags Article
|
|
111
|
+
* @name ArticleControllerFindById
|
|
112
|
+
* @request GET:/article/{id}
|
|
113
|
+
* @response `200` `IArticleControllerFindByIdData`
|
|
114
|
+
*/
|
|
115
|
+
this.findById = (id, params = {}) => this.http.request({
|
|
116
|
+
path: `/article/${id}`,
|
|
117
|
+
method: 'GET',
|
|
118
|
+
...params,
|
|
119
|
+
});
|
|
120
|
+
/**
|
|
121
|
+
* No description
|
|
122
|
+
*
|
|
123
|
+
* @tags Article
|
|
124
|
+
* @name ArticleControllerUpdateById
|
|
125
|
+
* @request PATCH:/article/{id}
|
|
126
|
+
* @response `200` `IArticleControllerUpdateByIdData`
|
|
127
|
+
*/
|
|
128
|
+
this.updateById = (id, params = {}) => this.http.request({
|
|
129
|
+
path: `/article/${id}`,
|
|
130
|
+
method: 'PATCH',
|
|
131
|
+
...params,
|
|
132
|
+
});
|
|
133
|
+
/**
|
|
134
|
+
* No description
|
|
135
|
+
*
|
|
136
|
+
* @tags Article
|
|
137
|
+
* @name ArticleControllerDeleteById
|
|
138
|
+
* @request DELETE:/article/{id}
|
|
139
|
+
* @response `200` `IArticleControllerDeleteByIdData`
|
|
140
|
+
*/
|
|
141
|
+
this.deleteById = (id, params = {}) => this.http.request({
|
|
142
|
+
path: `/article/${id}`,
|
|
143
|
+
method: 'DELETE',
|
|
144
|
+
...params,
|
|
145
|
+
});
|
|
146
|
+
/**
|
|
147
|
+
* No description
|
|
148
|
+
*
|
|
149
|
+
* @tags Article
|
|
150
|
+
* @name ArticleControllerCheckPassword
|
|
151
|
+
* @request POST:/article/{id}/checkPassword
|
|
152
|
+
* @response `200` `IArticleControllerCheckPasswordData`
|
|
153
|
+
*/
|
|
154
|
+
this.checkPassword = (id, params = {}) => this.http.request({
|
|
155
|
+
path: `/article/${id}/checkPassword`,
|
|
156
|
+
method: 'POST',
|
|
157
|
+
...params,
|
|
158
|
+
});
|
|
159
|
+
/**
|
|
160
|
+
* No description
|
|
161
|
+
*
|
|
162
|
+
* @tags Article
|
|
163
|
+
* @name ArticleControllerUpdateViewsById
|
|
164
|
+
* @request POST:/article/{id}/views
|
|
165
|
+
* @response `200` `IArticleControllerUpdateViewsByIdData`
|
|
166
|
+
*/
|
|
167
|
+
this.updateViewsById = (id, params = {}) => this.http.request({
|
|
168
|
+
path: `/article/${id}/views`,
|
|
169
|
+
method: 'POST',
|
|
170
|
+
...params,
|
|
171
|
+
});
|
|
172
|
+
/**
|
|
173
|
+
* No description
|
|
174
|
+
*
|
|
175
|
+
* @tags Article
|
|
176
|
+
* @name ArticleControllerUpdateLikesById
|
|
177
|
+
* @request POST:/article/{id}/likes
|
|
178
|
+
* @response `200` `IArticleControllerUpdateLikesByIdData`
|
|
179
|
+
*/
|
|
180
|
+
this.updateLikesById = (id, params = {}) => this.http.request({
|
|
181
|
+
path: `/article/${id}/likes`,
|
|
182
|
+
method: 'POST',
|
|
183
|
+
...params,
|
|
184
|
+
});
|
|
185
|
+
this.http = http;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
exports.Article = Article;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
2
|
+
export declare class Auth<SecurityDataType = unknown> {
|
|
3
|
+
http: HttpClient<SecurityDataType>;
|
|
4
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
+
/**
|
|
6
|
+
* No description
|
|
7
|
+
*
|
|
8
|
+
* @tags Auth
|
|
9
|
+
* @name AuthControllerLogin
|
|
10
|
+
* @request POST:/auth/login
|
|
11
|
+
* @response `200` `IAuthControllerLoginData`
|
|
12
|
+
*/
|
|
13
|
+
login: (params?: RequestParams) => Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* No description
|
|
16
|
+
*
|
|
17
|
+
* @tags Auth
|
|
18
|
+
* @name AuthControllerCreateBook
|
|
19
|
+
* @request POST:/auth/admin
|
|
20
|
+
* @response `201` `IAuthControllerCreateBookData`
|
|
21
|
+
*/
|
|
22
|
+
createBook: (params?: RequestParams) => Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* No description
|
|
25
|
+
*
|
|
26
|
+
* @tags Auth
|
|
27
|
+
* @name AuthControllerLoginWithGithub
|
|
28
|
+
* @request POST:/auth/github
|
|
29
|
+
* @response `201` `IAuthControllerLoginWithGithubData`
|
|
30
|
+
*/
|
|
31
|
+
loginWithGithub: (params?: RequestParams) => Promise<any>;
|
|
32
|
+
}
|
|
@@ -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.Auth = void 0;
|
|
14
|
+
class Auth {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags Auth
|
|
20
|
+
* @name AuthControllerLogin
|
|
21
|
+
* @request POST:/auth/login
|
|
22
|
+
* @response `200` `IAuthControllerLoginData`
|
|
23
|
+
*/
|
|
24
|
+
this.login = (params = {}) => this.http.request({
|
|
25
|
+
path: `/auth/login`,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
...params,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* No description
|
|
31
|
+
*
|
|
32
|
+
* @tags Auth
|
|
33
|
+
* @name AuthControllerCreateBook
|
|
34
|
+
* @request POST:/auth/admin
|
|
35
|
+
* @response `201` `IAuthControllerCreateBookData`
|
|
36
|
+
*/
|
|
37
|
+
this.createBook = (params = {}) => this.http.request({
|
|
38
|
+
path: `/auth/admin`,
|
|
39
|
+
method: 'POST',
|
|
40
|
+
...params,
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Auth
|
|
46
|
+
* @name AuthControllerLoginWithGithub
|
|
47
|
+
* @request POST:/auth/github
|
|
48
|
+
* @response `201` `IAuthControllerLoginWithGithubData`
|
|
49
|
+
*/
|
|
50
|
+
this.loginWithGithub = (params = {}) => this.http.request({
|
|
51
|
+
path: `/auth/github`,
|
|
52
|
+
method: 'POST',
|
|
53
|
+
...params,
|
|
54
|
+
});
|
|
55
|
+
this.http = http;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.Auth = Auth;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ICategoryControllerCreateData } from '../types';
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
+
export declare class Category<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* No description
|
|
8
|
+
*
|
|
9
|
+
* @tags Category
|
|
10
|
+
* @name CategoryControllerCreate
|
|
11
|
+
* @request POST:/category
|
|
12
|
+
* @response `200` `ICategoryControllerCreateData` 添加分类
|
|
13
|
+
*/
|
|
14
|
+
create: (params?: RequestParams) => Promise<ICategoryControllerCreateData>;
|
|
15
|
+
/**
|
|
16
|
+
* No description
|
|
17
|
+
*
|
|
18
|
+
* @tags Category
|
|
19
|
+
* @name CategoryControllerFindAll
|
|
20
|
+
* @request GET:/category
|
|
21
|
+
* @response `200` `ICategoryControllerFindAllData`
|
|
22
|
+
*/
|
|
23
|
+
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* No description
|
|
26
|
+
*
|
|
27
|
+
* @tags Category
|
|
28
|
+
* @name CategoryControllerFindById
|
|
29
|
+
* @request GET:/category/{id}
|
|
30
|
+
* @response `200` `ICategoryControllerFindByIdData`
|
|
31
|
+
*/
|
|
32
|
+
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* No description
|
|
35
|
+
*
|
|
36
|
+
* @tags Category
|
|
37
|
+
* @name CategoryControllerUpdateById
|
|
38
|
+
* @request PATCH:/category/{id}
|
|
39
|
+
* @response `200` `ICategoryControllerUpdateByIdData`
|
|
40
|
+
*/
|
|
41
|
+
updateById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Category
|
|
46
|
+
* @name CategoryControllerDeleteById
|
|
47
|
+
* @request DELETE:/category/{id}
|
|
48
|
+
* @response `200` `ICategoryControllerDeleteByIdData`
|
|
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.Category = void 0;
|
|
14
|
+
class Category {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags Category
|
|
20
|
+
* @name CategoryControllerCreate
|
|
21
|
+
* @request POST:/category
|
|
22
|
+
* @response `200` `ICategoryControllerCreateData` 添加分类
|
|
23
|
+
*/
|
|
24
|
+
this.create = (params = {}) => this.http.request({
|
|
25
|
+
path: `/category`,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
...params,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* No description
|
|
31
|
+
*
|
|
32
|
+
* @tags Category
|
|
33
|
+
* @name CategoryControllerFindAll
|
|
34
|
+
* @request GET:/category
|
|
35
|
+
* @response `200` `ICategoryControllerFindAllData`
|
|
36
|
+
*/
|
|
37
|
+
this.findAll = (params = {}) => this.http.request({
|
|
38
|
+
path: `/category`,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
...params,
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Category
|
|
46
|
+
* @name CategoryControllerFindById
|
|
47
|
+
* @request GET:/category/{id}
|
|
48
|
+
* @response `200` `ICategoryControllerFindByIdData`
|
|
49
|
+
*/
|
|
50
|
+
this.findById = (id, params = {}) => this.http.request({
|
|
51
|
+
path: `/category/${id}`,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
...params,
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* No description
|
|
57
|
+
*
|
|
58
|
+
* @tags Category
|
|
59
|
+
* @name CategoryControllerUpdateById
|
|
60
|
+
* @request PATCH:/category/{id}
|
|
61
|
+
* @response `200` `ICategoryControllerUpdateByIdData`
|
|
62
|
+
*/
|
|
63
|
+
this.updateById = (id, params = {}) => this.http.request({
|
|
64
|
+
path: `/category/${id}`,
|
|
65
|
+
method: 'PATCH',
|
|
66
|
+
...params,
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* No description
|
|
70
|
+
*
|
|
71
|
+
* @tags Category
|
|
72
|
+
* @name CategoryControllerDeleteById
|
|
73
|
+
* @request DELETE:/category/{id}
|
|
74
|
+
* @response `200` `ICategoryControllerDeleteByIdData`
|
|
75
|
+
*/
|
|
76
|
+
this.deleteById = (id, params = {}) => this.http.request({
|
|
77
|
+
path: `/category/${id}`,
|
|
78
|
+
method: 'DELETE',
|
|
79
|
+
...params,
|
|
80
|
+
});
|
|
81
|
+
this.http = http;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.Category = Category;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ICommentControllerCreateData } from '../types';
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
+
export declare class Comment<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* No description
|
|
8
|
+
*
|
|
9
|
+
* @tags Comment
|
|
10
|
+
* @name CommentControllerCreate
|
|
11
|
+
* @request POST:/comment
|
|
12
|
+
* @response `200` `ICommentControllerCreateData` 创建评论
|
|
13
|
+
*/
|
|
14
|
+
create: (params?: RequestParams) => Promise<ICommentControllerCreateData>;
|
|
15
|
+
/**
|
|
16
|
+
* No description
|
|
17
|
+
*
|
|
18
|
+
* @tags Comment
|
|
19
|
+
* @name CommentControllerFindAll
|
|
20
|
+
* @request GET:/comment
|
|
21
|
+
* @response `200` `ICommentControllerFindAllData`
|
|
22
|
+
*/
|
|
23
|
+
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* No description
|
|
26
|
+
*
|
|
27
|
+
* @tags Comment
|
|
28
|
+
* @name CommentControllerFindById
|
|
29
|
+
* @request GET:/comment/{id}
|
|
30
|
+
* @response `200` `ICommentControllerFindByIdData`
|
|
31
|
+
*/
|
|
32
|
+
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* No description
|
|
35
|
+
*
|
|
36
|
+
* @tags Comment
|
|
37
|
+
* @name CommentControllerUpdateById
|
|
38
|
+
* @request PATCH:/comment/{id}
|
|
39
|
+
* @response `200` `ICommentControllerUpdateByIdData`
|
|
40
|
+
*/
|
|
41
|
+
updateById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Comment
|
|
46
|
+
* @name CommentControllerDeleteById
|
|
47
|
+
* @request DELETE:/comment/{id}
|
|
48
|
+
* @response `200` `ICommentControllerDeleteByIdData`
|
|
49
|
+
*/
|
|
50
|
+
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* No description
|
|
53
|
+
*
|
|
54
|
+
* @tags Comment
|
|
55
|
+
* @name CommentControllerGetArticleComments
|
|
56
|
+
* @request GET:/comment/host/{hostId}
|
|
57
|
+
* @response `200` `ICommentControllerGetArticleCommentsData`
|
|
58
|
+
*/
|
|
59
|
+
getArticleComments: (hostId: 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.Comment = void 0;
|
|
14
|
+
class Comment {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags Comment
|
|
20
|
+
* @name CommentControllerCreate
|
|
21
|
+
* @request POST:/comment
|
|
22
|
+
* @response `200` `ICommentControllerCreateData` 创建评论
|
|
23
|
+
*/
|
|
24
|
+
this.create = (params = {}) => this.http.request({
|
|
25
|
+
path: `/comment`,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
...params,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* No description
|
|
31
|
+
*
|
|
32
|
+
* @tags Comment
|
|
33
|
+
* @name CommentControllerFindAll
|
|
34
|
+
* @request GET:/comment
|
|
35
|
+
* @response `200` `ICommentControllerFindAllData`
|
|
36
|
+
*/
|
|
37
|
+
this.findAll = (params = {}) => this.http.request({
|
|
38
|
+
path: `/comment`,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
...params,
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags Comment
|
|
46
|
+
* @name CommentControllerFindById
|
|
47
|
+
* @request GET:/comment/{id}
|
|
48
|
+
* @response `200` `ICommentControllerFindByIdData`
|
|
49
|
+
*/
|
|
50
|
+
this.findById = (id, params = {}) => this.http.request({
|
|
51
|
+
path: `/comment/${id}`,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
...params,
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* No description
|
|
57
|
+
*
|
|
58
|
+
* @tags Comment
|
|
59
|
+
* @name CommentControllerUpdateById
|
|
60
|
+
* @request PATCH:/comment/{id}
|
|
61
|
+
* @response `200` `ICommentControllerUpdateByIdData`
|
|
62
|
+
*/
|
|
63
|
+
this.updateById = (id, params = {}) => this.http.request({
|
|
64
|
+
path: `/comment/${id}`,
|
|
65
|
+
method: 'PATCH',
|
|
66
|
+
...params,
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* No description
|
|
70
|
+
*
|
|
71
|
+
* @tags Comment
|
|
72
|
+
* @name CommentControllerDeleteById
|
|
73
|
+
* @request DELETE:/comment/{id}
|
|
74
|
+
* @response `200` `ICommentControllerDeleteByIdData`
|
|
75
|
+
*/
|
|
76
|
+
this.deleteById = (id, params = {}) => this.http.request({
|
|
77
|
+
path: `/comment/${id}`,
|
|
78
|
+
method: 'DELETE',
|
|
79
|
+
...params,
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* No description
|
|
83
|
+
*
|
|
84
|
+
* @tags Comment
|
|
85
|
+
* @name CommentControllerGetArticleComments
|
|
86
|
+
* @request GET:/comment/host/{hostId}
|
|
87
|
+
* @response `200` `ICommentControllerGetArticleCommentsData`
|
|
88
|
+
*/
|
|
89
|
+
this.getArticleComments = (hostId, params = {}) => this.http.request({
|
|
90
|
+
path: `/comment/host/${hostId}`,
|
|
91
|
+
method: 'GET',
|
|
92
|
+
...params,
|
|
93
|
+
});
|
|
94
|
+
this.http = http;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.Comment = Comment;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IFileControllerUploadFileData } from '../types';
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
+
export declare class File<SecurityDataType = unknown> {
|
|
4
|
+
http: HttpClient<SecurityDataType>;
|
|
5
|
+
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
+
/**
|
|
7
|
+
* No description
|
|
8
|
+
*
|
|
9
|
+
* @tags File
|
|
10
|
+
* @name FileControllerUploadFile
|
|
11
|
+
* @request POST:/file/upload
|
|
12
|
+
* @response `200` `IFileControllerUploadFileData` 上传文件
|
|
13
|
+
*/
|
|
14
|
+
uploadFile: (params?: RequestParams) => Promise<IFileControllerUploadFileData>;
|
|
15
|
+
/**
|
|
16
|
+
* No description
|
|
17
|
+
*
|
|
18
|
+
* @tags File
|
|
19
|
+
* @name FileControllerFindAll
|
|
20
|
+
* @request GET:/file
|
|
21
|
+
* @response `200` `IFileControllerFindAllData`
|
|
22
|
+
*/
|
|
23
|
+
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
+
/**
|
|
25
|
+
* No description
|
|
26
|
+
*
|
|
27
|
+
* @tags File
|
|
28
|
+
* @name FileControllerFindById
|
|
29
|
+
* @request GET:/file/{id}
|
|
30
|
+
* @response `200` `IFileControllerFindByIdData`
|
|
31
|
+
*/
|
|
32
|
+
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
+
/**
|
|
34
|
+
* No description
|
|
35
|
+
*
|
|
36
|
+
* @tags File
|
|
37
|
+
* @name FileControllerDeleteById
|
|
38
|
+
* @request DELETE:/file/{id}
|
|
39
|
+
* @response `200` `IFileControllerDeleteByIdData`
|
|
40
|
+
*/
|
|
41
|
+
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.File = void 0;
|
|
14
|
+
class File {
|
|
15
|
+
constructor(http) {
|
|
16
|
+
/**
|
|
17
|
+
* No description
|
|
18
|
+
*
|
|
19
|
+
* @tags File
|
|
20
|
+
* @name FileControllerUploadFile
|
|
21
|
+
* @request POST:/file/upload
|
|
22
|
+
* @response `200` `IFileControllerUploadFileData` 上传文件
|
|
23
|
+
*/
|
|
24
|
+
this.uploadFile = (params = {}) => this.http.request({
|
|
25
|
+
path: `/file/upload`,
|
|
26
|
+
method: 'POST',
|
|
27
|
+
...params,
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* No description
|
|
31
|
+
*
|
|
32
|
+
* @tags File
|
|
33
|
+
* @name FileControllerFindAll
|
|
34
|
+
* @request GET:/file
|
|
35
|
+
* @response `200` `IFileControllerFindAllData`
|
|
36
|
+
*/
|
|
37
|
+
this.findAll = (params = {}) => this.http.request({
|
|
38
|
+
path: `/file`,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
...params,
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* No description
|
|
44
|
+
*
|
|
45
|
+
* @tags File
|
|
46
|
+
* @name FileControllerFindById
|
|
47
|
+
* @request GET:/file/{id}
|
|
48
|
+
* @response `200` `IFileControllerFindByIdData`
|
|
49
|
+
*/
|
|
50
|
+
this.findById = (id, params = {}) => this.http.request({
|
|
51
|
+
path: `/file/${id}`,
|
|
52
|
+
method: 'GET',
|
|
53
|
+
...params,
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* No description
|
|
57
|
+
*
|
|
58
|
+
* @tags File
|
|
59
|
+
* @name FileControllerDeleteById
|
|
60
|
+
* @request DELETE:/file/{id}
|
|
61
|
+
* @response `200` `IFileControllerDeleteByIdData`
|
|
62
|
+
*/
|
|
63
|
+
this.deleteById = (id, params = {}) => this.http.request({
|
|
64
|
+
path: `/file/${id}`,
|
|
65
|
+
method: 'DELETE',
|
|
66
|
+
...params,
|
|
67
|
+
});
|
|
68
|
+
this.http = http;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.File = File;
|