@fecommunity/reactpress-toolkit 1.0.0 → 3.0.0

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.
Files changed (116) hide show
  1. package/README.md +9 -27
  2. package/dist/config/env.d.ts +1 -0
  3. package/dist/config/env.js +89 -0
  4. package/dist/config/global.d.ts +34 -0
  5. package/dist/config/global.js +390 -0
  6. package/dist/config/i18n.d.ts +4 -0
  7. package/dist/config/i18n.js +43 -0
  8. package/dist/config/index.d.ts +15 -0
  9. package/dist/config/index.js +25 -0
  10. package/dist/index.d.ts +11 -5
  11. package/dist/index.js +17 -20
  12. package/dist/locales/en.json +97 -0
  13. package/dist/locales/zh.json +97 -0
  14. package/package.json +15 -3
  15. package/dist/Article.d.ts +0 -121
  16. package/dist/Article.js +0 -189
  17. package/dist/Auth.d.ts +0 -30
  18. package/dist/Auth.js +0 -59
  19. package/dist/Category.d.ts +0 -49
  20. package/dist/Category.js +0 -85
  21. package/dist/Comment.d.ts +0 -58
  22. package/dist/Comment.js +0 -98
  23. package/dist/File.d.ts +0 -40
  24. package/dist/File.js +0 -72
  25. package/dist/HttpClient.d.ts +0 -41
  26. package/dist/HttpClient.js +0 -94
  27. package/dist/Knowledge.d.ts +0 -76
  28. package/dist/Knowledge.js +0 -124
  29. package/dist/Page.d.ts +0 -58
  30. package/dist/Page.js +0 -98
  31. package/dist/Search.d.ts +0 -30
  32. package/dist/Search.js +0 -59
  33. package/dist/Setting.d.ts +0 -22
  34. package/dist/Setting.js +0 -46
  35. package/dist/Smtp.d.ts +0 -31
  36. package/dist/Smtp.js +0 -59
  37. package/dist/Tag.d.ts +0 -58
  38. package/dist/Tag.js +0 -98
  39. package/dist/User.d.ts +0 -41
  40. package/dist/User.js +0 -73
  41. package/dist/View.d.ts +0 -49
  42. package/dist/View.js +0 -85
  43. package/dist/api/Admin.d.ts +0 -14
  44. package/dist/api/Admin.js +0 -32
  45. package/dist/api/All.d.ts +0 -14
  46. package/dist/api/All.js +0 -32
  47. package/dist/api/ApiInstance.d.ts +0 -39
  48. package/dist/api/ApiInstance.js +0 -46
  49. package/dist/api/Archives.d.ts +0 -14
  50. package/dist/api/Archives.js +0 -32
  51. package/dist/api/ArticleRoute.d.ts +0 -201
  52. package/dist/api/ArticleRoute.js +0 -12
  53. package/dist/api/AuthRoute.d.ts +0 -44
  54. package/dist/api/AuthRoute.js +0 -12
  55. package/dist/api/Book.d.ts +0 -15
  56. package/dist/api/Book.js +0 -33
  57. package/dist/api/CategoryRoute.d.ts +0 -79
  58. package/dist/api/CategoryRoute.js +0 -12
  59. package/dist/api/Chapter.d.ts +0 -15
  60. package/dist/api/Chapter.js +0 -33
  61. package/dist/api/CommentRoute.d.ts +0 -95
  62. package/dist/api/CommentRoute.js +0 -12
  63. package/dist/api/FileRoute.d.ts +0 -63
  64. package/dist/api/FileRoute.js +0 -12
  65. package/dist/api/Get.d.ts +0 -14
  66. package/dist/api/Get.js +0 -32
  67. package/dist/api/Github.d.ts +0 -14
  68. package/dist/api/Github.js +0 -32
  69. package/dist/api/Host.d.ts +0 -14
  70. package/dist/api/Host.js +0 -32
  71. package/dist/api/Id.d.ts +0 -284
  72. package/dist/api/Id.js +0 -422
  73. package/dist/api/KnowledgeRoute.d.ts +0 -125
  74. package/dist/api/KnowledgeRoute.js +0 -12
  75. package/dist/api/Login.d.ts +0 -14
  76. package/dist/api/Login.js +0 -32
  77. package/dist/api/PageRoute.d.ts +0 -95
  78. package/dist/api/PageRoute.js +0 -12
  79. package/dist/api/Password.d.ts +0 -15
  80. package/dist/api/Password.js +0 -33
  81. package/dist/api/Recommend.d.ts +0 -14
  82. package/dist/api/Recommend.js +0 -32
  83. package/dist/api/Register.d.ts +0 -15
  84. package/dist/api/Register.js +0 -33
  85. package/dist/api/SearchRoute.d.ts +0 -46
  86. package/dist/api/SearchRoute.js +0 -12
  87. package/dist/api/SettingRoute.d.ts +0 -31
  88. package/dist/api/SettingRoute.js +0 -12
  89. package/dist/api/SmtpRoute.d.ts +0 -47
  90. package/dist/api/SmtpRoute.js +0 -12
  91. package/dist/api/TagRoute.d.ts +0 -95
  92. package/dist/api/TagRoute.js +0 -12
  93. package/dist/api/Update.d.ts +0 -15
  94. package/dist/api/Update.js +0 -33
  95. package/dist/api/Upload.d.ts +0 -15
  96. package/dist/api/Upload.js +0 -33
  97. package/dist/api/Url.d.ts +0 -14
  98. package/dist/api/Url.js +0 -32
  99. package/dist/api/UserRoute.d.ts +0 -60
  100. package/dist/api/UserRoute.js +0 -12
  101. package/dist/api/ViewRoute.d.ts +0 -77
  102. package/dist/api/ViewRoute.js +0 -12
  103. package/dist/api/api-instance.d.ts +0 -39
  104. package/dist/api/api-instance.js +0 -46
  105. package/dist/api/http-client.d.ts +0 -41
  106. package/dist/api/http-client.js +0 -94
  107. package/dist/data-contracts.d.ts +0 -245
  108. package/dist/data-contracts.js +0 -12
  109. package/dist/types/data-contracts.d.ts +0 -177
  110. package/dist/types/data-contracts.js +0 -12
  111. package/dist/utils/common.d.ts +0 -21
  112. package/dist/utils/common.js +0 -52
  113. package/dist/utils/http.d.ts +0 -3
  114. package/dist/utils/http.js +0 -45
  115. /package/dist/api/{httpClient.d.ts → HttpClient.d.ts} +0 -0
  116. /package/dist/api/{httpClient.js → HttpClient.js} +0 -0
package/dist/User.d.ts DELETED
@@ -1,41 +0,0 @@
1
- import { IUserControllerFindAllData, IUserControllerRegisterData, IUserControllerUpdateData, IUserControllerUpdatePasswordData } from './data-contracts';
2
- import { HttpClient, RequestParams } from './HttpClient';
3
- export declare class User<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
- /**
5
- * No description
6
- *
7
- * @tags User
8
- * @name UserControllerFindAll
9
- * @request GET:/user
10
- * @response `200` `IUserControllerFindAllData` 获取用户列表
11
- * @response `403` `void` 无权获取用户列表
12
- */
13
- userControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUserControllerFindAllData, any, {}>>;
14
- /**
15
- * No description
16
- *
17
- * @tags User
18
- * @name UserControllerRegister
19
- * @request POST:/user/register
20
- * @response `201` `IUserControllerRegisterData` 创建用户
21
- */
22
- userControllerRegister: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUserControllerRegisterData, any, {}>>;
23
- /**
24
- * No description
25
- *
26
- * @tags User
27
- * @name UserControllerUpdate
28
- * @request POST:/user/update
29
- * @response `200` `IUserControllerUpdateData` 更新用户成功
30
- */
31
- userControllerUpdate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUserControllerUpdateData, any, {}>>;
32
- /**
33
- * No description
34
- *
35
- * @tags User
36
- * @name UserControllerUpdatePassword
37
- * @request POST:/user/password
38
- * @response `201` `IUserControllerUpdatePasswordData` 更新密码成功
39
- */
40
- userControllerUpdatePassword: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUserControllerUpdatePasswordData, any, {}>>;
41
- }
package/dist/User.js DELETED
@@ -1,73 +0,0 @@
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
- const HttpClient_1 = require("./HttpClient");
15
- class User extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags User
22
- * @name UserControllerFindAll
23
- * @request GET:/user
24
- * @response `200` `IUserControllerFindAllData` 获取用户列表
25
- * @response `403` `void` 无权获取用户列表
26
- */
27
- this.userControllerFindAll = (params = {}) => this.request({
28
- path: `/user`,
29
- method: 'GET',
30
- ...params,
31
- });
32
- /**
33
- * No description
34
- *
35
- * @tags User
36
- * @name UserControllerRegister
37
- * @request POST:/user/register
38
- * @response `201` `IUserControllerRegisterData` 创建用户
39
- */
40
- this.userControllerRegister = (params = {}) => this.request({
41
- path: `/user/register`,
42
- method: 'POST',
43
- ...params,
44
- });
45
- /**
46
- * No description
47
- *
48
- * @tags User
49
- * @name UserControllerUpdate
50
- * @request POST:/user/update
51
- * @response `200` `IUserControllerUpdateData` 更新用户成功
52
- */
53
- this.userControllerUpdate = (params = {}) => this.request({
54
- path: `/user/update`,
55
- method: 'POST',
56
- ...params,
57
- });
58
- /**
59
- * No description
60
- *
61
- * @tags User
62
- * @name UserControllerUpdatePassword
63
- * @request POST:/user/password
64
- * @response `201` `IUserControllerUpdatePasswordData` 更新密码成功
65
- */
66
- this.userControllerUpdatePassword = (params = {}) => this.request({
67
- path: `/user/password`,
68
- method: 'POST',
69
- ...params,
70
- });
71
- }
72
- }
73
- exports.User = User;
package/dist/View.d.ts DELETED
@@ -1,49 +0,0 @@
1
- import { IViewControllerCreateData } from './data-contracts';
2
- import { HttpClient, RequestParams } from './HttpClient';
3
- export declare class View<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
- /**
5
- * No description
6
- *
7
- * @tags View
8
- * @name ViewControllerCreate
9
- * @request POST:/view
10
- * @response `200` `IViewControllerCreateData` 访问记录添加成功
11
- */
12
- viewControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IViewControllerCreateData, any, {}>>;
13
- /**
14
- * No description
15
- *
16
- * @tags View
17
- * @name ViewControllerFindAll
18
- * @request GET:/view
19
- * @response `200` `IViewControllerFindAllData`
20
- */
21
- viewControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
22
- /**
23
- * No description
24
- *
25
- * @tags View
26
- * @name ViewControllerFindByUrl
27
- * @request GET:/view/url
28
- * @response `200` `IViewControllerFindByUrlData`
29
- */
30
- viewControllerFindByUrl: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
31
- /**
32
- * No description
33
- *
34
- * @tags View
35
- * @name ViewControllerFindById
36
- * @request GET:/view/{id}
37
- * @response `200` `IViewControllerFindByIdData`
38
- */
39
- viewControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
40
- /**
41
- * No description
42
- *
43
- * @tags View
44
- * @name ViewControllerDeleteById
45
- * @request DELETE:/view/{id}
46
- * @response `200` `IViewControllerDeleteByIdData`
47
- */
48
- viewControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
49
- }
package/dist/View.js DELETED
@@ -1,85 +0,0 @@
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
- const HttpClient_1 = require("./HttpClient");
15
- class View extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags View
22
- * @name ViewControllerCreate
23
- * @request POST:/view
24
- * @response `200` `IViewControllerCreateData` 访问记录添加成功
25
- */
26
- this.viewControllerCreate = (params = {}) => this.request({
27
- path: `/view`,
28
- method: 'POST',
29
- ...params,
30
- });
31
- /**
32
- * No description
33
- *
34
- * @tags View
35
- * @name ViewControllerFindAll
36
- * @request GET:/view
37
- * @response `200` `IViewControllerFindAllData`
38
- */
39
- this.viewControllerFindAll = (params = {}) => this.request({
40
- path: `/view`,
41
- method: 'GET',
42
- ...params,
43
- });
44
- /**
45
- * No description
46
- *
47
- * @tags View
48
- * @name ViewControllerFindByUrl
49
- * @request GET:/view/url
50
- * @response `200` `IViewControllerFindByUrlData`
51
- */
52
- this.viewControllerFindByUrl = (params = {}) => this.request({
53
- path: `/view/url`,
54
- method: 'GET',
55
- ...params,
56
- });
57
- /**
58
- * No description
59
- *
60
- * @tags View
61
- * @name ViewControllerFindById
62
- * @request GET:/view/{id}
63
- * @response `200` `IViewControllerFindByIdData`
64
- */
65
- this.viewControllerFindById = (id, params = {}) => this.request({
66
- path: `/view/${id}`,
67
- method: 'GET',
68
- ...params,
69
- });
70
- /**
71
- * No description
72
- *
73
- * @tags View
74
- * @name ViewControllerDeleteById
75
- * @request DELETE:/view/{id}
76
- * @response `200` `IViewControllerDeleteByIdData`
77
- */
78
- this.viewControllerDeleteById = (id, params = {}) => this.request({
79
- path: `/view/${id}`,
80
- method: 'DELETE',
81
- ...params,
82
- });
83
- }
84
- }
85
- exports.View = View;
@@ -1,14 +0,0 @@
1
- import { HttpClient, RequestParams } from './http-client';
2
- export declare class Admin<SecurityDataType = unknown> {
3
- http: HttpClient<SecurityDataType>;
4
- constructor(http: HttpClient<SecurityDataType>);
5
- /**
6
- * No description
7
- *
8
- * @tags Auth
9
- * @name AuthControllerCreateBook
10
- * @request POST:/auth/admin
11
- * @response `201` `void`
12
- */
13
- authControllerCreateBook: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
14
- }
package/dist/api/Admin.js DELETED
@@ -1,32 +0,0 @@
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.Admin = void 0;
14
- class Admin {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags Auth
20
- * @name AuthControllerCreateBook
21
- * @request POST:/auth/admin
22
- * @response `201` `void`
23
- */
24
- this.authControllerCreateBook = (params = {}) => this.http.request({
25
- path: `/auth/admin`,
26
- method: 'POST',
27
- ...params,
28
- });
29
- this.http = http;
30
- }
31
- }
32
- exports.Admin = Admin;
package/dist/api/All.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { HttpClient, RequestParams } from './http-client';
2
- export declare class All<SecurityDataType = unknown> {
3
- http: HttpClient<SecurityDataType>;
4
- constructor(http: HttpClient<SecurityDataType>);
5
- /**
6
- * No description
7
- *
8
- * @tags Article
9
- * @name ArticleControllerGetRecommendArticles
10
- * @request GET:/article/all/recommend
11
- * @response `200` `void`
12
- */
13
- articleControllerGetRecommendArticles: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
14
- }
package/dist/api/All.js DELETED
@@ -1,32 +0,0 @@
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.All = void 0;
14
- class All {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags Article
20
- * @name ArticleControllerGetRecommendArticles
21
- * @request GET:/article/all/recommend
22
- * @response `200` `void`
23
- */
24
- this.articleControllerGetRecommendArticles = (params = {}) => this.http.request({
25
- path: `/article/all/recommend`,
26
- method: 'GET',
27
- ...params,
28
- });
29
- this.http = http;
30
- }
31
- }
32
- exports.All = All;
@@ -1,39 +0,0 @@
1
- import { HttpClientConfig } 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 interface ApiConfig<SecurityDataType = unknown> extends HttpClientConfig<SecurityDataType> {
16
- }
17
- export interface ApiInstance<SecurityDataType = unknown> {
18
- article: Article<SecurityDataType>;
19
- auth: Auth<SecurityDataType>;
20
- category: Category<SecurityDataType>;
21
- comment: Comment<SecurityDataType>;
22
- file: File<SecurityDataType>;
23
- knowledge: Knowledge<SecurityDataType>;
24
- page: Page<SecurityDataType>;
25
- search: Search<SecurityDataType>;
26
- setting: Setting<SecurityDataType>;
27
- smtp: Smtp<SecurityDataType>;
28
- tag: Tag<SecurityDataType>;
29
- user: User<SecurityDataType>;
30
- view: View<SecurityDataType>;
31
- }
32
- /**
33
- * 创建 API 实例
34
- * @param config API 配置
35
- * @returns API 实例对象
36
- */
37
- export declare function createApiInstance<SecurityDataType = unknown>(config?: ApiConfig<SecurityDataType>): ApiInstance<SecurityDataType>;
38
- export declare const api: ApiInstance<unknown>;
39
- export default api;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- // API 实例化文件
3
- // 自动生成,请勿手动修改
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.api = exports.createApiInstance = void 0;
6
- const HttpClient_1 = require("./HttpClient");
7
- const Article_1 = require("./Article");
8
- const Auth_1 = require("./Auth");
9
- const Category_1 = require("./Category");
10
- const Comment_1 = require("./Comment");
11
- const File_1 = require("./File");
12
- const Knowledge_1 = require("./Knowledge");
13
- const Page_1 = require("./Page");
14
- const Search_1 = require("./Search");
15
- const Setting_1 = require("./Setting");
16
- const Smtp_1 = require("./Smtp");
17
- const Tag_1 = require("./Tag");
18
- const User_1 = require("./User");
19
- const View_1 = require("./View");
20
- /**
21
- * 创建 API 实例
22
- * @param config API 配置
23
- * @returns API 实例对象
24
- */
25
- function createApiInstance(config = {}) {
26
- const httpClient = new HttpClient_1.HttpClient(config);
27
- return {
28
- article: new Article_1.Article(config),
29
- auth: new Auth_1.Auth(config),
30
- category: new Category_1.Category(config),
31
- comment: new Comment_1.Comment(config),
32
- file: new File_1.File(config),
33
- knowledge: new Knowledge_1.Knowledge(config),
34
- page: new Page_1.Page(config),
35
- search: new Search_1.Search(config),
36
- setting: new Setting_1.Setting(config),
37
- smtp: new Smtp_1.Smtp(config),
38
- tag: new Tag_1.Tag(config),
39
- user: new User_1.User(config),
40
- view: new View_1.View(config),
41
- };
42
- }
43
- exports.createApiInstance = createApiInstance;
44
- // 默认 API 实例
45
- exports.api = createApiInstance();
46
- exports.default = exports.api;
@@ -1,14 +0,0 @@
1
- import { HttpClient, RequestParams } from './http-client';
2
- export declare class Archives<SecurityDataType = unknown> {
3
- http: HttpClient<SecurityDataType>;
4
- constructor(http: HttpClient<SecurityDataType>);
5
- /**
6
- * No description
7
- *
8
- * @tags Article
9
- * @name ArticleControllerGetArchives
10
- * @request GET:/article/archives
11
- * @response `200` `void`
12
- */
13
- articleControllerGetArchives: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
14
- }
@@ -1,32 +0,0 @@
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.Archives = void 0;
14
- class Archives {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags Article
20
- * @name ArticleControllerGetArchives
21
- * @request GET:/article/archives
22
- * @response `200` `void`
23
- */
24
- this.articleControllerGetArchives = (params = {}) => this.http.request({
25
- path: `/article/archives`,
26
- method: 'GET',
27
- ...params,
28
- });
29
- this.http = http;
30
- }
31
- }
32
- exports.Archives = Archives;
@@ -1,201 +0,0 @@
1
- import { IArticle } from '../types/data-contracts';
2
- export declare namespace Article {
3
- /**
4
- * No description
5
- * @tags Article
6
- * @name create
7
- * @request POST:/article
8
- * @response `200` `(IArticle)[]` 创建文章
9
- */
10
- namespace create {
11
- type RequestParams = {};
12
- type RequestQuery = {};
13
- type RequestBody = never;
14
- type RequestHeaders = {};
15
- type ResponseBody = IArticle[];
16
- }
17
- /**
18
- * No description
19
- * @tags Article
20
- * @name findAll
21
- * @request GET:/article
22
- * @response `200` `void`
23
- */
24
- namespace findAll {
25
- type RequestParams = {};
26
- type RequestQuery = {};
27
- type RequestBody = never;
28
- type RequestHeaders = {};
29
- type ResponseBody = void;
30
- }
31
- /**
32
- * No description
33
- * @tags Article
34
- * @name findArticlesByCategory
35
- * @request GET:/article/category/{id}
36
- * @response `200` `void`
37
- */
38
- namespace findArticlesByCategory {
39
- type RequestParams = {
40
- id: string;
41
- };
42
- type RequestQuery = {};
43
- type RequestBody = never;
44
- type RequestHeaders = {};
45
- type ResponseBody = void;
46
- }
47
- /**
48
- * No description
49
- * @tags Article
50
- * @name findArticlesByTag
51
- * @request GET:/article/tag/{id}
52
- * @response `200` `void`
53
- */
54
- namespace findArticlesByTag {
55
- type RequestParams = {
56
- id: string;
57
- };
58
- type RequestQuery = {};
59
- type RequestBody = never;
60
- type RequestHeaders = {};
61
- type ResponseBody = void;
62
- }
63
- /**
64
- * No description
65
- * @tags Article
66
- * @name getRecommendArticles
67
- * @request GET:/article/all/recommend
68
- * @response `200` `void`
69
- */
70
- namespace getRecommendArticles {
71
- type RequestParams = {};
72
- type RequestQuery = {};
73
- type RequestBody = never;
74
- type RequestHeaders = {};
75
- type ResponseBody = void;
76
- }
77
- /**
78
- * No description
79
- * @tags Article
80
- * @name getArchives
81
- * @request GET:/article/archives
82
- * @response `200` `void`
83
- */
84
- namespace getArchives {
85
- type RequestParams = {};
86
- type RequestQuery = {};
87
- type RequestBody = never;
88
- type RequestHeaders = {};
89
- type ResponseBody = void;
90
- }
91
- /**
92
- * No description
93
- * @tags Article
94
- * @name recommend
95
- * @request GET:/article/recommend
96
- * @response `200` `void`
97
- */
98
- namespace recommend {
99
- type RequestParams = {};
100
- type RequestQuery = {};
101
- type RequestBody = never;
102
- type RequestHeaders = {};
103
- type ResponseBody = void;
104
- }
105
- /**
106
- * No description
107
- * @tags Article
108
- * @name findById
109
- * @request GET:/article/{id}
110
- * @response `200` `void`
111
- */
112
- namespace findById {
113
- type RequestParams = {
114
- id: string;
115
- };
116
- type RequestQuery = {};
117
- type RequestBody = never;
118
- type RequestHeaders = {};
119
- type ResponseBody = void;
120
- }
121
- /**
122
- * No description
123
- * @tags Article
124
- * @name updateById
125
- * @request PATCH:/article/{id}
126
- * @response `200` `void`
127
- */
128
- namespace updateById {
129
- type RequestParams = {
130
- id: string;
131
- };
132
- type RequestQuery = {};
133
- type RequestBody = never;
134
- type RequestHeaders = {};
135
- type ResponseBody = void;
136
- }
137
- /**
138
- * No description
139
- * @tags Article
140
- * @name deleteById
141
- * @request DELETE:/article/{id}
142
- * @response `200` `void`
143
- */
144
- namespace deleteById {
145
- type RequestParams = {
146
- id: string;
147
- };
148
- type RequestQuery = {};
149
- type RequestBody = never;
150
- type RequestHeaders = {};
151
- type ResponseBody = void;
152
- }
153
- /**
154
- * No description
155
- * @tags Article
156
- * @name checkPassword
157
- * @request POST:/article/{id}/checkPassword
158
- * @response `200` `void`
159
- */
160
- namespace checkPassword {
161
- type RequestParams = {
162
- id: string;
163
- };
164
- type RequestQuery = {};
165
- type RequestBody = never;
166
- type RequestHeaders = {};
167
- type ResponseBody = void;
168
- }
169
- /**
170
- * No description
171
- * @tags Article
172
- * @name updateViewsById
173
- * @request POST:/article/{id}/views
174
- * @response `200` `void`
175
- */
176
- namespace updateViewsById {
177
- type RequestParams = {
178
- id: string;
179
- };
180
- type RequestQuery = {};
181
- type RequestBody = never;
182
- type RequestHeaders = {};
183
- type ResponseBody = void;
184
- }
185
- /**
186
- * No description
187
- * @tags Article
188
- * @name updateLikesById
189
- * @request POST:/article/{id}/likes
190
- * @response `200` `void`
191
- */
192
- namespace updateLikesById {
193
- type RequestParams = {
194
- id: string;
195
- };
196
- type RequestQuery = {};
197
- type RequestBody = never;
198
- type RequestHeaders = {};
199
- type ResponseBody = void;
200
- }
201
- }