@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/Knowledge.js DELETED
@@ -1,124 +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.Knowledge = void 0;
14
- const HttpClient_1 = require("./HttpClient");
15
- class Knowledge extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags Knowledge
22
- * @name KnowledgeControllerCreateBook
23
- * @request POST:/Knowledge/book
24
- * @response `200` `IKnowledgeControllerCreateBookData` 创建知识库
25
- */
26
- this.knowledgeControllerCreateBook = (params = {}) => this.request({
27
- path: `/Knowledge/book`,
28
- method: 'POST',
29
- ...params,
30
- });
31
- /**
32
- * No description
33
- *
34
- * @tags Knowledge
35
- * @name KnowledgeControllerCreateChapter
36
- * @request POST:/Knowledge/chapter
37
- * @response `200` `IKnowledgeControllerCreateChapterData` 创建知识章节
38
- */
39
- this.knowledgeControllerCreateChapter = (params = {}) => this.request({
40
- path: `/Knowledge/chapter`,
41
- method: 'POST',
42
- ...params,
43
- });
44
- /**
45
- * No description
46
- *
47
- * @tags Knowledge
48
- * @name KnowledgeControllerDeleteById
49
- * @request DELETE:/Knowledge/{id}
50
- * @response `200` `IKnowledgeControllerDeleteByIdData`
51
- */
52
- this.knowledgeControllerDeleteById = (id, params = {}) => this.request({
53
- path: `/Knowledge/${id}`,
54
- method: 'DELETE',
55
- ...params,
56
- });
57
- /**
58
- * No description
59
- *
60
- * @tags Knowledge
61
- * @name KnowledgeControllerUpdateById
62
- * @request PATCH:/Knowledge/{id}
63
- * @response `200` `IKnowledgeControllerUpdateByIdData`
64
- */
65
- this.knowledgeControllerUpdateById = (id, params = {}) => this.request({
66
- path: `/Knowledge/${id}`,
67
- method: 'PATCH',
68
- ...params,
69
- });
70
- /**
71
- * No description
72
- *
73
- * @tags Knowledge
74
- * @name KnowledgeControllerFindById
75
- * @request GET:/Knowledge/{id}
76
- * @response `200` `IKnowledgeControllerFindByIdData`
77
- */
78
- this.knowledgeControllerFindById = (id, params = {}) => this.request({
79
- path: `/Knowledge/${id}`,
80
- method: 'GET',
81
- ...params,
82
- });
83
- /**
84
- * No description
85
- *
86
- * @tags Knowledge
87
- * @name KnowledgeControllerFindAll
88
- * @request GET:/Knowledge
89
- * @response `200` `IKnowledgeControllerFindAllData`
90
- */
91
- this.knowledgeControllerFindAll = (params = {}) => this.request({
92
- path: `/Knowledge`,
93
- method: 'GET',
94
- ...params,
95
- });
96
- /**
97
- * No description
98
- *
99
- * @tags Knowledge
100
- * @name KnowledgeControllerUpdateViewsById
101
- * @request POST:/Knowledge/{id}/views
102
- * @response `200` `IKnowledgeControllerUpdateViewsByIdData`
103
- */
104
- this.knowledgeControllerUpdateViewsById = (id, params = {}) => this.request({
105
- path: `/Knowledge/${id}/views`,
106
- method: 'POST',
107
- ...params,
108
- });
109
- /**
110
- * No description
111
- *
112
- * @tags Knowledge
113
- * @name KnowledgeControllerUpdateLikesById
114
- * @request POST:/Knowledge/{id}/likes
115
- * @response `200` `IKnowledgeControllerUpdateLikesByIdData`
116
- */
117
- this.knowledgeControllerUpdateLikesById = (id, params = {}) => this.request({
118
- path: `/Knowledge/${id}/likes`,
119
- method: 'POST',
120
- ...params,
121
- });
122
- }
123
- }
124
- exports.Knowledge = Knowledge;
package/dist/Page.d.ts DELETED
@@ -1,58 +0,0 @@
1
- import { IPageControllerCreateData } from './data-contracts';
2
- import { HttpClient, RequestParams } from './HttpClient';
3
- export declare class Page<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
- /**
5
- * No description
6
- *
7
- * @tags Page
8
- * @name PageControllerCreate
9
- * @request POST:/page
10
- * @response `200` `IPageControllerCreateData` 创建页面
11
- */
12
- pageControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IPageControllerCreateData, any, {}>>;
13
- /**
14
- * No description
15
- *
16
- * @tags Page
17
- * @name PageControllerFindAll
18
- * @request GET:/page
19
- * @response `200` `IPageControllerFindAllData`
20
- */
21
- pageControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
22
- /**
23
- * No description
24
- *
25
- * @tags Page
26
- * @name PageControllerFindById
27
- * @request GET:/page/{id}
28
- * @response `200` `IPageControllerFindByIdData`
29
- */
30
- pageControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
31
- /**
32
- * No description
33
- *
34
- * @tags Page
35
- * @name PageControllerUpdateById
36
- * @request PATCH:/page/{id}
37
- * @response `200` `IPageControllerUpdateByIdData`
38
- */
39
- pageControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
40
- /**
41
- * No description
42
- *
43
- * @tags Page
44
- * @name PageControllerDeleteById
45
- * @request DELETE:/page/{id}
46
- * @response `200` `IPageControllerDeleteByIdData`
47
- */
48
- pageControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
49
- /**
50
- * No description
51
- *
52
- * @tags Page
53
- * @name PageControllerUpdateViewsById
54
- * @request POST:/page/{id}/views
55
- * @response `200` `IPageControllerUpdateViewsByIdData`
56
- */
57
- pageControllerUpdateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
58
- }
package/dist/Page.js DELETED
@@ -1,98 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.Page = void 0;
14
- const HttpClient_1 = require("./HttpClient");
15
- class Page extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags Page
22
- * @name PageControllerCreate
23
- * @request POST:/page
24
- * @response `200` `IPageControllerCreateData` 创建页面
25
- */
26
- this.pageControllerCreate = (params = {}) => this.request({
27
- path: `/page`,
28
- method: 'POST',
29
- ...params,
30
- });
31
- /**
32
- * No description
33
- *
34
- * @tags Page
35
- * @name PageControllerFindAll
36
- * @request GET:/page
37
- * @response `200` `IPageControllerFindAllData`
38
- */
39
- this.pageControllerFindAll = (params = {}) => this.request({
40
- path: `/page`,
41
- method: 'GET',
42
- ...params,
43
- });
44
- /**
45
- * No description
46
- *
47
- * @tags Page
48
- * @name PageControllerFindById
49
- * @request GET:/page/{id}
50
- * @response `200` `IPageControllerFindByIdData`
51
- */
52
- this.pageControllerFindById = (id, params = {}) => this.request({
53
- path: `/page/${id}`,
54
- method: 'GET',
55
- ...params,
56
- });
57
- /**
58
- * No description
59
- *
60
- * @tags Page
61
- * @name PageControllerUpdateById
62
- * @request PATCH:/page/{id}
63
- * @response `200` `IPageControllerUpdateByIdData`
64
- */
65
- this.pageControllerUpdateById = (id, params = {}) => this.request({
66
- path: `/page/${id}`,
67
- method: 'PATCH',
68
- ...params,
69
- });
70
- /**
71
- * No description
72
- *
73
- * @tags Page
74
- * @name PageControllerDeleteById
75
- * @request DELETE:/page/{id}
76
- * @response `200` `IPageControllerDeleteByIdData`
77
- */
78
- this.pageControllerDeleteById = (id, params = {}) => this.request({
79
- path: `/page/${id}`,
80
- method: 'DELETE',
81
- ...params,
82
- });
83
- /**
84
- * No description
85
- *
86
- * @tags Page
87
- * @name PageControllerUpdateViewsById
88
- * @request POST:/page/{id}/views
89
- * @response `200` `IPageControllerUpdateViewsByIdData`
90
- */
91
- this.pageControllerUpdateViewsById = (id, params = {}) => this.request({
92
- path: `/page/${id}/views`,
93
- method: 'POST',
94
- ...params,
95
- });
96
- }
97
- }
98
- exports.Page = Page;
package/dist/Search.d.ts DELETED
@@ -1,30 +0,0 @@
1
- import { HttpClient, RequestParams } from './HttpClient';
2
- export declare class Search<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
3
- /**
4
- * No description
5
- *
6
- * @tags Search
7
- * @name SearchControllerSearchArticle
8
- * @request GET:/search/article
9
- * @response `200` `ISearchControllerSearchArticleData`
10
- */
11
- searchControllerSearchArticle: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
12
- /**
13
- * No description
14
- *
15
- * @tags Search
16
- * @name SearchControllerFindAll
17
- * @request GET:/search
18
- * @response `200` `ISearchControllerFindAllData`
19
- */
20
- searchControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
21
- /**
22
- * No description
23
- *
24
- * @tags Search
25
- * @name SearchControllerDeleteById
26
- * @request DELETE:/search/{id}
27
- * @response `200` `ISearchControllerDeleteByIdData`
28
- */
29
- searchControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
30
- }
package/dist/Search.js DELETED
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.Search = void 0;
14
- const HttpClient_1 = require("./HttpClient");
15
- class Search extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags Search
22
- * @name SearchControllerSearchArticle
23
- * @request GET:/search/article
24
- * @response `200` `ISearchControllerSearchArticleData`
25
- */
26
- this.searchControllerSearchArticle = (params = {}) => this.request({
27
- path: `/search/article`,
28
- method: 'GET',
29
- ...params,
30
- });
31
- /**
32
- * No description
33
- *
34
- * @tags Search
35
- * @name SearchControllerFindAll
36
- * @request GET:/search
37
- * @response `200` `ISearchControllerFindAllData`
38
- */
39
- this.searchControllerFindAll = (params = {}) => this.request({
40
- path: `/search`,
41
- method: 'GET',
42
- ...params,
43
- });
44
- /**
45
- * No description
46
- *
47
- * @tags Search
48
- * @name SearchControllerDeleteById
49
- * @request DELETE:/search/{id}
50
- * @response `200` `ISearchControllerDeleteByIdData`
51
- */
52
- this.searchControllerDeleteById = (id, params = {}) => this.request({
53
- path: `/search/${id}`,
54
- method: 'DELETE',
55
- ...params,
56
- });
57
- }
58
- }
59
- exports.Search = Search;
package/dist/Setting.d.ts DELETED
@@ -1,22 +0,0 @@
1
- import { ISettingControllerUpdateData } from './data-contracts';
2
- import { HttpClient, RequestParams } from './HttpClient';
3
- export declare class Setting<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
- /**
5
- * No description
6
- *
7
- * @tags Setting
8
- * @name SettingControllerUpdate
9
- * @request POST:/setting
10
- * @response `200` `ISettingControllerUpdateData` 更新设置
11
- */
12
- settingControllerUpdate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ISettingControllerUpdateData, any, {}>>;
13
- /**
14
- * No description
15
- *
16
- * @tags Setting
17
- * @name SettingControllerFindAll
18
- * @request POST:/setting/get
19
- * @response `200` `ISettingControllerFindAllData`
20
- */
21
- settingControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
22
- }
package/dist/Setting.js DELETED
@@ -1,46 +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.Setting = void 0;
14
- const HttpClient_1 = require("./HttpClient");
15
- class Setting extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags Setting
22
- * @name SettingControllerUpdate
23
- * @request POST:/setting
24
- * @response `200` `ISettingControllerUpdateData` 更新设置
25
- */
26
- this.settingControllerUpdate = (params = {}) => this.request({
27
- path: `/setting`,
28
- method: 'POST',
29
- ...params,
30
- });
31
- /**
32
- * No description
33
- *
34
- * @tags Setting
35
- * @name SettingControllerFindAll
36
- * @request POST:/setting/get
37
- * @response `200` `ISettingControllerFindAllData`
38
- */
39
- this.settingControllerFindAll = (params = {}) => this.request({
40
- path: `/setting/get`,
41
- method: 'POST',
42
- ...params,
43
- });
44
- }
45
- }
46
- exports.Setting = Setting;
package/dist/Smtp.d.ts DELETED
@@ -1,31 +0,0 @@
1
- import { ISmtpControllerCreateData } from './data-contracts';
2
- import { HttpClient, RequestParams } from './HttpClient';
3
- export declare class Smtp<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
- /**
5
- * No description
6
- *
7
- * @tags Smtp
8
- * @name SmtpControllerCreate
9
- * @request POST:/smtp
10
- * @response `200` `ISmtpControllerCreateData` 发送邮件
11
- */
12
- smtpControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ISmtpControllerCreateData, any, {}>>;
13
- /**
14
- * No description
15
- *
16
- * @tags Smtp
17
- * @name SmtpControllerFindAll
18
- * @request GET:/smtp
19
- * @response `200` `ISmtpControllerFindAllData`
20
- */
21
- smtpControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
22
- /**
23
- * No description
24
- *
25
- * @tags Smtp
26
- * @name SmtpControllerDeleteById
27
- * @request DELETE:/smtp/{id}
28
- * @response `200` `ISmtpControllerDeleteByIdData`
29
- */
30
- smtpControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
31
- }
package/dist/Smtp.js DELETED
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.Smtp = void 0;
14
- const HttpClient_1 = require("./HttpClient");
15
- class Smtp extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags Smtp
22
- * @name SmtpControllerCreate
23
- * @request POST:/smtp
24
- * @response `200` `ISmtpControllerCreateData` 发送邮件
25
- */
26
- this.smtpControllerCreate = (params = {}) => this.request({
27
- path: `/smtp`,
28
- method: 'POST',
29
- ...params,
30
- });
31
- /**
32
- * No description
33
- *
34
- * @tags Smtp
35
- * @name SmtpControllerFindAll
36
- * @request GET:/smtp
37
- * @response `200` `ISmtpControllerFindAllData`
38
- */
39
- this.smtpControllerFindAll = (params = {}) => this.request({
40
- path: `/smtp`,
41
- method: 'GET',
42
- ...params,
43
- });
44
- /**
45
- * No description
46
- *
47
- * @tags Smtp
48
- * @name SmtpControllerDeleteById
49
- * @request DELETE:/smtp/{id}
50
- * @response `200` `ISmtpControllerDeleteByIdData`
51
- */
52
- this.smtpControllerDeleteById = (id, params = {}) => this.request({
53
- path: `/smtp/${id}`,
54
- method: 'DELETE',
55
- ...params,
56
- });
57
- }
58
- }
59
- exports.Smtp = Smtp;
package/dist/Tag.d.ts DELETED
@@ -1,58 +0,0 @@
1
- import { ITagControllerCreateData } from './data-contracts';
2
- import { HttpClient, RequestParams } from './HttpClient';
3
- export declare class Tag<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
- /**
5
- * No description
6
- *
7
- * @tags Tag
8
- * @name TagControllerCreate
9
- * @request POST:/tag
10
- * @response `200` `ITagControllerCreateData` 创建标签
11
- */
12
- tagControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ITagControllerCreateData, any, {}>>;
13
- /**
14
- * No description
15
- *
16
- * @tags Tag
17
- * @name TagControllerFindAll
18
- * @request GET:/tag
19
- * @response `200` `ITagControllerFindAllData`
20
- */
21
- tagControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
22
- /**
23
- * No description
24
- *
25
- * @tags Tag
26
- * @name TagControllerFindById
27
- * @request GET:/tag/{id}
28
- * @response `200` `ITagControllerFindByIdData`
29
- */
30
- tagControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
31
- /**
32
- * No description
33
- *
34
- * @tags Tag
35
- * @name TagControllerUpdateById
36
- * @request PATCH:/tag/{id}
37
- * @response `200` `ITagControllerUpdateByIdData`
38
- */
39
- tagControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
40
- /**
41
- * No description
42
- *
43
- * @tags Tag
44
- * @name TagControllerDeleteById
45
- * @request DELETE:/tag/{id}
46
- * @response `200` `ITagControllerDeleteByIdData`
47
- */
48
- tagControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
49
- /**
50
- * No description
51
- *
52
- * @tags Tag
53
- * @name TagControllerGetArticleById
54
- * @request GET:/tag/{id}/article
55
- * @response `200` `ITagControllerGetArticleByIdData`
56
- */
57
- tagControllerGetArticleById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
58
- }
package/dist/Tag.js DELETED
@@ -1,98 +0,0 @@
1
- "use strict";
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.Tag = void 0;
14
- const HttpClient_1 = require("./HttpClient");
15
- class Tag extends HttpClient_1.HttpClient {
16
- constructor() {
17
- super(...arguments);
18
- /**
19
- * No description
20
- *
21
- * @tags Tag
22
- * @name TagControllerCreate
23
- * @request POST:/tag
24
- * @response `200` `ITagControllerCreateData` 创建标签
25
- */
26
- this.tagControllerCreate = (params = {}) => this.request({
27
- path: `/tag`,
28
- method: 'POST',
29
- ...params,
30
- });
31
- /**
32
- * No description
33
- *
34
- * @tags Tag
35
- * @name TagControllerFindAll
36
- * @request GET:/tag
37
- * @response `200` `ITagControllerFindAllData`
38
- */
39
- this.tagControllerFindAll = (params = {}) => this.request({
40
- path: `/tag`,
41
- method: 'GET',
42
- ...params,
43
- });
44
- /**
45
- * No description
46
- *
47
- * @tags Tag
48
- * @name TagControllerFindById
49
- * @request GET:/tag/{id}
50
- * @response `200` `ITagControllerFindByIdData`
51
- */
52
- this.tagControllerFindById = (id, params = {}) => this.request({
53
- path: `/tag/${id}`,
54
- method: 'GET',
55
- ...params,
56
- });
57
- /**
58
- * No description
59
- *
60
- * @tags Tag
61
- * @name TagControllerUpdateById
62
- * @request PATCH:/tag/{id}
63
- * @response `200` `ITagControllerUpdateByIdData`
64
- */
65
- this.tagControllerUpdateById = (id, params = {}) => this.request({
66
- path: `/tag/${id}`,
67
- method: 'PATCH',
68
- ...params,
69
- });
70
- /**
71
- * No description
72
- *
73
- * @tags Tag
74
- * @name TagControllerDeleteById
75
- * @request DELETE:/tag/{id}
76
- * @response `200` `ITagControllerDeleteByIdData`
77
- */
78
- this.tagControllerDeleteById = (id, params = {}) => this.request({
79
- path: `/tag/${id}`,
80
- method: 'DELETE',
81
- ...params,
82
- });
83
- /**
84
- * No description
85
- *
86
- * @tags Tag
87
- * @name TagControllerGetArticleById
88
- * @request GET:/tag/{id}/article
89
- * @response `200` `ITagControllerGetArticleByIdData`
90
- */
91
- this.tagControllerGetArticleById = (id, params = {}) => this.request({
92
- path: `/tag/${id}/article`,
93
- method: 'GET',
94
- ...params,
95
- });
96
- }
97
- }
98
- exports.Tag = Tag;