@fecommunity/reactpress-toolkit 1.0.0 → 3.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.
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/api/Id.d.ts DELETED
@@ -1,284 +0,0 @@
1
- import { HttpClient, RequestParams } from './http-client';
2
- export declare class Id<SecurityDataType = unknown> {
3
- http: HttpClient<SecurityDataType>;
4
- constructor(http: HttpClient<SecurityDataType>);
5
- /**
6
- * No description
7
- *
8
- * @tags Smtp
9
- * @name SmtpControllerDeleteById
10
- * @request DELETE:/smtp/{id}
11
- * @response `200` `void`
12
- */
13
- smtpControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
14
- /**
15
- * No description
16
- *
17
- * @tags File
18
- * @name FileControllerFindById
19
- * @request GET:/file/{id}
20
- * @response `200` `void`
21
- */
22
- fileControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
23
- /**
24
- * No description
25
- *
26
- * @tags File
27
- * @name FileControllerDeleteById
28
- * @request DELETE:/file/{id}
29
- * @response `200` `void`
30
- */
31
- fileControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
32
- /**
33
- * No description
34
- *
35
- * @tags Tag
36
- * @name TagControllerFindById
37
- * @request GET:/tag/{id}
38
- * @response `200` `void`
39
- */
40
- tagControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
41
- /**
42
- * No description
43
- *
44
- * @tags Tag
45
- * @name TagControllerUpdateById
46
- * @request PATCH:/tag/{id}
47
- * @response `200` `void`
48
- */
49
- tagControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
50
- /**
51
- * No description
52
- *
53
- * @tags Tag
54
- * @name TagControllerDeleteById
55
- * @request DELETE:/tag/{id}
56
- * @response `200` `void`
57
- */
58
- tagControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
59
- /**
60
- * No description
61
- *
62
- * @tags Tag
63
- * @name TagControllerGetArticleById
64
- * @request GET:/tag/{id}/article
65
- * @response `200` `void`
66
- */
67
- tagControllerGetArticleById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
68
- /**
69
- * No description
70
- *
71
- * @tags Article
72
- * @name ArticleControllerFindById
73
- * @request GET:/article/{id}
74
- * @response `200` `void`
75
- */
76
- articleControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
77
- /**
78
- * No description
79
- *
80
- * @tags Article
81
- * @name ArticleControllerUpdateById
82
- * @request PATCH:/article/{id}
83
- * @response `200` `void`
84
- */
85
- articleControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
86
- /**
87
- * No description
88
- *
89
- * @tags Article
90
- * @name ArticleControllerDeleteById
91
- * @request DELETE:/article/{id}
92
- * @response `200` `void`
93
- */
94
- articleControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
95
- /**
96
- * No description
97
- *
98
- * @tags Article
99
- * @name ArticleControllerCheckPassword
100
- * @request POST:/article/{id}/checkPassword
101
- * @response `200` `void`
102
- */
103
- articleControllerCheckPassword: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
104
- /**
105
- * No description
106
- *
107
- * @tags Article
108
- * @name ArticleControllerUpdateViewsById
109
- * @request POST:/article/{id}/views
110
- * @response `200` `void`
111
- */
112
- articleControllerUpdateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
113
- /**
114
- * No description
115
- *
116
- * @tags Article
117
- * @name ArticleControllerUpdateLikesById
118
- * @request POST:/article/{id}/likes
119
- * @response `200` `void`
120
- */
121
- articleControllerUpdateLikesById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
122
- /**
123
- * No description
124
- *
125
- * @tags Category
126
- * @name CategoryControllerFindById
127
- * @request GET:/category/{id}
128
- * @response `200` `void`
129
- */
130
- categoryControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
131
- /**
132
- * No description
133
- *
134
- * @tags Category
135
- * @name CategoryControllerUpdateById
136
- * @request PATCH:/category/{id}
137
- * @response `200` `void`
138
- */
139
- categoryControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
140
- /**
141
- * No description
142
- *
143
- * @tags Category
144
- * @name CategoryControllerDeleteById
145
- * @request DELETE:/category/{id}
146
- * @response `200` `void`
147
- */
148
- categoryControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
149
- /**
150
- * No description
151
- *
152
- * @tags Knowledge
153
- * @name KnowledgeControllerDeleteById
154
- * @request DELETE:/Knowledge/{id}
155
- * @response `200` `void`
156
- */
157
- knowledgeControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
158
- /**
159
- * No description
160
- *
161
- * @tags Knowledge
162
- * @name KnowledgeControllerUpdateById
163
- * @request PATCH:/Knowledge/{id}
164
- * @response `200` `void`
165
- */
166
- knowledgeControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
167
- /**
168
- * No description
169
- *
170
- * @tags Knowledge
171
- * @name KnowledgeControllerFindById
172
- * @request GET:/Knowledge/{id}
173
- * @response `200` `void`
174
- */
175
- knowledgeControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
176
- /**
177
- * No description
178
- *
179
- * @tags Knowledge
180
- * @name KnowledgeControllerUpdateViewsById
181
- * @request POST:/Knowledge/{id}/views
182
- * @response `200` `void`
183
- */
184
- knowledgeControllerUpdateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
185
- /**
186
- * No description
187
- *
188
- * @tags Knowledge
189
- * @name KnowledgeControllerUpdateLikesById
190
- * @request POST:/Knowledge/{id}/likes
191
- * @response `200` `void`
192
- */
193
- knowledgeControllerUpdateLikesById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
194
- /**
195
- * No description
196
- *
197
- * @tags Comment
198
- * @name CommentControllerFindById
199
- * @request GET:/comment/{id}
200
- * @response `200` `void`
201
- */
202
- commentControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
203
- /**
204
- * No description
205
- *
206
- * @tags Comment
207
- * @name CommentControllerUpdateById
208
- * @request PATCH:/comment/{id}
209
- * @response `200` `void`
210
- */
211
- commentControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
212
- /**
213
- * No description
214
- *
215
- * @tags Comment
216
- * @name CommentControllerDeleteById
217
- * @request DELETE:/comment/{id}
218
- * @response `200` `void`
219
- */
220
- commentControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
221
- /**
222
- * No description
223
- *
224
- * @tags Page
225
- * @name PageControllerFindById
226
- * @request GET:/page/{id}
227
- * @response `200` `void`
228
- */
229
- pageControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
230
- /**
231
- * No description
232
- *
233
- * @tags Page
234
- * @name PageControllerUpdateById
235
- * @request PATCH:/page/{id}
236
- * @response `200` `void`
237
- */
238
- pageControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
239
- /**
240
- * No description
241
- *
242
- * @tags Page
243
- * @name PageControllerDeleteById
244
- * @request DELETE:/page/{id}
245
- * @response `200` `void`
246
- */
247
- pageControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
248
- /**
249
- * No description
250
- *
251
- * @tags Page
252
- * @name PageControllerUpdateViewsById
253
- * @request POST:/page/{id}/views
254
- * @response `200` `void`
255
- */
256
- pageControllerUpdateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
257
- /**
258
- * No description
259
- *
260
- * @tags View
261
- * @name ViewControllerFindById
262
- * @request GET:/view/{id}
263
- * @response `200` `void`
264
- */
265
- viewControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
266
- /**
267
- * No description
268
- *
269
- * @tags View
270
- * @name ViewControllerDeleteById
271
- * @request DELETE:/view/{id}
272
- * @response `200` `void`
273
- */
274
- viewControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
275
- /**
276
- * No description
277
- *
278
- * @tags Search
279
- * @name SearchControllerDeleteById
280
- * @request DELETE:/search/{id}
281
- * @response `200` `void`
282
- */
283
- searchControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
284
- }
package/dist/api/Id.js DELETED
@@ -1,422 +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.Id = void 0;
14
- class Id {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags Smtp
20
- * @name SmtpControllerDeleteById
21
- * @request DELETE:/smtp/{id}
22
- * @response `200` `void`
23
- */
24
- this.smtpControllerDeleteById = (id, params = {}) => this.http.request({
25
- path: `/smtp/${id}`,
26
- method: 'DELETE',
27
- ...params,
28
- });
29
- /**
30
- * No description
31
- *
32
- * @tags File
33
- * @name FileControllerFindById
34
- * @request GET:/file/{id}
35
- * @response `200` `void`
36
- */
37
- this.fileControllerFindById = (id, params = {}) => this.http.request({
38
- path: `/file/${id}`,
39
- method: 'GET',
40
- ...params,
41
- });
42
- /**
43
- * No description
44
- *
45
- * @tags File
46
- * @name FileControllerDeleteById
47
- * @request DELETE:/file/{id}
48
- * @response `200` `void`
49
- */
50
- this.fileControllerDeleteById = (id, params = {}) => this.http.request({
51
- path: `/file/${id}`,
52
- method: 'DELETE',
53
- ...params,
54
- });
55
- /**
56
- * No description
57
- *
58
- * @tags Tag
59
- * @name TagControllerFindById
60
- * @request GET:/tag/{id}
61
- * @response `200` `void`
62
- */
63
- this.tagControllerFindById = (id, params = {}) => this.http.request({
64
- path: `/tag/${id}`,
65
- method: 'GET',
66
- ...params,
67
- });
68
- /**
69
- * No description
70
- *
71
- * @tags Tag
72
- * @name TagControllerUpdateById
73
- * @request PATCH:/tag/{id}
74
- * @response `200` `void`
75
- */
76
- this.tagControllerUpdateById = (id, params = {}) => this.http.request({
77
- path: `/tag/${id}`,
78
- method: 'PATCH',
79
- ...params,
80
- });
81
- /**
82
- * No description
83
- *
84
- * @tags Tag
85
- * @name TagControllerDeleteById
86
- * @request DELETE:/tag/{id}
87
- * @response `200` `void`
88
- */
89
- this.tagControllerDeleteById = (id, params = {}) => this.http.request({
90
- path: `/tag/${id}`,
91
- method: 'DELETE',
92
- ...params,
93
- });
94
- /**
95
- * No description
96
- *
97
- * @tags Tag
98
- * @name TagControllerGetArticleById
99
- * @request GET:/tag/{id}/article
100
- * @response `200` `void`
101
- */
102
- this.tagControllerGetArticleById = (id, params = {}) => this.http.request({
103
- path: `/tag/${id}/article`,
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` `void`
114
- */
115
- this.articleControllerFindById = (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` `void`
127
- */
128
- this.articleControllerUpdateById = (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` `void`
140
- */
141
- this.articleControllerDeleteById = (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` `void`
153
- */
154
- this.articleControllerCheckPassword = (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` `void`
166
- */
167
- this.articleControllerUpdateViewsById = (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` `void`
179
- */
180
- this.articleControllerUpdateLikesById = (id, params = {}) => this.http.request({
181
- path: `/article/${id}/likes`,
182
- method: 'POST',
183
- ...params,
184
- });
185
- /**
186
- * No description
187
- *
188
- * @tags Category
189
- * @name CategoryControllerFindById
190
- * @request GET:/category/{id}
191
- * @response `200` `void`
192
- */
193
- this.categoryControllerFindById = (id, params = {}) => this.http.request({
194
- path: `/category/${id}`,
195
- method: 'GET',
196
- ...params,
197
- });
198
- /**
199
- * No description
200
- *
201
- * @tags Category
202
- * @name CategoryControllerUpdateById
203
- * @request PATCH:/category/{id}
204
- * @response `200` `void`
205
- */
206
- this.categoryControllerUpdateById = (id, params = {}) => this.http.request({
207
- path: `/category/${id}`,
208
- method: 'PATCH',
209
- ...params,
210
- });
211
- /**
212
- * No description
213
- *
214
- * @tags Category
215
- * @name CategoryControllerDeleteById
216
- * @request DELETE:/category/{id}
217
- * @response `200` `void`
218
- */
219
- this.categoryControllerDeleteById = (id, params = {}) => this.http.request({
220
- path: `/category/${id}`,
221
- method: 'DELETE',
222
- ...params,
223
- });
224
- /**
225
- * No description
226
- *
227
- * @tags Knowledge
228
- * @name KnowledgeControllerDeleteById
229
- * @request DELETE:/Knowledge/{id}
230
- * @response `200` `void`
231
- */
232
- this.knowledgeControllerDeleteById = (id, params = {}) => this.http.request({
233
- path: `/Knowledge/${id}`,
234
- method: 'DELETE',
235
- ...params,
236
- });
237
- /**
238
- * No description
239
- *
240
- * @tags Knowledge
241
- * @name KnowledgeControllerUpdateById
242
- * @request PATCH:/Knowledge/{id}
243
- * @response `200` `void`
244
- */
245
- this.knowledgeControllerUpdateById = (id, params = {}) => this.http.request({
246
- path: `/Knowledge/${id}`,
247
- method: 'PATCH',
248
- ...params,
249
- });
250
- /**
251
- * No description
252
- *
253
- * @tags Knowledge
254
- * @name KnowledgeControllerFindById
255
- * @request GET:/Knowledge/{id}
256
- * @response `200` `void`
257
- */
258
- this.knowledgeControllerFindById = (id, params = {}) => this.http.request({
259
- path: `/Knowledge/${id}`,
260
- method: 'GET',
261
- ...params,
262
- });
263
- /**
264
- * No description
265
- *
266
- * @tags Knowledge
267
- * @name KnowledgeControllerUpdateViewsById
268
- * @request POST:/Knowledge/{id}/views
269
- * @response `200` `void`
270
- */
271
- this.knowledgeControllerUpdateViewsById = (id, params = {}) => this.http.request({
272
- path: `/Knowledge/${id}/views`,
273
- method: 'POST',
274
- ...params,
275
- });
276
- /**
277
- * No description
278
- *
279
- * @tags Knowledge
280
- * @name KnowledgeControllerUpdateLikesById
281
- * @request POST:/Knowledge/{id}/likes
282
- * @response `200` `void`
283
- */
284
- this.knowledgeControllerUpdateLikesById = (id, params = {}) => this.http.request({
285
- path: `/Knowledge/${id}/likes`,
286
- method: 'POST',
287
- ...params,
288
- });
289
- /**
290
- * No description
291
- *
292
- * @tags Comment
293
- * @name CommentControllerFindById
294
- * @request GET:/comment/{id}
295
- * @response `200` `void`
296
- */
297
- this.commentControllerFindById = (id, params = {}) => this.http.request({
298
- path: `/comment/${id}`,
299
- method: 'GET',
300
- ...params,
301
- });
302
- /**
303
- * No description
304
- *
305
- * @tags Comment
306
- * @name CommentControllerUpdateById
307
- * @request PATCH:/comment/{id}
308
- * @response `200` `void`
309
- */
310
- this.commentControllerUpdateById = (id, params = {}) => this.http.request({
311
- path: `/comment/${id}`,
312
- method: 'PATCH',
313
- ...params,
314
- });
315
- /**
316
- * No description
317
- *
318
- * @tags Comment
319
- * @name CommentControllerDeleteById
320
- * @request DELETE:/comment/{id}
321
- * @response `200` `void`
322
- */
323
- this.commentControllerDeleteById = (id, params = {}) => this.http.request({
324
- path: `/comment/${id}`,
325
- method: 'DELETE',
326
- ...params,
327
- });
328
- /**
329
- * No description
330
- *
331
- * @tags Page
332
- * @name PageControllerFindById
333
- * @request GET:/page/{id}
334
- * @response `200` `void`
335
- */
336
- this.pageControllerFindById = (id, params = {}) => this.http.request({
337
- path: `/page/${id}`,
338
- method: 'GET',
339
- ...params,
340
- });
341
- /**
342
- * No description
343
- *
344
- * @tags Page
345
- * @name PageControllerUpdateById
346
- * @request PATCH:/page/{id}
347
- * @response `200` `void`
348
- */
349
- this.pageControllerUpdateById = (id, params = {}) => this.http.request({
350
- path: `/page/${id}`,
351
- method: 'PATCH',
352
- ...params,
353
- });
354
- /**
355
- * No description
356
- *
357
- * @tags Page
358
- * @name PageControllerDeleteById
359
- * @request DELETE:/page/{id}
360
- * @response `200` `void`
361
- */
362
- this.pageControllerDeleteById = (id, params = {}) => this.http.request({
363
- path: `/page/${id}`,
364
- method: 'DELETE',
365
- ...params,
366
- });
367
- /**
368
- * No description
369
- *
370
- * @tags Page
371
- * @name PageControllerUpdateViewsById
372
- * @request POST:/page/{id}/views
373
- * @response `200` `void`
374
- */
375
- this.pageControllerUpdateViewsById = (id, params = {}) => this.http.request({
376
- path: `/page/${id}/views`,
377
- method: 'POST',
378
- ...params,
379
- });
380
- /**
381
- * No description
382
- *
383
- * @tags View
384
- * @name ViewControllerFindById
385
- * @request GET:/view/{id}
386
- * @response `200` `void`
387
- */
388
- this.viewControllerFindById = (id, params = {}) => this.http.request({
389
- path: `/view/${id}`,
390
- method: 'GET',
391
- ...params,
392
- });
393
- /**
394
- * No description
395
- *
396
- * @tags View
397
- * @name ViewControllerDeleteById
398
- * @request DELETE:/view/{id}
399
- * @response `200` `void`
400
- */
401
- this.viewControllerDeleteById = (id, params = {}) => this.http.request({
402
- path: `/view/${id}`,
403
- method: 'DELETE',
404
- ...params,
405
- });
406
- /**
407
- * No description
408
- *
409
- * @tags Search
410
- * @name SearchControllerDeleteById
411
- * @request DELETE:/search/{id}
412
- * @response `200` `void`
413
- */
414
- this.searchControllerDeleteById = (id, params = {}) => this.http.request({
415
- path: `/search/${id}`,
416
- method: 'DELETE',
417
- ...params,
418
- });
419
- this.http = http;
420
- }
421
- }
422
- exports.Id = Id;