@fecommunity/reactpress-toolkit 1.0.0-beta.1
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/demos/simple.ts +65 -0
- package/dist/api/Admin.d.ts +14 -0
- package/dist/api/Admin.js +32 -0
- package/dist/api/All.d.ts +14 -0
- package/dist/api/All.js +32 -0
- package/dist/api/Archives.d.ts +14 -0
- package/dist/api/Archives.js +32 -0
- package/dist/api/Article.d.ts +108 -0
- package/dist/api/Article.js +177 -0
- package/dist/api/Auth.d.ts +27 -0
- package/dist/api/Auth.js +56 -0
- package/dist/api/Book.d.ts +15 -0
- package/dist/api/Book.js +33 -0
- package/dist/api/Category.d.ts +44 -0
- package/dist/api/Category.js +81 -0
- package/dist/api/Chapter.d.ts +15 -0
- package/dist/api/Chapter.js +33 -0
- package/dist/api/Comment.d.ts +52 -0
- package/dist/api/Comment.js +93 -0
- package/dist/api/File.d.ts +36 -0
- package/dist/api/File.js +69 -0
- package/dist/api/Get.d.ts +14 -0
- package/dist/api/Get.js +32 -0
- package/dist/api/Github.d.ts +14 -0
- package/dist/api/Github.js +32 -0
- package/dist/api/Host.d.ts +14 -0
- package/dist/api/Host.js +32 -0
- package/dist/api/Id.d.ts +284 -0
- package/dist/api/Id.js +422 -0
- package/dist/api/Knowledge.d.ts +68 -0
- package/dist/api/Knowledge.js +118 -0
- package/dist/api/Login.d.ts +14 -0
- package/dist/api/Login.js +32 -0
- package/dist/api/Page.d.ts +52 -0
- package/dist/api/Page.js +93 -0
- package/dist/api/Password.d.ts +15 -0
- package/dist/api/Password.js +33 -0
- package/dist/api/Recommend.d.ts +14 -0
- package/dist/api/Recommend.js +32 -0
- package/dist/api/Register.d.ts +15 -0
- package/dist/api/Register.js +33 -0
- package/dist/api/Search.d.ts +27 -0
- package/dist/api/Search.js +56 -0
- package/dist/api/Setting.d.ts +20 -0
- package/dist/api/Setting.js +45 -0
- package/dist/api/Smtp.d.ts +28 -0
- package/dist/api/Smtp.js +57 -0
- package/dist/api/Tag.d.ts +52 -0
- package/dist/api/Tag.js +93 -0
- package/dist/api/Update.d.ts +15 -0
- package/dist/api/Update.js +33 -0
- package/dist/api/Upload.d.ts +15 -0
- package/dist/api/Upload.js +33 -0
- package/dist/api/Url.d.ts +14 -0
- package/dist/api/Url.js +32 -0
- package/dist/api/User.d.ts +36 -0
- package/dist/api/User.js +72 -0
- package/dist/api/View.d.ts +44 -0
- package/dist/api/View.js +81 -0
- package/dist/api/api-instance.d.ts +39 -0
- package/dist/api/api-instance.js +46 -0
- package/dist/api/http-client.d.ts +41 -0
- package/dist/api/http-client.js +94 -0
- package/dist/api/httpClient.d.ts +41 -0
- package/dist/api/httpClient.js +94 -0
- package/dist/api/index.d.ts +18 -0
- package/dist/api/index.js +43 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +46 -0
- package/dist/types/data-contracts.d.ts +177 -0
- package/dist/types/data-contracts.js +12 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +19 -0
- package/dist/utils/common.d.ts +23 -0
- package/dist/utils/common.js +78 -0
- package/dist/utils/http.d.ts +3 -0
- package/dist/utils/http.js +47 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +20 -0
- package/package.json +19 -0
- package/scripts/generate-api-types.js +571 -0
- package/scripts/generate-swagger.js +47 -0
- package/scripts/organize-api.js +136 -0
- package/src/api/Article.ts +186 -0
- package/src/api/Auth.ts +54 -0
- package/src/api/Category.ts +82 -0
- package/src/api/Comment.ts +95 -0
- package/src/api/File.ts +69 -0
- package/src/api/Knowledge.ts +122 -0
- package/src/api/Page.ts +95 -0
- package/src/api/Search.ts +54 -0
- package/src/api/Setting.ts +43 -0
- package/src/api/Smtp.ts +56 -0
- package/src/api/Tag.ts +95 -0
- package/src/api/User.ts +72 -0
- package/src/api/View.ts +82 -0
- package/src/api/api-instance.ts +69 -0
- package/src/api/httpClient.ts +140 -0
- package/src/api/index.ts +25 -0
- package/src/index.ts +18 -0
- package/src/types/data-contracts.ts +198 -0
- package/src/types/index.ts +4 -0
- package/src/utils/common.ts +108 -0
- package/src/utils/http.ts +52 -0
- package/src/utils/index.ts +5 -0
- package/test-final.js +56 -0
- package/test-import.js +34 -0
- package/tsconfig.json +20 -0
package/dist/api/Id.d.ts
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,422 @@
|
|
|
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;
|