@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
@@ -1,12 +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 });
@@ -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,46 +0,0 @@
1
- export declare namespace Search {
2
- /**
3
- * No description
4
- * @tags Search
5
- * @name searchArticle
6
- * @request GET:/search/article
7
- * @response `200` `void`
8
- */
9
- namespace searchArticle {
10
- type RequestParams = {};
11
- type RequestQuery = {};
12
- type RequestBody = never;
13
- type RequestHeaders = {};
14
- type ResponseBody = void;
15
- }
16
- /**
17
- * No description
18
- * @tags Search
19
- * @name findAll
20
- * @request GET:/search
21
- * @response `200` `void`
22
- */
23
- namespace findAll {
24
- type RequestParams = {};
25
- type RequestQuery = {};
26
- type RequestBody = never;
27
- type RequestHeaders = {};
28
- type ResponseBody = void;
29
- }
30
- /**
31
- * No description
32
- * @tags Search
33
- * @name deleteById
34
- * @request DELETE:/search/{id}
35
- * @response `200` `void`
36
- */
37
- namespace deleteById {
38
- type RequestParams = {
39
- id: string;
40
- };
41
- type RequestQuery = {};
42
- type RequestBody = never;
43
- type RequestHeaders = {};
44
- type ResponseBody = void;
45
- }
46
- }
@@ -1,12 +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 });
@@ -1,31 +0,0 @@
1
- import { ISetting } from '../types/data-contracts';
2
- export declare namespace Setting {
3
- /**
4
- * No description
5
- * @tags Setting
6
- * @name update
7
- * @request POST:/setting
8
- * @response `200` `(ISetting)[]` 更新设置
9
- */
10
- namespace update {
11
- type RequestParams = {};
12
- type RequestQuery = {};
13
- type RequestBody = never;
14
- type RequestHeaders = {};
15
- type ResponseBody = ISetting[];
16
- }
17
- /**
18
- * No description
19
- * @tags Setting
20
- * @name findAll
21
- * @request POST:/setting/get
22
- * @response `200` `void`
23
- */
24
- namespace findAll {
25
- type RequestParams = {};
26
- type RequestQuery = {};
27
- type RequestBody = never;
28
- type RequestHeaders = {};
29
- type ResponseBody = void;
30
- }
31
- }
@@ -1,12 +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 });
@@ -1,47 +0,0 @@
1
- import { I_SMTP } from '../types/data-contracts';
2
- export declare namespace Smtp {
3
- /**
4
- * No description
5
- * @tags Smtp
6
- * @name create
7
- * @request POST:/smtp
8
- * @response `200` `(I_SMTP)[]` 发送邮件
9
- */
10
- namespace create {
11
- type RequestParams = {};
12
- type RequestQuery = {};
13
- type RequestBody = never;
14
- type RequestHeaders = {};
15
- type ResponseBody = I_SMTP[];
16
- }
17
- /**
18
- * No description
19
- * @tags Smtp
20
- * @name findAll
21
- * @request GET:/smtp
22
- * @response `200` `void`
23
- */
24
- namespace findAll {
25
- type RequestParams = {};
26
- type RequestQuery = {};
27
- type RequestBody = never;
28
- type RequestHeaders = {};
29
- type ResponseBody = void;
30
- }
31
- /**
32
- * No description
33
- * @tags Smtp
34
- * @name deleteById
35
- * @request DELETE:/smtp/{id}
36
- * @response `200` `void`
37
- */
38
- namespace deleteById {
39
- type RequestParams = {
40
- id: string;
41
- };
42
- type RequestQuery = {};
43
- type RequestBody = never;
44
- type RequestHeaders = {};
45
- type ResponseBody = void;
46
- }
47
- }
@@ -1,12 +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 });
@@ -1,95 +0,0 @@
1
- import { ITag } from '../types/data-contracts';
2
- export declare namespace Tag {
3
- /**
4
- * No description
5
- * @tags Tag
6
- * @name create
7
- * @request POST:/tag
8
- * @response `200` `(ITag)[]` 创建标签
9
- */
10
- namespace create {
11
- type RequestParams = {};
12
- type RequestQuery = {};
13
- type RequestBody = never;
14
- type RequestHeaders = {};
15
- type ResponseBody = ITag[];
16
- }
17
- /**
18
- * No description
19
- * @tags Tag
20
- * @name findAll
21
- * @request GET:/tag
22
- * @response `200` `void`
23
- */
24
- namespace findAll {
25
- type RequestParams = {};
26
- type RequestQuery = {};
27
- type RequestBody = never;
28
- type RequestHeaders = {};
29
- type ResponseBody = void;
30
- }
31
- /**
32
- * No description
33
- * @tags Tag
34
- * @name findById
35
- * @request GET:/tag/{id}
36
- * @response `200` `void`
37
- */
38
- namespace findById {
39
- type RequestParams = {
40
- id: string;
41
- };
42
- type RequestQuery = {};
43
- type RequestBody = never;
44
- type RequestHeaders = {};
45
- type ResponseBody = void;
46
- }
47
- /**
48
- * No description
49
- * @tags Tag
50
- * @name updateById
51
- * @request PATCH:/tag/{id}
52
- * @response `200` `void`
53
- */
54
- namespace updateById {
55
- type RequestParams = {
56
- id: string;
57
- };
58
- type RequestQuery = {};
59
- type RequestBody = never;
60
- type RequestHeaders = {};
61
- type ResponseBody = void;
62
- }
63
- /**
64
- * No description
65
- * @tags Tag
66
- * @name deleteById
67
- * @request DELETE:/tag/{id}
68
- * @response `200` `void`
69
- */
70
- namespace deleteById {
71
- type RequestParams = {
72
- id: string;
73
- };
74
- type RequestQuery = {};
75
- type RequestBody = never;
76
- type RequestHeaders = {};
77
- type ResponseBody = void;
78
- }
79
- /**
80
- * No description
81
- * @tags Tag
82
- * @name getArticleById
83
- * @request GET:/tag/{id}/article
84
- * @response `200` `void`
85
- */
86
- namespace getArticleById {
87
- type RequestParams = {
88
- id: string;
89
- };
90
- type RequestQuery = {};
91
- type RequestBody = never;
92
- type RequestHeaders = {};
93
- type ResponseBody = void;
94
- }
95
- }
@@ -1,12 +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 });
@@ -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
- }
@@ -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.Upload = void 0;
14
- class Upload {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags File
20
- * @name FileControllerUploadFile
21
- * @request POST:/file/upload
22
- * @response `200` `(IFile)[]` 上传文件
23
- */
24
- this.fileControllerUploadFile = (params = {}) => this.http.request({
25
- path: `/file/upload`,
26
- method: 'POST',
27
- format: 'json',
28
- ...params,
29
- });
30
- this.http = http;
31
- }
32
- }
33
- exports.Upload = Upload;
package/dist/api/Url.d.ts DELETED
@@ -1,14 +0,0 @@
1
- import { HttpClient, RequestParams } from './http-client';
2
- export declare class Url<SecurityDataType = unknown> {
3
- http: HttpClient<SecurityDataType>;
4
- constructor(http: HttpClient<SecurityDataType>);
5
- /**
6
- * No description
7
- *
8
- * @tags View
9
- * @name ViewControllerFindByUrl
10
- * @request GET:/view/url
11
- * @response `200` `void`
12
- */
13
- viewControllerFindByUrl: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
14
- }
package/dist/api/Url.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.Url = void 0;
14
- class Url {
15
- constructor(http) {
16
- /**
17
- * No description
18
- *
19
- * @tags View
20
- * @name ViewControllerFindByUrl
21
- * @request GET:/view/url
22
- * @response `200` `void`
23
- */
24
- this.viewControllerFindByUrl = (params = {}) => this.http.request({
25
- path: `/view/url`,
26
- method: 'GET',
27
- ...params,
28
- });
29
- this.http = http;
30
- }
31
- }
32
- exports.Url = Url;
@@ -1,60 +0,0 @@
1
- import { IUser } from '../types/data-contracts';
2
- export declare namespace User {
3
- /**
4
- * No description
5
- * @tags User
6
- * @name findAll
7
- * @request GET:/user
8
- * @response `200` `(IUser)[]` 获取用户列表
9
- * @response `403` `void` 无权获取用户列表
10
- */
11
- namespace findAll {
12
- type RequestParams = {};
13
- type RequestQuery = {};
14
- type RequestBody = never;
15
- type RequestHeaders = {};
16
- type ResponseBody = IUser[];
17
- }
18
- /**
19
- * No description
20
- * @tags User
21
- * @name register
22
- * @request POST:/user/register
23
- * @response `201` `(IUser)[]` 创建用户
24
- */
25
- namespace register {
26
- type RequestParams = {};
27
- type RequestQuery = {};
28
- type RequestBody = never;
29
- type RequestHeaders = {};
30
- type ResponseBody = IUser[];
31
- }
32
- /**
33
- * No description
34
- * @tags User
35
- * @name update
36
- * @request POST:/user/update
37
- * @response `200` `(IUser)[]` 更新用户成功
38
- */
39
- namespace update {
40
- type RequestParams = {};
41
- type RequestQuery = {};
42
- type RequestBody = never;
43
- type RequestHeaders = {};
44
- type ResponseBody = IUser[];
45
- }
46
- /**
47
- * No description
48
- * @tags User
49
- * @name updatePassword
50
- * @request POST:/user/password
51
- * @response `201` `(IUser)[]` 更新密码成功
52
- */
53
- namespace updatePassword {
54
- type RequestParams = {};
55
- type RequestQuery = {};
56
- type RequestBody = never;
57
- type RequestHeaders = {};
58
- type ResponseBody = IUser[];
59
- }
60
- }
@@ -1,12 +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 });