@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.
- package/README.md +222 -25
- package/dist/api/Article.d.ts +43 -28
- package/dist/api/Article.js +42 -31
- package/dist/api/Auth.d.ts +12 -7
- package/dist/api/Auth.js +12 -10
- package/dist/api/Category.d.ts +19 -12
- package/dist/api/Category.js +18 -15
- package/dist/api/Comment.d.ts +22 -14
- package/dist/api/Comment.js +21 -17
- package/dist/api/File.d.ts +16 -10
- package/dist/api/File.js +15 -13
- package/dist/{HttpClient.d.ts → api/HttpClient.d.ts} +2 -2
- package/dist/{HttpClient.js → api/HttpClient.js} +4 -2
- package/dist/api/Knowledge.d.ts +28 -18
- package/dist/api/Knowledge.js +27 -22
- package/dist/api/Page.d.ts +22 -14
- package/dist/api/Page.js +21 -17
- package/dist/api/Search.d.ts +12 -7
- package/dist/api/Search.js +12 -10
- package/dist/api/Setting.d.ts +10 -6
- package/dist/api/Setting.js +9 -9
- package/dist/api/Smtp.d.ts +13 -8
- package/dist/api/Smtp.js +12 -11
- package/dist/api/Tag.d.ts +22 -14
- package/dist/api/Tag.js +21 -17
- package/dist/api/User.d.ts +17 -10
- package/dist/api/User.js +16 -16
- package/dist/api/View.d.ts +19 -12
- package/dist/api/View.js +18 -15
- package/dist/api/index.d.ts +13 -18
- package/dist/api/index.js +28 -40
- package/dist/api/instance.d.ts +47 -0
- package/dist/api/instance.js +71 -0
- package/dist/config/env.d.ts +1 -0
- package/dist/config/env.js +89 -0
- package/dist/config/global.d.ts +34 -0
- package/dist/config/global.js +382 -0
- package/dist/config/i18n.d.ts +4 -0
- package/dist/config/i18n.js +43 -0
- package/dist/config/index.d.ts +15 -0
- package/dist/config/index.js +25 -0
- package/dist/index.d.ts +11 -5
- package/dist/index.js +18 -25
- package/dist/locales/en.json +97 -0
- package/dist/locales/zh.json +97 -0
- package/dist/types/index.d.ts +245 -1
- package/dist/types/index.js +10 -17
- package/dist/utils/index.d.ts +33 -2
- package/dist/utils/index.js +57 -18
- package/package.json +20 -5
- package/dist/Article.d.ts +0 -121
- package/dist/Article.js +0 -189
- package/dist/Auth.d.ts +0 -30
- package/dist/Auth.js +0 -59
- package/dist/Category.d.ts +0 -49
- package/dist/Category.js +0 -85
- package/dist/Comment.d.ts +0 -58
- package/dist/Comment.js +0 -98
- package/dist/File.d.ts +0 -40
- package/dist/File.js +0 -72
- package/dist/Knowledge.d.ts +0 -76
- package/dist/Knowledge.js +0 -124
- package/dist/Page.d.ts +0 -58
- package/dist/Page.js +0 -98
- package/dist/Search.d.ts +0 -30
- package/dist/Search.js +0 -59
- package/dist/Setting.d.ts +0 -22
- package/dist/Setting.js +0 -46
- package/dist/Smtp.d.ts +0 -31
- package/dist/Smtp.js +0 -59
- package/dist/Tag.d.ts +0 -58
- package/dist/Tag.js +0 -98
- package/dist/User.d.ts +0 -41
- package/dist/User.js +0 -73
- package/dist/View.d.ts +0 -49
- package/dist/View.js +0 -85
- package/dist/api/Admin.d.ts +0 -14
- package/dist/api/Admin.js +0 -32
- package/dist/api/All.d.ts +0 -14
- package/dist/api/All.js +0 -32
- package/dist/api/ApiInstance.d.ts +0 -39
- package/dist/api/ApiInstance.js +0 -46
- package/dist/api/Archives.d.ts +0 -14
- package/dist/api/Archives.js +0 -32
- package/dist/api/ArticleRoute.d.ts +0 -201
- package/dist/api/ArticleRoute.js +0 -12
- package/dist/api/AuthRoute.d.ts +0 -44
- package/dist/api/AuthRoute.js +0 -12
- package/dist/api/Book.d.ts +0 -15
- package/dist/api/Book.js +0 -33
- package/dist/api/CategoryRoute.d.ts +0 -79
- package/dist/api/CategoryRoute.js +0 -12
- package/dist/api/Chapter.d.ts +0 -15
- package/dist/api/Chapter.js +0 -33
- package/dist/api/CommentRoute.d.ts +0 -95
- package/dist/api/CommentRoute.js +0 -12
- package/dist/api/FileRoute.d.ts +0 -63
- package/dist/api/FileRoute.js +0 -12
- package/dist/api/Get.d.ts +0 -14
- package/dist/api/Get.js +0 -32
- package/dist/api/Github.d.ts +0 -14
- package/dist/api/Github.js +0 -32
- package/dist/api/Host.d.ts +0 -14
- package/dist/api/Host.js +0 -32
- package/dist/api/Id.d.ts +0 -284
- package/dist/api/Id.js +0 -422
- package/dist/api/KnowledgeRoute.d.ts +0 -125
- package/dist/api/KnowledgeRoute.js +0 -12
- package/dist/api/Login.d.ts +0 -14
- package/dist/api/Login.js +0 -32
- package/dist/api/PageRoute.d.ts +0 -95
- package/dist/api/PageRoute.js +0 -12
- package/dist/api/Password.d.ts +0 -15
- package/dist/api/Password.js +0 -33
- package/dist/api/Recommend.d.ts +0 -14
- package/dist/api/Recommend.js +0 -32
- package/dist/api/Register.d.ts +0 -15
- package/dist/api/Register.js +0 -33
- package/dist/api/SearchRoute.d.ts +0 -46
- package/dist/api/SearchRoute.js +0 -12
- package/dist/api/SettingRoute.d.ts +0 -31
- package/dist/api/SettingRoute.js +0 -12
- package/dist/api/SmtpRoute.d.ts +0 -47
- package/dist/api/SmtpRoute.js +0 -12
- package/dist/api/TagRoute.d.ts +0 -95
- package/dist/api/TagRoute.js +0 -12
- package/dist/api/Update.d.ts +0 -15
- package/dist/api/Update.js +0 -33
- package/dist/api/Upload.d.ts +0 -15
- package/dist/api/Upload.js +0 -33
- package/dist/api/Url.d.ts +0 -14
- package/dist/api/Url.js +0 -32
- package/dist/api/UserRoute.d.ts +0 -60
- package/dist/api/UserRoute.js +0 -12
- package/dist/api/ViewRoute.d.ts +0 -77
- package/dist/api/ViewRoute.js +0 -12
- package/dist/api/api-instance.d.ts +0 -39
- package/dist/api/api-instance.js +0 -46
- package/dist/api/http-client.d.ts +0 -41
- package/dist/api/http-client.js +0 -94
- package/dist/api/httpClient.d.ts +0 -42
- package/dist/api/httpClient.js +0 -95
- package/dist/data-contracts.d.ts +0 -245
- package/dist/data-contracts.js +0 -12
- package/dist/types/data-contracts.d.ts +0 -177
- package/dist/types/data-contracts.js +0 -12
- package/dist/utils/common.d.ts +0 -21
- package/dist/utils/common.js +0 -52
- package/dist/utils/http.d.ts +0 -3
- package/dist/utils/http.js +0 -45
package/dist/Article.d.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { IArticleControllerCreateData } from './data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class Article<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
|
-
/**
|
|
5
|
-
* No description
|
|
6
|
-
*
|
|
7
|
-
* @tags Article
|
|
8
|
-
* @name ArticleControllerCreate
|
|
9
|
-
* @request POST:/article
|
|
10
|
-
* @response `200` `IArticleControllerCreateData` 创建文章
|
|
11
|
-
*/
|
|
12
|
-
articleControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IArticleControllerCreateData, any, {}>>;
|
|
13
|
-
/**
|
|
14
|
-
* No description
|
|
15
|
-
*
|
|
16
|
-
* @tags Article
|
|
17
|
-
* @name ArticleControllerFindAll
|
|
18
|
-
* @request GET:/article
|
|
19
|
-
* @response `200` `IArticleControllerFindAllData`
|
|
20
|
-
*/
|
|
21
|
-
articleControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
22
|
-
/**
|
|
23
|
-
* No description
|
|
24
|
-
*
|
|
25
|
-
* @tags Article
|
|
26
|
-
* @name ArticleControllerFindArticlesByCategory
|
|
27
|
-
* @request GET:/article/category/{id}
|
|
28
|
-
* @response `200` `IArticleControllerFindArticlesByCategoryData`
|
|
29
|
-
*/
|
|
30
|
-
articleControllerFindArticlesByCategory: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Article
|
|
35
|
-
* @name ArticleControllerFindArticlesByTag
|
|
36
|
-
* @request GET:/article/tag/{id}
|
|
37
|
-
* @response `200` `IArticleControllerFindArticlesByTagData`
|
|
38
|
-
*/
|
|
39
|
-
articleControllerFindArticlesByTag: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
40
|
-
/**
|
|
41
|
-
* No description
|
|
42
|
-
*
|
|
43
|
-
* @tags Article
|
|
44
|
-
* @name ArticleControllerGetRecommendArticles
|
|
45
|
-
* @request GET:/article/all/recommend
|
|
46
|
-
* @response `200` `IArticleControllerGetRecommendArticlesData`
|
|
47
|
-
*/
|
|
48
|
-
articleControllerGetRecommendArticles: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
49
|
-
/**
|
|
50
|
-
* No description
|
|
51
|
-
*
|
|
52
|
-
* @tags Article
|
|
53
|
-
* @name ArticleControllerGetArchives
|
|
54
|
-
* @request GET:/article/archives
|
|
55
|
-
* @response `200` `IArticleControllerGetArchivesData`
|
|
56
|
-
*/
|
|
57
|
-
articleControllerGetArchives: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
58
|
-
/**
|
|
59
|
-
* No description
|
|
60
|
-
*
|
|
61
|
-
* @tags Article
|
|
62
|
-
* @name ArticleControllerRecommend
|
|
63
|
-
* @request GET:/article/recommend
|
|
64
|
-
* @response `200` `IArticleControllerRecommendData`
|
|
65
|
-
*/
|
|
66
|
-
articleControllerRecommend: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
67
|
-
/**
|
|
68
|
-
* No description
|
|
69
|
-
*
|
|
70
|
-
* @tags Article
|
|
71
|
-
* @name ArticleControllerFindById
|
|
72
|
-
* @request GET:/article/{id}
|
|
73
|
-
* @response `200` `IArticleControllerFindByIdData`
|
|
74
|
-
*/
|
|
75
|
-
articleControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
76
|
-
/**
|
|
77
|
-
* No description
|
|
78
|
-
*
|
|
79
|
-
* @tags Article
|
|
80
|
-
* @name ArticleControllerUpdateById
|
|
81
|
-
* @request PATCH:/article/{id}
|
|
82
|
-
* @response `200` `IArticleControllerUpdateByIdData`
|
|
83
|
-
*/
|
|
84
|
-
articleControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
85
|
-
/**
|
|
86
|
-
* No description
|
|
87
|
-
*
|
|
88
|
-
* @tags Article
|
|
89
|
-
* @name ArticleControllerDeleteById
|
|
90
|
-
* @request DELETE:/article/{id}
|
|
91
|
-
* @response `200` `IArticleControllerDeleteByIdData`
|
|
92
|
-
*/
|
|
93
|
-
articleControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
94
|
-
/**
|
|
95
|
-
* No description
|
|
96
|
-
*
|
|
97
|
-
* @tags Article
|
|
98
|
-
* @name ArticleControllerCheckPassword
|
|
99
|
-
* @request POST:/article/{id}/checkPassword
|
|
100
|
-
* @response `200` `IArticleControllerCheckPasswordData`
|
|
101
|
-
*/
|
|
102
|
-
articleControllerCheckPassword: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
103
|
-
/**
|
|
104
|
-
* No description
|
|
105
|
-
*
|
|
106
|
-
* @tags Article
|
|
107
|
-
* @name ArticleControllerUpdateViewsById
|
|
108
|
-
* @request POST:/article/{id}/views
|
|
109
|
-
* @response `200` `IArticleControllerUpdateViewsByIdData`
|
|
110
|
-
*/
|
|
111
|
-
articleControllerUpdateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
112
|
-
/**
|
|
113
|
-
* No description
|
|
114
|
-
*
|
|
115
|
-
* @tags Article
|
|
116
|
-
* @name ArticleControllerUpdateLikesById
|
|
117
|
-
* @request POST:/article/{id}/likes
|
|
118
|
-
* @response `200` `IArticleControllerUpdateLikesByIdData`
|
|
119
|
-
*/
|
|
120
|
-
articleControllerUpdateLikesById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
121
|
-
}
|
package/dist/Article.js
DELETED
|
@@ -1,189 +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.Article = void 0;
|
|
14
|
-
const HttpClient_1 = require("./HttpClient");
|
|
15
|
-
class Article extends HttpClient_1.HttpClient {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
/**
|
|
19
|
-
* No description
|
|
20
|
-
*
|
|
21
|
-
* @tags Article
|
|
22
|
-
* @name ArticleControllerCreate
|
|
23
|
-
* @request POST:/article
|
|
24
|
-
* @response `200` `IArticleControllerCreateData` 创建文章
|
|
25
|
-
*/
|
|
26
|
-
this.articleControllerCreate = (params = {}) => this.request({
|
|
27
|
-
path: `/article`,
|
|
28
|
-
method: 'POST',
|
|
29
|
-
...params,
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Article
|
|
35
|
-
* @name ArticleControllerFindAll
|
|
36
|
-
* @request GET:/article
|
|
37
|
-
* @response `200` `IArticleControllerFindAllData`
|
|
38
|
-
*/
|
|
39
|
-
this.articleControllerFindAll = (params = {}) => this.request({
|
|
40
|
-
path: `/article`,
|
|
41
|
-
method: 'GET',
|
|
42
|
-
...params,
|
|
43
|
-
});
|
|
44
|
-
/**
|
|
45
|
-
* No description
|
|
46
|
-
*
|
|
47
|
-
* @tags Article
|
|
48
|
-
* @name ArticleControllerFindArticlesByCategory
|
|
49
|
-
* @request GET:/article/category/{id}
|
|
50
|
-
* @response `200` `IArticleControllerFindArticlesByCategoryData`
|
|
51
|
-
*/
|
|
52
|
-
this.articleControllerFindArticlesByCategory = (id, params = {}) => this.request({
|
|
53
|
-
path: `/article/category/${id}`,
|
|
54
|
-
method: 'GET',
|
|
55
|
-
...params,
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* No description
|
|
59
|
-
*
|
|
60
|
-
* @tags Article
|
|
61
|
-
* @name ArticleControllerFindArticlesByTag
|
|
62
|
-
* @request GET:/article/tag/{id}
|
|
63
|
-
* @response `200` `IArticleControllerFindArticlesByTagData`
|
|
64
|
-
*/
|
|
65
|
-
this.articleControllerFindArticlesByTag = (id, params = {}) => this.request({
|
|
66
|
-
path: `/article/tag/${id}`,
|
|
67
|
-
method: 'GET',
|
|
68
|
-
...params,
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* No description
|
|
72
|
-
*
|
|
73
|
-
* @tags Article
|
|
74
|
-
* @name ArticleControllerGetRecommendArticles
|
|
75
|
-
* @request GET:/article/all/recommend
|
|
76
|
-
* @response `200` `IArticleControllerGetRecommendArticlesData`
|
|
77
|
-
*/
|
|
78
|
-
this.articleControllerGetRecommendArticles = (params = {}) => this.request({
|
|
79
|
-
path: `/article/all/recommend`,
|
|
80
|
-
method: 'GET',
|
|
81
|
-
...params,
|
|
82
|
-
});
|
|
83
|
-
/**
|
|
84
|
-
* No description
|
|
85
|
-
*
|
|
86
|
-
* @tags Article
|
|
87
|
-
* @name ArticleControllerGetArchives
|
|
88
|
-
* @request GET:/article/archives
|
|
89
|
-
* @response `200` `IArticleControllerGetArchivesData`
|
|
90
|
-
*/
|
|
91
|
-
this.articleControllerGetArchives = (params = {}) => this.request({
|
|
92
|
-
path: `/article/archives`,
|
|
93
|
-
method: 'GET',
|
|
94
|
-
...params,
|
|
95
|
-
});
|
|
96
|
-
/**
|
|
97
|
-
* No description
|
|
98
|
-
*
|
|
99
|
-
* @tags Article
|
|
100
|
-
* @name ArticleControllerRecommend
|
|
101
|
-
* @request GET:/article/recommend
|
|
102
|
-
* @response `200` `IArticleControllerRecommendData`
|
|
103
|
-
*/
|
|
104
|
-
this.articleControllerRecommend = (params = {}) => this.request({
|
|
105
|
-
path: `/article/recommend`,
|
|
106
|
-
method: 'GET',
|
|
107
|
-
...params,
|
|
108
|
-
});
|
|
109
|
-
/**
|
|
110
|
-
* No description
|
|
111
|
-
*
|
|
112
|
-
* @tags Article
|
|
113
|
-
* @name ArticleControllerFindById
|
|
114
|
-
* @request GET:/article/{id}
|
|
115
|
-
* @response `200` `IArticleControllerFindByIdData`
|
|
116
|
-
*/
|
|
117
|
-
this.articleControllerFindById = (id, params = {}) => this.request({
|
|
118
|
-
path: `/article/${id}`,
|
|
119
|
-
method: 'GET',
|
|
120
|
-
...params,
|
|
121
|
-
});
|
|
122
|
-
/**
|
|
123
|
-
* No description
|
|
124
|
-
*
|
|
125
|
-
* @tags Article
|
|
126
|
-
* @name ArticleControllerUpdateById
|
|
127
|
-
* @request PATCH:/article/{id}
|
|
128
|
-
* @response `200` `IArticleControllerUpdateByIdData`
|
|
129
|
-
*/
|
|
130
|
-
this.articleControllerUpdateById = (id, params = {}) => this.request({
|
|
131
|
-
path: `/article/${id}`,
|
|
132
|
-
method: 'PATCH',
|
|
133
|
-
...params,
|
|
134
|
-
});
|
|
135
|
-
/**
|
|
136
|
-
* No description
|
|
137
|
-
*
|
|
138
|
-
* @tags Article
|
|
139
|
-
* @name ArticleControllerDeleteById
|
|
140
|
-
* @request DELETE:/article/{id}
|
|
141
|
-
* @response `200` `IArticleControllerDeleteByIdData`
|
|
142
|
-
*/
|
|
143
|
-
this.articleControllerDeleteById = (id, params = {}) => this.request({
|
|
144
|
-
path: `/article/${id}`,
|
|
145
|
-
method: 'DELETE',
|
|
146
|
-
...params,
|
|
147
|
-
});
|
|
148
|
-
/**
|
|
149
|
-
* No description
|
|
150
|
-
*
|
|
151
|
-
* @tags Article
|
|
152
|
-
* @name ArticleControllerCheckPassword
|
|
153
|
-
* @request POST:/article/{id}/checkPassword
|
|
154
|
-
* @response `200` `IArticleControllerCheckPasswordData`
|
|
155
|
-
*/
|
|
156
|
-
this.articleControllerCheckPassword = (id, params = {}) => this.request({
|
|
157
|
-
path: `/article/${id}/checkPassword`,
|
|
158
|
-
method: 'POST',
|
|
159
|
-
...params,
|
|
160
|
-
});
|
|
161
|
-
/**
|
|
162
|
-
* No description
|
|
163
|
-
*
|
|
164
|
-
* @tags Article
|
|
165
|
-
* @name ArticleControllerUpdateViewsById
|
|
166
|
-
* @request POST:/article/{id}/views
|
|
167
|
-
* @response `200` `IArticleControllerUpdateViewsByIdData`
|
|
168
|
-
*/
|
|
169
|
-
this.articleControllerUpdateViewsById = (id, params = {}) => this.request({
|
|
170
|
-
path: `/article/${id}/views`,
|
|
171
|
-
method: 'POST',
|
|
172
|
-
...params,
|
|
173
|
-
});
|
|
174
|
-
/**
|
|
175
|
-
* No description
|
|
176
|
-
*
|
|
177
|
-
* @tags Article
|
|
178
|
-
* @name ArticleControllerUpdateLikesById
|
|
179
|
-
* @request POST:/article/{id}/likes
|
|
180
|
-
* @response `200` `IArticleControllerUpdateLikesByIdData`
|
|
181
|
-
*/
|
|
182
|
-
this.articleControllerUpdateLikesById = (id, params = {}) => this.request({
|
|
183
|
-
path: `/article/${id}/likes`,
|
|
184
|
-
method: 'POST',
|
|
185
|
-
...params,
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
exports.Article = Article;
|
package/dist/Auth.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
2
|
-
export declare class Auth<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
3
|
-
/**
|
|
4
|
-
* No description
|
|
5
|
-
*
|
|
6
|
-
* @tags Auth
|
|
7
|
-
* @name AuthControllerLogin
|
|
8
|
-
* @request POST:/auth/login
|
|
9
|
-
* @response `200` `IAuthControllerLoginData`
|
|
10
|
-
*/
|
|
11
|
-
authControllerLogin: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
12
|
-
/**
|
|
13
|
-
* No description
|
|
14
|
-
*
|
|
15
|
-
* @tags Auth
|
|
16
|
-
* @name AuthControllerCreateBook
|
|
17
|
-
* @request POST:/auth/admin
|
|
18
|
-
* @response `201` `IAuthControllerCreateBookData`
|
|
19
|
-
*/
|
|
20
|
-
authControllerCreateBook: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
21
|
-
/**
|
|
22
|
-
* No description
|
|
23
|
-
*
|
|
24
|
-
* @tags Auth
|
|
25
|
-
* @name AuthControllerLoginWithGithub
|
|
26
|
-
* @request POST:/auth/github
|
|
27
|
-
* @response `201` `IAuthControllerLoginWithGithubData`
|
|
28
|
-
*/
|
|
29
|
-
authControllerLoginWithGithub: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
30
|
-
}
|
package/dist/Auth.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.Auth = void 0;
|
|
14
|
-
const HttpClient_1 = require("./HttpClient");
|
|
15
|
-
class Auth extends HttpClient_1.HttpClient {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
/**
|
|
19
|
-
* No description
|
|
20
|
-
*
|
|
21
|
-
* @tags Auth
|
|
22
|
-
* @name AuthControllerLogin
|
|
23
|
-
* @request POST:/auth/login
|
|
24
|
-
* @response `200` `IAuthControllerLoginData`
|
|
25
|
-
*/
|
|
26
|
-
this.authControllerLogin = (params = {}) => this.request({
|
|
27
|
-
path: `/auth/login`,
|
|
28
|
-
method: 'POST',
|
|
29
|
-
...params,
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Auth
|
|
35
|
-
* @name AuthControllerCreateBook
|
|
36
|
-
* @request POST:/auth/admin
|
|
37
|
-
* @response `201` `IAuthControllerCreateBookData`
|
|
38
|
-
*/
|
|
39
|
-
this.authControllerCreateBook = (params = {}) => this.request({
|
|
40
|
-
path: `/auth/admin`,
|
|
41
|
-
method: 'POST',
|
|
42
|
-
...params,
|
|
43
|
-
});
|
|
44
|
-
/**
|
|
45
|
-
* No description
|
|
46
|
-
*
|
|
47
|
-
* @tags Auth
|
|
48
|
-
* @name AuthControllerLoginWithGithub
|
|
49
|
-
* @request POST:/auth/github
|
|
50
|
-
* @response `201` `IAuthControllerLoginWithGithubData`
|
|
51
|
-
*/
|
|
52
|
-
this.authControllerLoginWithGithub = (params = {}) => this.request({
|
|
53
|
-
path: `/auth/github`,
|
|
54
|
-
method: 'POST',
|
|
55
|
-
...params,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.Auth = Auth;
|
package/dist/Category.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ICategoryControllerCreateData } from './data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class Category<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
|
-
/**
|
|
5
|
-
* No description
|
|
6
|
-
*
|
|
7
|
-
* @tags Category
|
|
8
|
-
* @name CategoryControllerCreate
|
|
9
|
-
* @request POST:/category
|
|
10
|
-
* @response `200` `ICategoryControllerCreateData` 添加分类
|
|
11
|
-
*/
|
|
12
|
-
categoryControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ICategoryControllerCreateData, any, {}>>;
|
|
13
|
-
/**
|
|
14
|
-
* No description
|
|
15
|
-
*
|
|
16
|
-
* @tags Category
|
|
17
|
-
* @name CategoryControllerFindAll
|
|
18
|
-
* @request GET:/category
|
|
19
|
-
* @response `200` `ICategoryControllerFindAllData`
|
|
20
|
-
*/
|
|
21
|
-
categoryControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
22
|
-
/**
|
|
23
|
-
* No description
|
|
24
|
-
*
|
|
25
|
-
* @tags Category
|
|
26
|
-
* @name CategoryControllerFindById
|
|
27
|
-
* @request GET:/category/{id}
|
|
28
|
-
* @response `200` `ICategoryControllerFindByIdData`
|
|
29
|
-
*/
|
|
30
|
-
categoryControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Category
|
|
35
|
-
* @name CategoryControllerUpdateById
|
|
36
|
-
* @request PATCH:/category/{id}
|
|
37
|
-
* @response `200` `ICategoryControllerUpdateByIdData`
|
|
38
|
-
*/
|
|
39
|
-
categoryControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
40
|
-
/**
|
|
41
|
-
* No description
|
|
42
|
-
*
|
|
43
|
-
* @tags Category
|
|
44
|
-
* @name CategoryControllerDeleteById
|
|
45
|
-
* @request DELETE:/category/{id}
|
|
46
|
-
* @response `200` `ICategoryControllerDeleteByIdData`
|
|
47
|
-
*/
|
|
48
|
-
categoryControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
49
|
-
}
|
package/dist/Category.js
DELETED
|
@@ -1,85 +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.Category = void 0;
|
|
14
|
-
const HttpClient_1 = require("./HttpClient");
|
|
15
|
-
class Category extends HttpClient_1.HttpClient {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
/**
|
|
19
|
-
* No description
|
|
20
|
-
*
|
|
21
|
-
* @tags Category
|
|
22
|
-
* @name CategoryControllerCreate
|
|
23
|
-
* @request POST:/category
|
|
24
|
-
* @response `200` `ICategoryControllerCreateData` 添加分类
|
|
25
|
-
*/
|
|
26
|
-
this.categoryControllerCreate = (params = {}) => this.request({
|
|
27
|
-
path: `/category`,
|
|
28
|
-
method: 'POST',
|
|
29
|
-
...params,
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Category
|
|
35
|
-
* @name CategoryControllerFindAll
|
|
36
|
-
* @request GET:/category
|
|
37
|
-
* @response `200` `ICategoryControllerFindAllData`
|
|
38
|
-
*/
|
|
39
|
-
this.categoryControllerFindAll = (params = {}) => this.request({
|
|
40
|
-
path: `/category`,
|
|
41
|
-
method: 'GET',
|
|
42
|
-
...params,
|
|
43
|
-
});
|
|
44
|
-
/**
|
|
45
|
-
* No description
|
|
46
|
-
*
|
|
47
|
-
* @tags Category
|
|
48
|
-
* @name CategoryControllerFindById
|
|
49
|
-
* @request GET:/category/{id}
|
|
50
|
-
* @response `200` `ICategoryControllerFindByIdData`
|
|
51
|
-
*/
|
|
52
|
-
this.categoryControllerFindById = (id, params = {}) => this.request({
|
|
53
|
-
path: `/category/${id}`,
|
|
54
|
-
method: 'GET',
|
|
55
|
-
...params,
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* No description
|
|
59
|
-
*
|
|
60
|
-
* @tags Category
|
|
61
|
-
* @name CategoryControllerUpdateById
|
|
62
|
-
* @request PATCH:/category/{id}
|
|
63
|
-
* @response `200` `ICategoryControllerUpdateByIdData`
|
|
64
|
-
*/
|
|
65
|
-
this.categoryControllerUpdateById = (id, params = {}) => this.request({
|
|
66
|
-
path: `/category/${id}`,
|
|
67
|
-
method: 'PATCH',
|
|
68
|
-
...params,
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* No description
|
|
72
|
-
*
|
|
73
|
-
* @tags Category
|
|
74
|
-
* @name CategoryControllerDeleteById
|
|
75
|
-
* @request DELETE:/category/{id}
|
|
76
|
-
* @response `200` `ICategoryControllerDeleteByIdData`
|
|
77
|
-
*/
|
|
78
|
-
this.categoryControllerDeleteById = (id, params = {}) => this.request({
|
|
79
|
-
path: `/category/${id}`,
|
|
80
|
-
method: 'DELETE',
|
|
81
|
-
...params,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
exports.Category = Category;
|
package/dist/Comment.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ICommentControllerCreateData } from './data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class Comment<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
|
-
/**
|
|
5
|
-
* No description
|
|
6
|
-
*
|
|
7
|
-
* @tags Comment
|
|
8
|
-
* @name CommentControllerCreate
|
|
9
|
-
* @request POST:/comment
|
|
10
|
-
* @response `200` `ICommentControllerCreateData` 创建评论
|
|
11
|
-
*/
|
|
12
|
-
commentControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ICommentControllerCreateData, any, {}>>;
|
|
13
|
-
/**
|
|
14
|
-
* No description
|
|
15
|
-
*
|
|
16
|
-
* @tags Comment
|
|
17
|
-
* @name CommentControllerFindAll
|
|
18
|
-
* @request GET:/comment
|
|
19
|
-
* @response `200` `ICommentControllerFindAllData`
|
|
20
|
-
*/
|
|
21
|
-
commentControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
22
|
-
/**
|
|
23
|
-
* No description
|
|
24
|
-
*
|
|
25
|
-
* @tags Comment
|
|
26
|
-
* @name CommentControllerFindById
|
|
27
|
-
* @request GET:/comment/{id}
|
|
28
|
-
* @response `200` `ICommentControllerFindByIdData`
|
|
29
|
-
*/
|
|
30
|
-
commentControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Comment
|
|
35
|
-
* @name CommentControllerUpdateById
|
|
36
|
-
* @request PATCH:/comment/{id}
|
|
37
|
-
* @response `200` `ICommentControllerUpdateByIdData`
|
|
38
|
-
*/
|
|
39
|
-
commentControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
40
|
-
/**
|
|
41
|
-
* No description
|
|
42
|
-
*
|
|
43
|
-
* @tags Comment
|
|
44
|
-
* @name CommentControllerDeleteById
|
|
45
|
-
* @request DELETE:/comment/{id}
|
|
46
|
-
* @response `200` `ICommentControllerDeleteByIdData`
|
|
47
|
-
*/
|
|
48
|
-
commentControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
49
|
-
/**
|
|
50
|
-
* No description
|
|
51
|
-
*
|
|
52
|
-
* @tags Comment
|
|
53
|
-
* @name CommentControllerGetArticleComments
|
|
54
|
-
* @request GET:/comment/host/{hostId}
|
|
55
|
-
* @response `200` `ICommentControllerGetArticleCommentsData`
|
|
56
|
-
*/
|
|
57
|
-
commentControllerGetArticleComments: (hostId: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
58
|
-
}
|
package/dist/Comment.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.Comment = void 0;
|
|
14
|
-
const HttpClient_1 = require("./HttpClient");
|
|
15
|
-
class Comment extends HttpClient_1.HttpClient {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
/**
|
|
19
|
-
* No description
|
|
20
|
-
*
|
|
21
|
-
* @tags Comment
|
|
22
|
-
* @name CommentControllerCreate
|
|
23
|
-
* @request POST:/comment
|
|
24
|
-
* @response `200` `ICommentControllerCreateData` 创建评论
|
|
25
|
-
*/
|
|
26
|
-
this.commentControllerCreate = (params = {}) => this.request({
|
|
27
|
-
path: `/comment`,
|
|
28
|
-
method: 'POST',
|
|
29
|
-
...params,
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Comment
|
|
35
|
-
* @name CommentControllerFindAll
|
|
36
|
-
* @request GET:/comment
|
|
37
|
-
* @response `200` `ICommentControllerFindAllData`
|
|
38
|
-
*/
|
|
39
|
-
this.commentControllerFindAll = (params = {}) => this.request({
|
|
40
|
-
path: `/comment`,
|
|
41
|
-
method: 'GET',
|
|
42
|
-
...params,
|
|
43
|
-
});
|
|
44
|
-
/**
|
|
45
|
-
* No description
|
|
46
|
-
*
|
|
47
|
-
* @tags Comment
|
|
48
|
-
* @name CommentControllerFindById
|
|
49
|
-
* @request GET:/comment/{id}
|
|
50
|
-
* @response `200` `ICommentControllerFindByIdData`
|
|
51
|
-
*/
|
|
52
|
-
this.commentControllerFindById = (id, params = {}) => this.request({
|
|
53
|
-
path: `/comment/${id}`,
|
|
54
|
-
method: 'GET',
|
|
55
|
-
...params,
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* No description
|
|
59
|
-
*
|
|
60
|
-
* @tags Comment
|
|
61
|
-
* @name CommentControllerUpdateById
|
|
62
|
-
* @request PATCH:/comment/{id}
|
|
63
|
-
* @response `200` `ICommentControllerUpdateByIdData`
|
|
64
|
-
*/
|
|
65
|
-
this.commentControllerUpdateById = (id, params = {}) => this.request({
|
|
66
|
-
path: `/comment/${id}`,
|
|
67
|
-
method: 'PATCH',
|
|
68
|
-
...params,
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* No description
|
|
72
|
-
*
|
|
73
|
-
* @tags Comment
|
|
74
|
-
* @name CommentControllerDeleteById
|
|
75
|
-
* @request DELETE:/comment/{id}
|
|
76
|
-
* @response `200` `ICommentControllerDeleteByIdData`
|
|
77
|
-
*/
|
|
78
|
-
this.commentControllerDeleteById = (id, params = {}) => this.request({
|
|
79
|
-
path: `/comment/${id}`,
|
|
80
|
-
method: 'DELETE',
|
|
81
|
-
...params,
|
|
82
|
-
});
|
|
83
|
-
/**
|
|
84
|
-
* No description
|
|
85
|
-
*
|
|
86
|
-
* @tags Comment
|
|
87
|
-
* @name CommentControllerGetArticleComments
|
|
88
|
-
* @request GET:/comment/host/{hostId}
|
|
89
|
-
* @response `200` `ICommentControllerGetArticleCommentsData`
|
|
90
|
-
*/
|
|
91
|
-
this.commentControllerGetArticleComments = (hostId, params = {}) => this.request({
|
|
92
|
-
path: `/comment/host/${hostId}`,
|
|
93
|
-
method: 'GET',
|
|
94
|
-
...params,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.Comment = Comment;
|