@fecommunity/reactpress-toolkit 1.0.0-beta.1 → 1.0.0
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/README.md +405 -0
- package/dist/Article.d.ts +121 -0
- package/dist/Article.js +189 -0
- package/dist/Auth.d.ts +30 -0
- package/dist/Auth.js +59 -0
- package/dist/Category.d.ts +49 -0
- package/dist/Category.js +85 -0
- package/dist/Comment.d.ts +58 -0
- package/dist/Comment.js +98 -0
- package/dist/File.d.ts +40 -0
- package/dist/File.js +72 -0
- package/dist/HttpClient.d.ts +41 -0
- package/dist/HttpClient.js +94 -0
- package/dist/Knowledge.d.ts +76 -0
- package/dist/Knowledge.js +124 -0
- package/dist/Page.d.ts +58 -0
- package/dist/Page.js +98 -0
- package/dist/Search.d.ts +30 -0
- package/dist/Search.js +59 -0
- package/dist/Setting.d.ts +22 -0
- package/dist/Setting.js +46 -0
- package/dist/Smtp.d.ts +31 -0
- package/dist/Smtp.js +59 -0
- package/dist/Tag.d.ts +58 -0
- package/dist/Tag.js +98 -0
- package/dist/User.d.ts +41 -0
- package/dist/User.js +73 -0
- package/dist/View.d.ts +49 -0
- package/dist/View.js +85 -0
- package/dist/api/ApiInstance.d.ts +39 -0
- package/dist/api/ApiInstance.js +46 -0
- package/dist/api/Article.d.ts +44 -29
- package/dist/api/Article.js +42 -31
- package/dist/api/ArticleRoute.d.ts +201 -0
- package/dist/api/ArticleRoute.js +12 -0
- package/dist/api/Auth.d.ts +11 -6
- package/dist/api/Auth.js +10 -8
- package/dist/api/AuthRoute.d.ts +44 -0
- package/dist/api/AuthRoute.js +12 -0
- package/dist/api/Category.d.ts +20 -13
- package/dist/api/Category.js +18 -15
- package/dist/api/CategoryRoute.d.ts +79 -0
- package/dist/api/CategoryRoute.js +12 -0
- package/dist/api/Comment.d.ts +22 -14
- package/dist/api/Comment.js +20 -16
- package/dist/api/CommentRoute.d.ts +95 -0
- package/dist/api/CommentRoute.js +12 -0
- package/dist/api/File.d.ts +16 -10
- package/dist/api/File.js +14 -12
- package/dist/api/FileRoute.d.ts +63 -0
- package/dist/api/FileRoute.js +12 -0
- package/dist/api/Knowledge.d.ts +29 -19
- package/dist/api/Knowledge.js +27 -22
- package/dist/api/KnowledgeRoute.d.ts +125 -0
- package/dist/api/KnowledgeRoute.js +12 -0
- package/dist/api/Page.d.ts +23 -15
- package/dist/api/Page.js +21 -17
- package/dist/api/PageRoute.d.ts +95 -0
- package/dist/api/PageRoute.js +12 -0
- package/dist/api/Search.d.ts +12 -7
- package/dist/api/Search.js +11 -9
- package/dist/api/SearchRoute.d.ts +46 -0
- package/dist/api/SearchRoute.js +12 -0
- package/dist/api/Setting.d.ts +10 -6
- package/dist/api/Setting.js +8 -8
- package/dist/api/SettingRoute.d.ts +31 -0
- package/dist/api/SettingRoute.js +12 -0
- package/dist/api/Smtp.d.ts +14 -9
- package/dist/api/Smtp.js +12 -11
- package/dist/api/SmtpRoute.d.ts +47 -0
- package/dist/api/SmtpRoute.js +12 -0
- package/dist/api/Tag.d.ts +22 -14
- package/dist/api/Tag.js +20 -16
- package/dist/api/TagRoute.d.ts +95 -0
- package/dist/api/TagRoute.js +12 -0
- package/dist/api/User.d.ts +15 -8
- package/dist/api/User.js +13 -13
- package/dist/api/UserRoute.d.ts +60 -0
- package/dist/api/UserRoute.js +12 -0
- package/dist/api/View.d.ts +19 -12
- package/dist/api/View.js +17 -14
- package/dist/api/ViewRoute.d.ts +77 -0
- package/dist/api/ViewRoute.js +12 -0
- package/dist/api/httpClient.d.ts +5 -5
- package/dist/api/httpClient.js +4 -2
- package/dist/api/index.d.ts +13 -18
- package/dist/api/index.js +28 -41
- package/dist/api/instance.d.ts +47 -0
- package/dist/api/instance.js +71 -0
- package/dist/data-contracts.d.ts +245 -0
- package/dist/data-contracts.js +12 -0
- package/dist/index.d.ts +5 -9
- package/dist/index.js +16 -21
- package/dist/types/index.d.ts +245 -1
- package/dist/types/index.js +10 -17
- package/dist/utils/common.d.ts +1 -3
- package/dist/utils/common.js +5 -31
- package/dist/utils/http.js +4 -6
- package/dist/utils/index.d.ts +33 -2
- package/dist/utils/index.js +57 -18
- package/package.json +11 -6
- package/demos/simple.ts +0 -65
- package/scripts/generate-api-types.js +0 -571
- package/scripts/generate-swagger.js +0 -47
- package/scripts/organize-api.js +0 -136
- package/src/api/Article.ts +0 -186
- package/src/api/Auth.ts +0 -54
- package/src/api/Category.ts +0 -82
- package/src/api/Comment.ts +0 -95
- package/src/api/File.ts +0 -69
- package/src/api/Knowledge.ts +0 -122
- package/src/api/Page.ts +0 -95
- package/src/api/Search.ts +0 -54
- package/src/api/Setting.ts +0 -43
- package/src/api/Smtp.ts +0 -56
- package/src/api/Tag.ts +0 -95
- package/src/api/User.ts +0 -72
- package/src/api/View.ts +0 -82
- package/src/api/api-instance.ts +0 -69
- package/src/api/httpClient.ts +0 -140
- package/src/api/index.ts +0 -25
- package/src/index.ts +0 -18
- package/src/types/data-contracts.ts +0 -198
- package/src/types/index.ts +0 -4
- package/src/utils/common.ts +0 -108
- package/src/utils/http.ts +0 -52
- package/src/utils/index.ts +0 -5
- package/test-final.js +0 -56
- package/test-import.js +0 -34
- package/tsconfig.json +0 -20
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { IKnowledgeControllerCreateBookData, IKnowledgeControllerCreateChapterData } from './data-contracts';
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
+
export declare class Knowledge<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
|
+
/**
|
|
5
|
+
* No description
|
|
6
|
+
*
|
|
7
|
+
* @tags Knowledge
|
|
8
|
+
* @name KnowledgeControllerCreateBook
|
|
9
|
+
* @request POST:/Knowledge/book
|
|
10
|
+
* @response `200` `IKnowledgeControllerCreateBookData` 创建知识库
|
|
11
|
+
*/
|
|
12
|
+
knowledgeControllerCreateBook: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IKnowledgeControllerCreateBookData, any, {}>>;
|
|
13
|
+
/**
|
|
14
|
+
* No description
|
|
15
|
+
*
|
|
16
|
+
* @tags Knowledge
|
|
17
|
+
* @name KnowledgeControllerCreateChapter
|
|
18
|
+
* @request POST:/Knowledge/chapter
|
|
19
|
+
* @response `200` `IKnowledgeControllerCreateChapterData` 创建知识章节
|
|
20
|
+
*/
|
|
21
|
+
knowledgeControllerCreateChapter: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IKnowledgeControllerCreateChapterData, any, {}>>;
|
|
22
|
+
/**
|
|
23
|
+
* No description
|
|
24
|
+
*
|
|
25
|
+
* @tags Knowledge
|
|
26
|
+
* @name KnowledgeControllerDeleteById
|
|
27
|
+
* @request DELETE:/Knowledge/{id}
|
|
28
|
+
* @response `200` `IKnowledgeControllerDeleteByIdData`
|
|
29
|
+
*/
|
|
30
|
+
knowledgeControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
31
|
+
/**
|
|
32
|
+
* No description
|
|
33
|
+
*
|
|
34
|
+
* @tags Knowledge
|
|
35
|
+
* @name KnowledgeControllerUpdateById
|
|
36
|
+
* @request PATCH:/Knowledge/{id}
|
|
37
|
+
* @response `200` `IKnowledgeControllerUpdateByIdData`
|
|
38
|
+
*/
|
|
39
|
+
knowledgeControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
40
|
+
/**
|
|
41
|
+
* No description
|
|
42
|
+
*
|
|
43
|
+
* @tags Knowledge
|
|
44
|
+
* @name KnowledgeControllerFindById
|
|
45
|
+
* @request GET:/Knowledge/{id}
|
|
46
|
+
* @response `200` `IKnowledgeControllerFindByIdData`
|
|
47
|
+
*/
|
|
48
|
+
knowledgeControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
49
|
+
/**
|
|
50
|
+
* No description
|
|
51
|
+
*
|
|
52
|
+
* @tags Knowledge
|
|
53
|
+
* @name KnowledgeControllerFindAll
|
|
54
|
+
* @request GET:/Knowledge
|
|
55
|
+
* @response `200` `IKnowledgeControllerFindAllData`
|
|
56
|
+
*/
|
|
57
|
+
knowledgeControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
58
|
+
/**
|
|
59
|
+
* No description
|
|
60
|
+
*
|
|
61
|
+
* @tags Knowledge
|
|
62
|
+
* @name KnowledgeControllerUpdateViewsById
|
|
63
|
+
* @request POST:/Knowledge/{id}/views
|
|
64
|
+
* @response `200` `IKnowledgeControllerUpdateViewsByIdData`
|
|
65
|
+
*/
|
|
66
|
+
knowledgeControllerUpdateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
67
|
+
/**
|
|
68
|
+
* No description
|
|
69
|
+
*
|
|
70
|
+
* @tags Knowledge
|
|
71
|
+
* @name KnowledgeControllerUpdateLikesById
|
|
72
|
+
* @request POST:/Knowledge/{id}/likes
|
|
73
|
+
* @response `200` `IKnowledgeControllerUpdateLikesByIdData`
|
|
74
|
+
*/
|
|
75
|
+
knowledgeControllerUpdateLikesById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
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;
|
|
@@ -0,0 +1,22 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
}
|