@fecommunity/reactpress-toolkit 1.0.0-beta.2 → 1.0.0-beta.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.
Files changed (150) hide show
  1. package/README.md +222 -25
  2. package/dist/api/Article.d.ts +43 -28
  3. package/dist/api/Article.js +42 -31
  4. package/dist/api/Auth.d.ts +12 -7
  5. package/dist/api/Auth.js +12 -10
  6. package/dist/api/Category.d.ts +19 -12
  7. package/dist/api/Category.js +18 -15
  8. package/dist/api/Comment.d.ts +22 -14
  9. package/dist/api/Comment.js +21 -17
  10. package/dist/api/File.d.ts +16 -10
  11. package/dist/api/File.js +15 -13
  12. package/dist/{HttpClient.d.ts → api/HttpClient.d.ts} +2 -2
  13. package/dist/{HttpClient.js → api/HttpClient.js} +4 -2
  14. package/dist/api/Knowledge.d.ts +28 -18
  15. package/dist/api/Knowledge.js +27 -22
  16. package/dist/api/Page.d.ts +22 -14
  17. package/dist/api/Page.js +21 -17
  18. package/dist/api/Search.d.ts +12 -7
  19. package/dist/api/Search.js +12 -10
  20. package/dist/api/Setting.d.ts +10 -6
  21. package/dist/api/Setting.js +9 -9
  22. package/dist/api/Smtp.d.ts +13 -8
  23. package/dist/api/Smtp.js +12 -11
  24. package/dist/api/Tag.d.ts +22 -14
  25. package/dist/api/Tag.js +21 -17
  26. package/dist/api/User.d.ts +17 -10
  27. package/dist/api/User.js +16 -16
  28. package/dist/api/View.d.ts +19 -12
  29. package/dist/api/View.js +18 -15
  30. package/dist/api/index.d.ts +13 -18
  31. package/dist/api/index.js +28 -40
  32. package/dist/api/instance.d.ts +47 -0
  33. package/dist/api/instance.js +71 -0
  34. package/dist/config/env.d.ts +1 -0
  35. package/dist/config/env.js +89 -0
  36. package/dist/config/global.d.ts +34 -0
  37. package/dist/config/global.js +382 -0
  38. package/dist/config/i18n.d.ts +4 -0
  39. package/dist/config/i18n.js +43 -0
  40. package/dist/config/index.d.ts +15 -0
  41. package/dist/config/index.js +25 -0
  42. package/dist/index.d.ts +11 -5
  43. package/dist/index.js +18 -25
  44. package/dist/locales/en.json +97 -0
  45. package/dist/locales/zh.json +97 -0
  46. package/dist/types/index.d.ts +245 -1
  47. package/dist/types/index.js +10 -17
  48. package/dist/utils/index.d.ts +33 -2
  49. package/dist/utils/index.js +57 -18
  50. package/package.json +20 -5
  51. package/dist/Article.d.ts +0 -121
  52. package/dist/Article.js +0 -189
  53. package/dist/Auth.d.ts +0 -30
  54. package/dist/Auth.js +0 -59
  55. package/dist/Category.d.ts +0 -49
  56. package/dist/Category.js +0 -85
  57. package/dist/Comment.d.ts +0 -58
  58. package/dist/Comment.js +0 -98
  59. package/dist/File.d.ts +0 -40
  60. package/dist/File.js +0 -72
  61. package/dist/Knowledge.d.ts +0 -76
  62. package/dist/Knowledge.js +0 -124
  63. package/dist/Page.d.ts +0 -58
  64. package/dist/Page.js +0 -98
  65. package/dist/Search.d.ts +0 -30
  66. package/dist/Search.js +0 -59
  67. package/dist/Setting.d.ts +0 -22
  68. package/dist/Setting.js +0 -46
  69. package/dist/Smtp.d.ts +0 -31
  70. package/dist/Smtp.js +0 -59
  71. package/dist/Tag.d.ts +0 -58
  72. package/dist/Tag.js +0 -98
  73. package/dist/User.d.ts +0 -41
  74. package/dist/User.js +0 -73
  75. package/dist/View.d.ts +0 -49
  76. package/dist/View.js +0 -85
  77. package/dist/api/Admin.d.ts +0 -14
  78. package/dist/api/Admin.js +0 -32
  79. package/dist/api/All.d.ts +0 -14
  80. package/dist/api/All.js +0 -32
  81. package/dist/api/ApiInstance.d.ts +0 -39
  82. package/dist/api/ApiInstance.js +0 -46
  83. package/dist/api/Archives.d.ts +0 -14
  84. package/dist/api/Archives.js +0 -32
  85. package/dist/api/ArticleRoute.d.ts +0 -201
  86. package/dist/api/ArticleRoute.js +0 -12
  87. package/dist/api/AuthRoute.d.ts +0 -44
  88. package/dist/api/AuthRoute.js +0 -12
  89. package/dist/api/Book.d.ts +0 -15
  90. package/dist/api/Book.js +0 -33
  91. package/dist/api/CategoryRoute.d.ts +0 -79
  92. package/dist/api/CategoryRoute.js +0 -12
  93. package/dist/api/Chapter.d.ts +0 -15
  94. package/dist/api/Chapter.js +0 -33
  95. package/dist/api/CommentRoute.d.ts +0 -95
  96. package/dist/api/CommentRoute.js +0 -12
  97. package/dist/api/FileRoute.d.ts +0 -63
  98. package/dist/api/FileRoute.js +0 -12
  99. package/dist/api/Get.d.ts +0 -14
  100. package/dist/api/Get.js +0 -32
  101. package/dist/api/Github.d.ts +0 -14
  102. package/dist/api/Github.js +0 -32
  103. package/dist/api/Host.d.ts +0 -14
  104. package/dist/api/Host.js +0 -32
  105. package/dist/api/Id.d.ts +0 -284
  106. package/dist/api/Id.js +0 -422
  107. package/dist/api/KnowledgeRoute.d.ts +0 -125
  108. package/dist/api/KnowledgeRoute.js +0 -12
  109. package/dist/api/Login.d.ts +0 -14
  110. package/dist/api/Login.js +0 -32
  111. package/dist/api/PageRoute.d.ts +0 -95
  112. package/dist/api/PageRoute.js +0 -12
  113. package/dist/api/Password.d.ts +0 -15
  114. package/dist/api/Password.js +0 -33
  115. package/dist/api/Recommend.d.ts +0 -14
  116. package/dist/api/Recommend.js +0 -32
  117. package/dist/api/Register.d.ts +0 -15
  118. package/dist/api/Register.js +0 -33
  119. package/dist/api/SearchRoute.d.ts +0 -46
  120. package/dist/api/SearchRoute.js +0 -12
  121. package/dist/api/SettingRoute.d.ts +0 -31
  122. package/dist/api/SettingRoute.js +0 -12
  123. package/dist/api/SmtpRoute.d.ts +0 -47
  124. package/dist/api/SmtpRoute.js +0 -12
  125. package/dist/api/TagRoute.d.ts +0 -95
  126. package/dist/api/TagRoute.js +0 -12
  127. package/dist/api/Update.d.ts +0 -15
  128. package/dist/api/Update.js +0 -33
  129. package/dist/api/Upload.d.ts +0 -15
  130. package/dist/api/Upload.js +0 -33
  131. package/dist/api/Url.d.ts +0 -14
  132. package/dist/api/Url.js +0 -32
  133. package/dist/api/UserRoute.d.ts +0 -60
  134. package/dist/api/UserRoute.js +0 -12
  135. package/dist/api/ViewRoute.d.ts +0 -77
  136. package/dist/api/ViewRoute.js +0 -12
  137. package/dist/api/api-instance.d.ts +0 -39
  138. package/dist/api/api-instance.js +0 -46
  139. package/dist/api/http-client.d.ts +0 -41
  140. package/dist/api/http-client.js +0 -94
  141. package/dist/api/httpClient.d.ts +0 -42
  142. package/dist/api/httpClient.js +0 -95
  143. package/dist/data-contracts.d.ts +0 -245
  144. package/dist/data-contracts.js +0 -12
  145. package/dist/types/data-contracts.d.ts +0 -177
  146. package/dist/types/data-contracts.js +0 -12
  147. package/dist/utils/common.d.ts +0 -21
  148. package/dist/utils/common.js +0 -52
  149. package/dist/utils/http.d.ts +0 -3
  150. package/dist/utils/http.js +0 -45
package/dist/Smtp.js DELETED
@@ -1,59 +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.Smtp = void 0;
14
- const HttpClient_1 = require("./HttpClient");
15
- class Smtp extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags Smtp
22
- * @name SmtpControllerCreate
23
- * @request POST:/smtp
24
- * @response `200` `ISmtpControllerCreateData` 发送邮件
25
- */
26
- this.smtpControllerCreate = (params = {}) => this.request({
27
- path: `/smtp`,
28
- method: 'POST',
29
- ...params,
30
- });
31
- /**
32
- * No description
33
- *
34
- * @tags Smtp
35
- * @name SmtpControllerFindAll
36
- * @request GET:/smtp
37
- * @response `200` `ISmtpControllerFindAllData`
38
- */
39
- this.smtpControllerFindAll = (params = {}) => this.request({
40
- path: `/smtp`,
41
- method: 'GET',
42
- ...params,
43
- });
44
- /**
45
- * No description
46
- *
47
- * @tags Smtp
48
- * @name SmtpControllerDeleteById
49
- * @request DELETE:/smtp/{id}
50
- * @response `200` `ISmtpControllerDeleteByIdData`
51
- */
52
- this.smtpControllerDeleteById = (id, params = {}) => this.request({
53
- path: `/smtp/${id}`,
54
- method: 'DELETE',
55
- ...params,
56
- });
57
- }
58
- }
59
- exports.Smtp = Smtp;
package/dist/Tag.d.ts DELETED
@@ -1,58 +0,0 @@
1
- import { ITagControllerCreateData } from './data-contracts';
2
- import { HttpClient, RequestParams } from './HttpClient';
3
- export declare class Tag<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
- /**
5
- * No description
6
- *
7
- * @tags Tag
8
- * @name TagControllerCreate
9
- * @request POST:/tag
10
- * @response `200` `ITagControllerCreateData` 创建标签
11
- */
12
- tagControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ITagControllerCreateData, any, {}>>;
13
- /**
14
- * No description
15
- *
16
- * @tags Tag
17
- * @name TagControllerFindAll
18
- * @request GET:/tag
19
- * @response `200` `ITagControllerFindAllData`
20
- */
21
- tagControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
22
- /**
23
- * No description
24
- *
25
- * @tags Tag
26
- * @name TagControllerFindById
27
- * @request GET:/tag/{id}
28
- * @response `200` `ITagControllerFindByIdData`
29
- */
30
- tagControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
31
- /**
32
- * No description
33
- *
34
- * @tags Tag
35
- * @name TagControllerUpdateById
36
- * @request PATCH:/tag/{id}
37
- * @response `200` `ITagControllerUpdateByIdData`
38
- */
39
- tagControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
40
- /**
41
- * No description
42
- *
43
- * @tags Tag
44
- * @name TagControllerDeleteById
45
- * @request DELETE:/tag/{id}
46
- * @response `200` `ITagControllerDeleteByIdData`
47
- */
48
- tagControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
49
- /**
50
- * No description
51
- *
52
- * @tags Tag
53
- * @name TagControllerGetArticleById
54
- * @request GET:/tag/{id}/article
55
- * @response `200` `ITagControllerGetArticleByIdData`
56
- */
57
- tagControllerGetArticleById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
58
- }
package/dist/Tag.js DELETED
@@ -1,98 +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.Tag = void 0;
14
- const HttpClient_1 = require("./HttpClient");
15
- class Tag extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags Tag
22
- * @name TagControllerCreate
23
- * @request POST:/tag
24
- * @response `200` `ITagControllerCreateData` 创建标签
25
- */
26
- this.tagControllerCreate = (params = {}) => this.request({
27
- path: `/tag`,
28
- method: 'POST',
29
- ...params,
30
- });
31
- /**
32
- * No description
33
- *
34
- * @tags Tag
35
- * @name TagControllerFindAll
36
- * @request GET:/tag
37
- * @response `200` `ITagControllerFindAllData`
38
- */
39
- this.tagControllerFindAll = (params = {}) => this.request({
40
- path: `/tag`,
41
- method: 'GET',
42
- ...params,
43
- });
44
- /**
45
- * No description
46
- *
47
- * @tags Tag
48
- * @name TagControllerFindById
49
- * @request GET:/tag/{id}
50
- * @response `200` `ITagControllerFindByIdData`
51
- */
52
- this.tagControllerFindById = (id, params = {}) => this.request({
53
- path: `/tag/${id}`,
54
- method: 'GET',
55
- ...params,
56
- });
57
- /**
58
- * No description
59
- *
60
- * @tags Tag
61
- * @name TagControllerUpdateById
62
- * @request PATCH:/tag/{id}
63
- * @response `200` `ITagControllerUpdateByIdData`
64
- */
65
- this.tagControllerUpdateById = (id, params = {}) => this.request({
66
- path: `/tag/${id}`,
67
- method: 'PATCH',
68
- ...params,
69
- });
70
- /**
71
- * No description
72
- *
73
- * @tags Tag
74
- * @name TagControllerDeleteById
75
- * @request DELETE:/tag/{id}
76
- * @response `200` `ITagControllerDeleteByIdData`
77
- */
78
- this.tagControllerDeleteById = (id, params = {}) => this.request({
79
- path: `/tag/${id}`,
80
- method: 'DELETE',
81
- ...params,
82
- });
83
- /**
84
- * No description
85
- *
86
- * @tags Tag
87
- * @name TagControllerGetArticleById
88
- * @request GET:/tag/{id}/article
89
- * @response `200` `ITagControllerGetArticleByIdData`
90
- */
91
- this.tagControllerGetArticleById = (id, params = {}) => this.request({
92
- path: `/tag/${id}/article`,
93
- method: 'GET',
94
- ...params,
95
- });
96
- }
97
- }
98
- exports.Tag = Tag;
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
- }