@fecommunity/reactpress-toolkit 1.0.0-beta.1 → 1.0.0-beta.2
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 +190 -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 +11 -11
- package/dist/api/Article.js +12 -12
- package/dist/api/ArticleRoute.d.ts +201 -0
- package/dist/api/ArticleRoute.js +12 -0
- package/dist/api/Auth.d.ts +5 -5
- package/dist/api/Auth.js +6 -6
- package/dist/api/AuthRoute.d.ts +44 -0
- package/dist/api/AuthRoute.js +12 -0
- package/dist/api/Category.d.ts +1 -1
- package/dist/api/Category.js +2 -2
- package/dist/api/CategoryRoute.d.ts +79 -0
- package/dist/api/CategoryRoute.js +12 -0
- package/dist/api/Comment.d.ts +3 -3
- package/dist/api/Comment.js +4 -4
- package/dist/api/CommentRoute.d.ts +95 -0
- package/dist/api/CommentRoute.js +12 -0
- package/dist/api/File.d.ts +3 -3
- package/dist/api/File.js +4 -4
- package/dist/api/FileRoute.d.ts +63 -0
- package/dist/api/FileRoute.js +12 -0
- package/dist/api/Knowledge.d.ts +5 -5
- package/dist/api/Knowledge.js +6 -6
- package/dist/api/KnowledgeRoute.d.ts +125 -0
- package/dist/api/KnowledgeRoute.js +12 -0
- package/dist/api/Page.d.ts +3 -3
- package/dist/api/Page.js +4 -4
- package/dist/api/PageRoute.d.ts +95 -0
- package/dist/api/PageRoute.js +12 -0
- package/dist/api/Search.d.ts +3 -3
- package/dist/api/Search.js +4 -4
- package/dist/api/SearchRoute.d.ts +46 -0
- package/dist/api/SearchRoute.js +12 -0
- package/dist/api/Setting.d.ts +3 -3
- package/dist/api/Setting.js +4 -4
- package/dist/api/SettingRoute.d.ts +31 -0
- package/dist/api/SettingRoute.js +12 -0
- package/dist/api/Smtp.d.ts +1 -1
- package/dist/api/Smtp.js +2 -2
- package/dist/api/SmtpRoute.d.ts +47 -0
- package/dist/api/SmtpRoute.js +12 -0
- package/dist/api/Tag.d.ts +3 -3
- package/dist/api/Tag.js +4 -4
- package/dist/api/TagRoute.d.ts +95 -0
- package/dist/api/TagRoute.js +12 -0
- package/dist/api/User.d.ts +7 -7
- package/dist/api/User.js +8 -8
- package/dist/api/UserRoute.d.ts +60 -0
- package/dist/api/UserRoute.js +12 -0
- package/dist/api/View.d.ts +3 -3
- package/dist/api/View.js +4 -4
- package/dist/api/ViewRoute.d.ts +77 -0
- package/dist/api/ViewRoute.js +12 -0
- package/dist/api/httpClient.d.ts +1 -0
- package/dist/api/httpClient.js +1 -0
- package/dist/api/index.d.ts +5 -5
- package/dist/api/index.js +6 -7
- 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 +14 -15
- package/dist/utils/common.d.ts +1 -3
- package/dist/utils/common.js +5 -31
- package/dist/utils/http.js +4 -6
- package/package.json +5 -3
- 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,125 @@
|
|
|
1
|
+
import { IKnowledge } from '../types/data-contracts';
|
|
2
|
+
export declare namespace Knowledge {
|
|
3
|
+
/**
|
|
4
|
+
* No description
|
|
5
|
+
* @tags Knowledge
|
|
6
|
+
* @name createBook
|
|
7
|
+
* @request POST:/Knowledge/book
|
|
8
|
+
* @response `200` `(IKnowledge)[]` 创建知识库
|
|
9
|
+
*/
|
|
10
|
+
namespace createBook {
|
|
11
|
+
type RequestParams = {};
|
|
12
|
+
type RequestQuery = {};
|
|
13
|
+
type RequestBody = never;
|
|
14
|
+
type RequestHeaders = {};
|
|
15
|
+
type ResponseBody = IKnowledge[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* No description
|
|
19
|
+
* @tags Knowledge
|
|
20
|
+
* @name createChapter
|
|
21
|
+
* @request POST:/Knowledge/chapter
|
|
22
|
+
* @response `200` `(IKnowledge)[]` 创建知识章节
|
|
23
|
+
*/
|
|
24
|
+
namespace createChapter {
|
|
25
|
+
type RequestParams = {};
|
|
26
|
+
type RequestQuery = {};
|
|
27
|
+
type RequestBody = never;
|
|
28
|
+
type RequestHeaders = {};
|
|
29
|
+
type ResponseBody = IKnowledge[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* No description
|
|
33
|
+
* @tags Knowledge
|
|
34
|
+
* @name deleteById
|
|
35
|
+
* @request DELETE:/Knowledge/{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
|
+
/**
|
|
48
|
+
* No description
|
|
49
|
+
* @tags Knowledge
|
|
50
|
+
* @name updateById
|
|
51
|
+
* @request PATCH:/Knowledge/{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 Knowledge
|
|
66
|
+
* @name findById
|
|
67
|
+
* @request GET:/Knowledge/{id}
|
|
68
|
+
* @response `200` `void`
|
|
69
|
+
*/
|
|
70
|
+
namespace findById {
|
|
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 Knowledge
|
|
82
|
+
* @name findAll
|
|
83
|
+
* @request GET:/Knowledge
|
|
84
|
+
* @response `200` `void`
|
|
85
|
+
*/
|
|
86
|
+
namespace findAll {
|
|
87
|
+
type RequestParams = {};
|
|
88
|
+
type RequestQuery = {};
|
|
89
|
+
type RequestBody = never;
|
|
90
|
+
type RequestHeaders = {};
|
|
91
|
+
type ResponseBody = void;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* No description
|
|
95
|
+
* @tags Knowledge
|
|
96
|
+
* @name updateViewsById
|
|
97
|
+
* @request POST:/Knowledge/{id}/views
|
|
98
|
+
* @response `200` `void`
|
|
99
|
+
*/
|
|
100
|
+
namespace updateViewsById {
|
|
101
|
+
type RequestParams = {
|
|
102
|
+
id: string;
|
|
103
|
+
};
|
|
104
|
+
type RequestQuery = {};
|
|
105
|
+
type RequestBody = never;
|
|
106
|
+
type RequestHeaders = {};
|
|
107
|
+
type ResponseBody = void;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* No description
|
|
111
|
+
* @tags Knowledge
|
|
112
|
+
* @name updateLikesById
|
|
113
|
+
* @request POST:/Knowledge/{id}/likes
|
|
114
|
+
* @response `200` `void`
|
|
115
|
+
*/
|
|
116
|
+
namespace updateLikesById {
|
|
117
|
+
type RequestParams = {
|
|
118
|
+
id: string;
|
|
119
|
+
};
|
|
120
|
+
type RequestQuery = {};
|
|
121
|
+
type RequestBody = never;
|
|
122
|
+
type RequestHeaders = {};
|
|
123
|
+
type ResponseBody = void;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 });
|
package/dist/api/Page.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPage } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
3
|
export declare class Page<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
4
|
/**
|
|
5
5
|
* No description
|
|
@@ -45,8 +45,8 @@ export declare class Page<SecurityDataType = unknown> extends HttpClient<Securit
|
|
|
45
45
|
* No description
|
|
46
46
|
*
|
|
47
47
|
* @tags Page
|
|
48
|
-
* @name
|
|
48
|
+
* @name updateViewsById
|
|
49
49
|
* @request POST:/page/{id}/views
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
updateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
52
52
|
}
|
package/dist/api/Page.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.Page = void 0;
|
|
14
|
-
const
|
|
15
|
-
class Page extends
|
|
14
|
+
const HttpClient_1 = require("./HttpClient");
|
|
15
|
+
class Page extends HttpClient_1.HttpClient {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
/**
|
|
@@ -80,10 +80,10 @@ class Page extends httpClient_1.HttpClient {
|
|
|
80
80
|
* No description
|
|
81
81
|
*
|
|
82
82
|
* @tags Page
|
|
83
|
-
* @name
|
|
83
|
+
* @name updateViewsById
|
|
84
84
|
* @request POST:/page/{id}/views
|
|
85
85
|
*/
|
|
86
|
-
this.
|
|
86
|
+
this.updateViewsById = (id, params = {}) => this.request({
|
|
87
87
|
path: `/page/${id}/views`,
|
|
88
88
|
method: 'POST',
|
|
89
89
|
...params,
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { IPage } from '../types/data-contracts';
|
|
2
|
+
export declare namespace Page {
|
|
3
|
+
/**
|
|
4
|
+
* No description
|
|
5
|
+
* @tags Page
|
|
6
|
+
* @name create
|
|
7
|
+
* @request POST:/page
|
|
8
|
+
* @response `200` `(IPage)[]` 创建页面
|
|
9
|
+
*/
|
|
10
|
+
namespace create {
|
|
11
|
+
type RequestParams = {};
|
|
12
|
+
type RequestQuery = {};
|
|
13
|
+
type RequestBody = never;
|
|
14
|
+
type RequestHeaders = {};
|
|
15
|
+
type ResponseBody = IPage[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* No description
|
|
19
|
+
* @tags Page
|
|
20
|
+
* @name findAll
|
|
21
|
+
* @request GET:/page
|
|
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 Page
|
|
34
|
+
* @name findById
|
|
35
|
+
* @request GET:/page/{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 Page
|
|
50
|
+
* @name updateById
|
|
51
|
+
* @request PATCH:/page/{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 Page
|
|
66
|
+
* @name deleteById
|
|
67
|
+
* @request DELETE:/page/{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 Page
|
|
82
|
+
* @name updateViewsById
|
|
83
|
+
* @request POST:/page/{id}/views
|
|
84
|
+
* @response `200` `void`
|
|
85
|
+
*/
|
|
86
|
+
namespace updateViewsById {
|
|
87
|
+
type RequestParams = {
|
|
88
|
+
id: string;
|
|
89
|
+
};
|
|
90
|
+
type RequestQuery = {};
|
|
91
|
+
type RequestBody = never;
|
|
92
|
+
type RequestHeaders = {};
|
|
93
|
+
type ResponseBody = void;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 });
|
package/dist/api/Search.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './
|
|
1
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
2
2
|
export declare class Search<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
3
3
|
/**
|
|
4
4
|
* No description
|
|
5
5
|
*
|
|
6
6
|
* @tags Search
|
|
7
|
-
* @name
|
|
7
|
+
* @name searchArticle
|
|
8
8
|
* @request GET:/search/article
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
searchArticle: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
11
11
|
/**
|
|
12
12
|
* No description
|
|
13
13
|
*
|
package/dist/api/Search.js
CHANGED
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.Search = void 0;
|
|
14
|
-
const
|
|
15
|
-
class Search extends
|
|
14
|
+
const HttpClient_1 = require("./HttpClient");
|
|
15
|
+
class Search extends HttpClient_1.HttpClient {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
/**
|
|
19
19
|
* No description
|
|
20
20
|
*
|
|
21
21
|
* @tags Search
|
|
22
|
-
* @name
|
|
22
|
+
* @name searchArticle
|
|
23
23
|
* @request GET:/search/article
|
|
24
24
|
*/
|
|
25
|
-
this.
|
|
25
|
+
this.searchArticle = (params = {}) => this.request({
|
|
26
26
|
path: `/search/article`,
|
|
27
27
|
method: 'GET',
|
|
28
28
|
...params,
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 });
|
package/dist/api/Setting.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ISetting } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
3
|
export declare class Setting<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
4
|
/**
|
|
5
5
|
* No description
|
|
6
6
|
*
|
|
7
7
|
* @tags Setting
|
|
8
|
-
* @name
|
|
8
|
+
* @name update
|
|
9
9
|
* @request POST:/setting
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
update: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ISetting[], any, {}>>;
|
|
12
12
|
/**
|
|
13
13
|
* No description
|
|
14
14
|
*
|
package/dist/api/Setting.js
CHANGED
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.Setting = void 0;
|
|
14
|
-
const
|
|
15
|
-
class Setting extends
|
|
14
|
+
const HttpClient_1 = require("./HttpClient");
|
|
15
|
+
class Setting extends HttpClient_1.HttpClient {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
/**
|
|
19
19
|
* No description
|
|
20
20
|
*
|
|
21
21
|
* @tags Setting
|
|
22
|
-
* @name
|
|
22
|
+
* @name update
|
|
23
23
|
* @request POST:/setting
|
|
24
24
|
*/
|
|
25
|
-
this.
|
|
25
|
+
this.update = (params = {}) => this.request({
|
|
26
26
|
path: `/setting`,
|
|
27
27
|
method: 'POST',
|
|
28
28
|
format: 'json',
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 });
|
package/dist/api/Smtp.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I_SMTP } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
3
|
export declare class Smtp<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
4
|
/**
|
|
5
5
|
* No description
|
package/dist/api/Smtp.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.Smtp = void 0;
|
|
14
|
-
const
|
|
15
|
-
class Smtp extends
|
|
14
|
+
const HttpClient_1 = require("./HttpClient");
|
|
15
|
+
class Smtp extends HttpClient_1.HttpClient {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
/**
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 });
|
package/dist/api/Tag.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ITag } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
3
|
export declare class Tag<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
4
|
/**
|
|
5
5
|
* No description
|
|
@@ -45,8 +45,8 @@ export declare class Tag<SecurityDataType = unknown> extends HttpClient<Security
|
|
|
45
45
|
* No description
|
|
46
46
|
*
|
|
47
47
|
* @tags Tag
|
|
48
|
-
* @name
|
|
48
|
+
* @name getArticleById
|
|
49
49
|
* @request GET:/tag/{id}/article
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
getArticleById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
52
52
|
}
|
package/dist/api/Tag.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.Tag = void 0;
|
|
14
|
-
const
|
|
15
|
-
class Tag extends
|
|
14
|
+
const HttpClient_1 = require("./HttpClient");
|
|
15
|
+
class Tag extends HttpClient_1.HttpClient {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
/**
|
|
@@ -80,10 +80,10 @@ class Tag extends httpClient_1.HttpClient {
|
|
|
80
80
|
* No description
|
|
81
81
|
*
|
|
82
82
|
* @tags Tag
|
|
83
|
-
* @name
|
|
83
|
+
* @name getArticleById
|
|
84
84
|
* @request GET:/tag/{id}/article
|
|
85
85
|
*/
|
|
86
|
-
this.
|
|
86
|
+
this.getArticleById = (id, params = {}) => this.request({
|
|
87
87
|
path: `/tag/${id}/article`,
|
|
88
88
|
method: 'GET',
|
|
89
89
|
...params,
|