@fecommunity/reactpress-toolkit 1.0.0-beta.1 → 1.0.0-beta.3

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 (121) hide show
  1. package/README.md +405 -0
  2. package/dist/api/Article.d.ts +44 -29
  3. package/dist/api/Article.js +42 -31
  4. package/dist/api/Auth.d.ts +11 -6
  5. package/dist/api/Auth.js +10 -8
  6. package/dist/api/Category.d.ts +20 -13
  7. package/dist/api/Category.js +18 -15
  8. package/dist/api/Comment.d.ts +22 -14
  9. package/dist/api/Comment.js +20 -16
  10. package/dist/api/File.d.ts +16 -10
  11. package/dist/api/File.js +14 -12
  12. package/dist/api/{http-client.d.ts → HttpClient.d.ts} +2 -2
  13. package/dist/api/{http-client.js → HttpClient.js} +4 -2
  14. package/dist/api/Knowledge.d.ts +29 -19
  15. package/dist/api/Knowledge.js +27 -22
  16. package/dist/api/Page.d.ts +23 -15
  17. package/dist/api/Page.js +21 -17
  18. package/dist/api/Search.d.ts +12 -7
  19. package/dist/api/Search.js +11 -9
  20. package/dist/api/Setting.d.ts +10 -6
  21. package/dist/api/Setting.js +8 -8
  22. package/dist/api/Smtp.d.ts +14 -9
  23. package/dist/api/Smtp.js +12 -11
  24. package/dist/api/Tag.d.ts +22 -14
  25. package/dist/api/Tag.js +20 -16
  26. package/dist/api/User.d.ts +15 -8
  27. package/dist/api/User.js +13 -13
  28. package/dist/api/View.d.ts +19 -12
  29. package/dist/api/View.js +17 -14
  30. package/dist/api/index.d.ts +13 -18
  31. package/dist/api/index.js +28 -41
  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 +93 -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 +5 -0
  39. package/dist/config/i18n.js +47 -0
  40. package/dist/config/index.d.ts +14 -0
  41. package/dist/config/index.js +30 -0
  42. package/dist/index.d.ts +8 -9
  43. package/dist/index.js +20 -18
  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 +15 -6
  51. package/demos/simple.ts +0 -65
  52. package/dist/api/Admin.d.ts +0 -14
  53. package/dist/api/Admin.js +0 -32
  54. package/dist/api/All.d.ts +0 -14
  55. package/dist/api/All.js +0 -32
  56. package/dist/api/Archives.d.ts +0 -14
  57. package/dist/api/Archives.js +0 -32
  58. package/dist/api/Book.d.ts +0 -15
  59. package/dist/api/Book.js +0 -33
  60. package/dist/api/Chapter.d.ts +0 -15
  61. package/dist/api/Chapter.js +0 -33
  62. package/dist/api/Get.d.ts +0 -14
  63. package/dist/api/Get.js +0 -32
  64. package/dist/api/Github.d.ts +0 -14
  65. package/dist/api/Github.js +0 -32
  66. package/dist/api/Host.d.ts +0 -14
  67. package/dist/api/Host.js +0 -32
  68. package/dist/api/Id.d.ts +0 -284
  69. package/dist/api/Id.js +0 -422
  70. package/dist/api/Login.d.ts +0 -14
  71. package/dist/api/Login.js +0 -32
  72. package/dist/api/Password.d.ts +0 -15
  73. package/dist/api/Password.js +0 -33
  74. package/dist/api/Recommend.d.ts +0 -14
  75. package/dist/api/Recommend.js +0 -32
  76. package/dist/api/Register.d.ts +0 -15
  77. package/dist/api/Register.js +0 -33
  78. package/dist/api/Update.d.ts +0 -15
  79. package/dist/api/Update.js +0 -33
  80. package/dist/api/Upload.d.ts +0 -15
  81. package/dist/api/Upload.js +0 -33
  82. package/dist/api/Url.d.ts +0 -14
  83. package/dist/api/Url.js +0 -32
  84. package/dist/api/api-instance.d.ts +0 -39
  85. package/dist/api/api-instance.js +0 -46
  86. package/dist/api/httpClient.d.ts +0 -41
  87. package/dist/api/httpClient.js +0 -94
  88. package/dist/types/data-contracts.d.ts +0 -177
  89. package/dist/types/data-contracts.js +0 -12
  90. package/dist/utils/common.d.ts +0 -23
  91. package/dist/utils/common.js +0 -78
  92. package/dist/utils/http.d.ts +0 -3
  93. package/dist/utils/http.js +0 -47
  94. package/scripts/generate-api-types.js +0 -571
  95. package/scripts/generate-swagger.js +0 -47
  96. package/scripts/organize-api.js +0 -136
  97. package/src/api/Article.ts +0 -186
  98. package/src/api/Auth.ts +0 -54
  99. package/src/api/Category.ts +0 -82
  100. package/src/api/Comment.ts +0 -95
  101. package/src/api/File.ts +0 -69
  102. package/src/api/Knowledge.ts +0 -122
  103. package/src/api/Page.ts +0 -95
  104. package/src/api/Search.ts +0 -54
  105. package/src/api/Setting.ts +0 -43
  106. package/src/api/Smtp.ts +0 -56
  107. package/src/api/Tag.ts +0 -95
  108. package/src/api/User.ts +0 -72
  109. package/src/api/View.ts +0 -82
  110. package/src/api/api-instance.ts +0 -69
  111. package/src/api/httpClient.ts +0 -140
  112. package/src/api/index.ts +0 -25
  113. package/src/index.ts +0 -18
  114. package/src/types/data-contracts.ts +0 -198
  115. package/src/types/index.ts +0 -4
  116. package/src/utils/common.ts +0 -108
  117. package/src/utils/http.ts +0 -52
  118. package/src/utils/index.ts +0 -5
  119. package/test-final.js +0 -56
  120. package/test-import.js +0 -34
  121. package/tsconfig.json +0 -20
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;
@@ -1,14 +0,0 @@
1
- import { HttpClient, RequestParams } from './http-client';
2
- export declare class Login<SecurityDataType = unknown> {
3
- http: HttpClient<SecurityDataType>;
4
- constructor(http: HttpClient<SecurityDataType>);
5
- /**
6
- * No description
7
- *
8
- * @tags Auth
9
- * @name AuthControllerLogin
10
- * @request POST:/auth/login
11
- * @response `200` `void`
12
- */
13
- authControllerLogin: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
14
- }
package/dist/api/Login.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.Login = void 0;
14
- class Login {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags Auth
20
- * @name AuthControllerLogin
21
- * @request POST:/auth/login
22
- * @response `200` `void`
23
- */
24
- this.authControllerLogin = (params = {}) => this.http.request({
25
- path: `/auth/login`,
26
- method: 'POST',
27
- ...params,
28
- });
29
- this.http = http;
30
- }
31
- }
32
- exports.Login = Login;
@@ -1,15 +0,0 @@
1
- import { IUser } from '../types/data-contracts';
2
- import { HttpClient, RequestParams } from './http-client';
3
- export declare class Password<SecurityDataType = unknown> {
4
- http: HttpClient<SecurityDataType>;
5
- constructor(http: HttpClient<SecurityDataType>);
6
- /**
7
- * No description
8
- *
9
- * @tags User
10
- * @name UserControllerUpdatePassword
11
- * @request POST:/user/password
12
- * @response `201` `(IUser)[]` 更新密码成功
13
- */
14
- userControllerUpdatePassword: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUser[], any, {}>>;
15
- }
@@ -1,33 +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.Password = void 0;
14
- class Password {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags User
20
- * @name UserControllerUpdatePassword
21
- * @request POST:/user/password
22
- * @response `201` `(IUser)[]` 更新密码成功
23
- */
24
- this.userControllerUpdatePassword = (params = {}) => this.http.request({
25
- path: `/user/password`,
26
- method: 'POST',
27
- format: 'json',
28
- ...params,
29
- });
30
- this.http = http;
31
- }
32
- }
33
- exports.Password = Password;
@@ -1,14 +0,0 @@
1
- import { HttpClient, RequestParams } from './http-client';
2
- export declare class Recommend<SecurityDataType = unknown> {
3
- http: HttpClient<SecurityDataType>;
4
- constructor(http: HttpClient<SecurityDataType>);
5
- /**
6
- * No description
7
- *
8
- * @tags Article
9
- * @name ArticleControllerRecommend
10
- * @request GET:/article/recommend
11
- * @response `200` `void`
12
- */
13
- articleControllerRecommend: (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.Recommend = void 0;
14
- class Recommend {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags Article
20
- * @name ArticleControllerRecommend
21
- * @request GET:/article/recommend
22
- * @response `200` `void`
23
- */
24
- this.articleControllerRecommend = (params = {}) => this.http.request({
25
- path: `/article/recommend`,
26
- method: 'GET',
27
- ...params,
28
- });
29
- this.http = http;
30
- }
31
- }
32
- exports.Recommend = Recommend;
@@ -1,15 +0,0 @@
1
- import { IUser } from '../types/data-contracts';
2
- import { HttpClient, RequestParams } from './http-client';
3
- export declare class Register<SecurityDataType = unknown> {
4
- http: HttpClient<SecurityDataType>;
5
- constructor(http: HttpClient<SecurityDataType>);
6
- /**
7
- * No description
8
- *
9
- * @tags User
10
- * @name UserControllerRegister
11
- * @request POST:/user/register
12
- * @response `201` `(IUser)[]` 创建用户
13
- */
14
- userControllerRegister: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUser[], any, {}>>;
15
- }
@@ -1,33 +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.Register = void 0;
14
- class Register {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags User
20
- * @name UserControllerRegister
21
- * @request POST:/user/register
22
- * @response `201` `(IUser)[]` 创建用户
23
- */
24
- this.userControllerRegister = (params = {}) => this.http.request({
25
- path: `/user/register`,
26
- method: 'POST',
27
- format: 'json',
28
- ...params,
29
- });
30
- this.http = http;
31
- }
32
- }
33
- exports.Register = Register;
@@ -1,15 +0,0 @@
1
- import { IUser } from '../types/data-contracts';
2
- import { HttpClient, RequestParams } from './http-client';
3
- export declare class Update<SecurityDataType = unknown> {
4
- http: HttpClient<SecurityDataType>;
5
- constructor(http: HttpClient<SecurityDataType>);
6
- /**
7
- * No description
8
- *
9
- * @tags User
10
- * @name UserControllerUpdate
11
- * @request POST:/user/update
12
- * @response `200` `(IUser)[]` 更新用户成功
13
- */
14
- userControllerUpdate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUser[], any, {}>>;
15
- }
@@ -1,33 +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.Update = void 0;
14
- class Update {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags User
20
- * @name UserControllerUpdate
21
- * @request POST:/user/update
22
- * @response `200` `(IUser)[]` 更新用户成功
23
- */
24
- this.userControllerUpdate = (params = {}) => this.http.request({
25
- path: `/user/update`,
26
- method: 'POST',
27
- format: 'json',
28
- ...params,
29
- });
30
- this.http = http;
31
- }
32
- }
33
- exports.Update = Update;
@@ -1,15 +0,0 @@
1
- import { IFile } from '../types/data-contracts';
2
- import { HttpClient, RequestParams } from './http-client';
3
- export declare class Upload<SecurityDataType = unknown> {
4
- http: HttpClient<SecurityDataType>;
5
- constructor(http: HttpClient<SecurityDataType>);
6
- /**
7
- * No description
8
- *
9
- * @tags File
10
- * @name FileControllerUploadFile
11
- * @request POST:/file/upload
12
- * @response `200` `(IFile)[]` 上传文件
13
- */
14
- fileControllerUploadFile: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IFile[], any, {}>>;
15
- }