@fecommunity/reactpress-cli 0.1.0 → 0.2.1
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 +7 -0
- package/bin/reactpress.js +246 -0
- package/lib/api-dev-runner.js +6 -0
- package/lib/api-dev.js +84 -0
- package/lib/bootstrap.js +109 -0
- package/lib/build.js +23 -0
- package/lib/dev.js +109 -0
- package/lib/docker.js +156 -0
- package/lib/http.js +80 -0
- package/lib/lifecycle.js +138 -0
- package/lib/paths.js +75 -0
- package/lib/pm2.js +31 -0
- package/lib/process.js +45 -0
- package/lib/publish.js +947 -0
- package/lib/root.js +31 -0
- package/lib/spawn.js +85 -0
- package/lib/status.js +54 -0
- package/package.json +33 -52
- package/ui/banner.js +16 -0
- package/ui/interactive.js +158 -0
- package/ui/theme.js +25 -0
- package/toolkit/dist/api/Article.d.ts +0 -123
- package/toolkit/dist/api/Article.js +0 -188
- package/toolkit/dist/api/Auth.d.ts +0 -32
- package/toolkit/dist/api/Auth.js +0 -58
- package/toolkit/dist/api/Category.d.ts +0 -51
- package/toolkit/dist/api/Category.js +0 -84
- package/toolkit/dist/api/Comment.d.ts +0 -60
- package/toolkit/dist/api/Comment.js +0 -97
- package/toolkit/dist/api/File.d.ts +0 -42
- package/toolkit/dist/api/File.js +0 -71
- package/toolkit/dist/api/HttpClient.d.ts +0 -41
- package/toolkit/dist/api/HttpClient.js +0 -96
- package/toolkit/dist/api/Knowledge.d.ts +0 -78
- package/toolkit/dist/api/Knowledge.js +0 -123
- package/toolkit/dist/api/Page.d.ts +0 -60
- package/toolkit/dist/api/Page.js +0 -97
- package/toolkit/dist/api/Search.d.ts +0 -32
- package/toolkit/dist/api/Search.js +0 -58
- package/toolkit/dist/api/Setting.d.ts +0 -24
- package/toolkit/dist/api/Setting.js +0 -45
- package/toolkit/dist/api/Smtp.d.ts +0 -33
- package/toolkit/dist/api/Smtp.js +0 -58
- package/toolkit/dist/api/Tag.d.ts +0 -60
- package/toolkit/dist/api/Tag.js +0 -97
- package/toolkit/dist/api/User.d.ts +0 -43
- package/toolkit/dist/api/User.js +0 -72
- package/toolkit/dist/api/View.d.ts +0 -51
- package/toolkit/dist/api/View.js +0 -84
- package/toolkit/dist/api/index.d.ts +0 -13
- package/toolkit/dist/api/index.js +0 -30
- package/toolkit/dist/api/instance.d.ts +0 -47
- package/toolkit/dist/api/instance.js +0 -71
- package/toolkit/dist/config/env.d.ts +0 -1
- package/toolkit/dist/config/env.js +0 -89
- package/toolkit/dist/config/global.d.ts +0 -34
- package/toolkit/dist/config/global.js +0 -382
- package/toolkit/dist/config/i18n.d.ts +0 -4
- package/toolkit/dist/config/i18n.js +0 -43
- package/toolkit/dist/config/index.d.ts +0 -15
- package/toolkit/dist/config/index.js +0 -25
- package/toolkit/dist/index.d.ts +0 -11
- package/toolkit/dist/index.js +0 -38
- package/toolkit/dist/locales/en.json +0 -97
- package/toolkit/dist/locales/zh.json +0 -97
- package/toolkit/dist/types/index.d.ts +0 -245
- package/toolkit/dist/types/index.js +0 -12
- package/toolkit/dist/utils/index.d.ts +0 -33
- package/toolkit/dist/utils/index.js +0 -59
- package/toolkit/package.json +0 -19
|
@@ -1,188 +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
|
-
class Article {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Article
|
|
20
|
-
* @name ArticleControllerCreate
|
|
21
|
-
* @request POST:/article
|
|
22
|
-
* @response `200` `IArticleControllerCreateData` 创建文章
|
|
23
|
-
*/
|
|
24
|
-
this.create = (params = {}) => this.http.request({
|
|
25
|
-
path: `/article`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* No description
|
|
31
|
-
*
|
|
32
|
-
* @tags Article
|
|
33
|
-
* @name ArticleControllerFindAll
|
|
34
|
-
* @request GET:/article
|
|
35
|
-
* @response `200` `IArticleControllerFindAllData`
|
|
36
|
-
*/
|
|
37
|
-
this.findAll = (params = {}) => this.http.request({
|
|
38
|
-
path: `/article`,
|
|
39
|
-
method: 'GET',
|
|
40
|
-
...params,
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags Article
|
|
46
|
-
* @name ArticleControllerFindArticlesByCategory
|
|
47
|
-
* @request GET:/article/category/{id}
|
|
48
|
-
* @response `200` `IArticleControllerFindArticlesByCategoryData`
|
|
49
|
-
*/
|
|
50
|
-
this.findArticlesByCategory = (id, params = {}) => this.http.request({
|
|
51
|
-
path: `/article/category/${id}`,
|
|
52
|
-
method: 'GET',
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* No description
|
|
57
|
-
*
|
|
58
|
-
* @tags Article
|
|
59
|
-
* @name ArticleControllerFindArticlesByTag
|
|
60
|
-
* @request GET:/article/tag/{id}
|
|
61
|
-
* @response `200` `IArticleControllerFindArticlesByTagData`
|
|
62
|
-
*/
|
|
63
|
-
this.findArticlesByTag = (id, params = {}) => this.http.request({
|
|
64
|
-
path: `/article/tag/${id}`,
|
|
65
|
-
method: 'GET',
|
|
66
|
-
...params,
|
|
67
|
-
});
|
|
68
|
-
/**
|
|
69
|
-
* No description
|
|
70
|
-
*
|
|
71
|
-
* @tags Article
|
|
72
|
-
* @name ArticleControllerGetRecommendArticles
|
|
73
|
-
* @request GET:/article/all/recommend
|
|
74
|
-
* @response `200` `IArticleControllerGetRecommendArticlesData`
|
|
75
|
-
*/
|
|
76
|
-
this.getRecommendArticles = (params = {}) => this.http.request({
|
|
77
|
-
path: `/article/all/recommend`,
|
|
78
|
-
method: 'GET',
|
|
79
|
-
...params,
|
|
80
|
-
});
|
|
81
|
-
/**
|
|
82
|
-
* No description
|
|
83
|
-
*
|
|
84
|
-
* @tags Article
|
|
85
|
-
* @name ArticleControllerGetArchives
|
|
86
|
-
* @request GET:/article/archives
|
|
87
|
-
* @response `200` `IArticleControllerGetArchivesData`
|
|
88
|
-
*/
|
|
89
|
-
this.getArchives = (params = {}) => this.http.request({
|
|
90
|
-
path: `/article/archives`,
|
|
91
|
-
method: 'GET',
|
|
92
|
-
...params,
|
|
93
|
-
});
|
|
94
|
-
/**
|
|
95
|
-
* No description
|
|
96
|
-
*
|
|
97
|
-
* @tags Article
|
|
98
|
-
* @name ArticleControllerRecommend
|
|
99
|
-
* @request GET:/article/recommend
|
|
100
|
-
* @response `200` `IArticleControllerRecommendData`
|
|
101
|
-
*/
|
|
102
|
-
this.recommend = (params = {}) => this.http.request({
|
|
103
|
-
path: `/article/recommend`,
|
|
104
|
-
method: 'GET',
|
|
105
|
-
...params,
|
|
106
|
-
});
|
|
107
|
-
/**
|
|
108
|
-
* No description
|
|
109
|
-
*
|
|
110
|
-
* @tags Article
|
|
111
|
-
* @name ArticleControllerFindById
|
|
112
|
-
* @request GET:/article/{id}
|
|
113
|
-
* @response `200` `IArticleControllerFindByIdData`
|
|
114
|
-
*/
|
|
115
|
-
this.findById = (id, params = {}) => this.http.request({
|
|
116
|
-
path: `/article/${id}`,
|
|
117
|
-
method: 'GET',
|
|
118
|
-
...params,
|
|
119
|
-
});
|
|
120
|
-
/**
|
|
121
|
-
* No description
|
|
122
|
-
*
|
|
123
|
-
* @tags Article
|
|
124
|
-
* @name ArticleControllerUpdateById
|
|
125
|
-
* @request PATCH:/article/{id}
|
|
126
|
-
* @response `200` `IArticleControllerUpdateByIdData`
|
|
127
|
-
*/
|
|
128
|
-
this.updateById = (id, params = {}) => this.http.request({
|
|
129
|
-
path: `/article/${id}`,
|
|
130
|
-
method: 'PATCH',
|
|
131
|
-
...params,
|
|
132
|
-
});
|
|
133
|
-
/**
|
|
134
|
-
* No description
|
|
135
|
-
*
|
|
136
|
-
* @tags Article
|
|
137
|
-
* @name ArticleControllerDeleteById
|
|
138
|
-
* @request DELETE:/article/{id}
|
|
139
|
-
* @response `200` `IArticleControllerDeleteByIdData`
|
|
140
|
-
*/
|
|
141
|
-
this.deleteById = (id, params = {}) => this.http.request({
|
|
142
|
-
path: `/article/${id}`,
|
|
143
|
-
method: 'DELETE',
|
|
144
|
-
...params,
|
|
145
|
-
});
|
|
146
|
-
/**
|
|
147
|
-
* No description
|
|
148
|
-
*
|
|
149
|
-
* @tags Article
|
|
150
|
-
* @name ArticleControllerCheckPassword
|
|
151
|
-
* @request POST:/article/{id}/checkPassword
|
|
152
|
-
* @response `200` `IArticleControllerCheckPasswordData`
|
|
153
|
-
*/
|
|
154
|
-
this.checkPassword = (id, params = {}) => this.http.request({
|
|
155
|
-
path: `/article/${id}/checkPassword`,
|
|
156
|
-
method: 'POST',
|
|
157
|
-
...params,
|
|
158
|
-
});
|
|
159
|
-
/**
|
|
160
|
-
* No description
|
|
161
|
-
*
|
|
162
|
-
* @tags Article
|
|
163
|
-
* @name ArticleControllerUpdateViewsById
|
|
164
|
-
* @request POST:/article/{id}/views
|
|
165
|
-
* @response `200` `IArticleControllerUpdateViewsByIdData`
|
|
166
|
-
*/
|
|
167
|
-
this.updateViewsById = (id, params = {}) => this.http.request({
|
|
168
|
-
path: `/article/${id}/views`,
|
|
169
|
-
method: 'POST',
|
|
170
|
-
...params,
|
|
171
|
-
});
|
|
172
|
-
/**
|
|
173
|
-
* No description
|
|
174
|
-
*
|
|
175
|
-
* @tags Article
|
|
176
|
-
* @name ArticleControllerUpdateLikesById
|
|
177
|
-
* @request POST:/article/{id}/likes
|
|
178
|
-
* @response `200` `IArticleControllerUpdateLikesByIdData`
|
|
179
|
-
*/
|
|
180
|
-
this.updateLikesById = (id, params = {}) => this.http.request({
|
|
181
|
-
path: `/article/${id}/likes`,
|
|
182
|
-
method: 'POST',
|
|
183
|
-
...params,
|
|
184
|
-
});
|
|
185
|
-
this.http = http;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
exports.Article = Article;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
2
|
-
export declare class Auth<SecurityDataType = unknown> {
|
|
3
|
-
http: HttpClient<SecurityDataType>;
|
|
4
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
-
/**
|
|
6
|
-
* No description
|
|
7
|
-
*
|
|
8
|
-
* @tags Auth
|
|
9
|
-
* @name AuthControllerLogin
|
|
10
|
-
* @request POST:/auth/login
|
|
11
|
-
* @response `200` `IAuthControllerLoginData`
|
|
12
|
-
*/
|
|
13
|
-
login: (params?: RequestParams) => Promise<any>;
|
|
14
|
-
/**
|
|
15
|
-
* No description
|
|
16
|
-
*
|
|
17
|
-
* @tags Auth
|
|
18
|
-
* @name AuthControllerCreateBook
|
|
19
|
-
* @request POST:/auth/admin
|
|
20
|
-
* @response `201` `IAuthControllerCreateBookData`
|
|
21
|
-
*/
|
|
22
|
-
createBook: (params?: RequestParams) => Promise<any>;
|
|
23
|
-
/**
|
|
24
|
-
* No description
|
|
25
|
-
*
|
|
26
|
-
* @tags Auth
|
|
27
|
-
* @name AuthControllerLoginWithGithub
|
|
28
|
-
* @request POST:/auth/github
|
|
29
|
-
* @response `201` `IAuthControllerLoginWithGithubData`
|
|
30
|
-
*/
|
|
31
|
-
loginWithGithub: (params?: RequestParams) => Promise<any>;
|
|
32
|
-
}
|
package/toolkit/dist/api/Auth.js
DELETED
|
@@ -1,58 +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
|
-
class Auth {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Auth
|
|
20
|
-
* @name AuthControllerLogin
|
|
21
|
-
* @request POST:/auth/login
|
|
22
|
-
* @response `200` `IAuthControllerLoginData`
|
|
23
|
-
*/
|
|
24
|
-
this.login = (params = {}) => this.http.request({
|
|
25
|
-
path: `/auth/login`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* No description
|
|
31
|
-
*
|
|
32
|
-
* @tags Auth
|
|
33
|
-
* @name AuthControllerCreateBook
|
|
34
|
-
* @request POST:/auth/admin
|
|
35
|
-
* @response `201` `IAuthControllerCreateBookData`
|
|
36
|
-
*/
|
|
37
|
-
this.createBook = (params = {}) => this.http.request({
|
|
38
|
-
path: `/auth/admin`,
|
|
39
|
-
method: 'POST',
|
|
40
|
-
...params,
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags Auth
|
|
46
|
-
* @name AuthControllerLoginWithGithub
|
|
47
|
-
* @request POST:/auth/github
|
|
48
|
-
* @response `201` `IAuthControllerLoginWithGithubData`
|
|
49
|
-
*/
|
|
50
|
-
this.loginWithGithub = (params = {}) => this.http.request({
|
|
51
|
-
path: `/auth/github`,
|
|
52
|
-
method: 'POST',
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
this.http = http;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.Auth = Auth;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ICategoryControllerCreateData } from '../types';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class Category<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags Category
|
|
10
|
-
* @name CategoryControllerCreate
|
|
11
|
-
* @request POST:/category
|
|
12
|
-
* @response `200` `ICategoryControllerCreateData` 添加分类
|
|
13
|
-
*/
|
|
14
|
-
create: (params?: RequestParams) => Promise<ICategoryControllerCreateData>;
|
|
15
|
-
/**
|
|
16
|
-
* No description
|
|
17
|
-
*
|
|
18
|
-
* @tags Category
|
|
19
|
-
* @name CategoryControllerFindAll
|
|
20
|
-
* @request GET:/category
|
|
21
|
-
* @response `200` `ICategoryControllerFindAllData`
|
|
22
|
-
*/
|
|
23
|
-
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* No description
|
|
26
|
-
*
|
|
27
|
-
* @tags Category
|
|
28
|
-
* @name CategoryControllerFindById
|
|
29
|
-
* @request GET:/category/{id}
|
|
30
|
-
* @response `200` `ICategoryControllerFindByIdData`
|
|
31
|
-
*/
|
|
32
|
-
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* No description
|
|
35
|
-
*
|
|
36
|
-
* @tags Category
|
|
37
|
-
* @name CategoryControllerUpdateById
|
|
38
|
-
* @request PATCH:/category/{id}
|
|
39
|
-
* @response `200` `ICategoryControllerUpdateByIdData`
|
|
40
|
-
*/
|
|
41
|
-
updateById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags Category
|
|
46
|
-
* @name CategoryControllerDeleteById
|
|
47
|
-
* @request DELETE:/category/{id}
|
|
48
|
-
* @response `200` `ICategoryControllerDeleteByIdData`
|
|
49
|
-
*/
|
|
50
|
-
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
51
|
-
}
|
|
@@ -1,84 +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
|
-
class Category {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Category
|
|
20
|
-
* @name CategoryControllerCreate
|
|
21
|
-
* @request POST:/category
|
|
22
|
-
* @response `200` `ICategoryControllerCreateData` 添加分类
|
|
23
|
-
*/
|
|
24
|
-
this.create = (params = {}) => this.http.request({
|
|
25
|
-
path: `/category`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* No description
|
|
31
|
-
*
|
|
32
|
-
* @tags Category
|
|
33
|
-
* @name CategoryControllerFindAll
|
|
34
|
-
* @request GET:/category
|
|
35
|
-
* @response `200` `ICategoryControllerFindAllData`
|
|
36
|
-
*/
|
|
37
|
-
this.findAll = (params = {}) => this.http.request({
|
|
38
|
-
path: `/category`,
|
|
39
|
-
method: 'GET',
|
|
40
|
-
...params,
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags Category
|
|
46
|
-
* @name CategoryControllerFindById
|
|
47
|
-
* @request GET:/category/{id}
|
|
48
|
-
* @response `200` `ICategoryControllerFindByIdData`
|
|
49
|
-
*/
|
|
50
|
-
this.findById = (id, params = {}) => this.http.request({
|
|
51
|
-
path: `/category/${id}`,
|
|
52
|
-
method: 'GET',
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* No description
|
|
57
|
-
*
|
|
58
|
-
* @tags Category
|
|
59
|
-
* @name CategoryControllerUpdateById
|
|
60
|
-
* @request PATCH:/category/{id}
|
|
61
|
-
* @response `200` `ICategoryControllerUpdateByIdData`
|
|
62
|
-
*/
|
|
63
|
-
this.updateById = (id, params = {}) => this.http.request({
|
|
64
|
-
path: `/category/${id}`,
|
|
65
|
-
method: 'PATCH',
|
|
66
|
-
...params,
|
|
67
|
-
});
|
|
68
|
-
/**
|
|
69
|
-
* No description
|
|
70
|
-
*
|
|
71
|
-
* @tags Category
|
|
72
|
-
* @name CategoryControllerDeleteById
|
|
73
|
-
* @request DELETE:/category/{id}
|
|
74
|
-
* @response `200` `ICategoryControllerDeleteByIdData`
|
|
75
|
-
*/
|
|
76
|
-
this.deleteById = (id, params = {}) => this.http.request({
|
|
77
|
-
path: `/category/${id}`,
|
|
78
|
-
method: 'DELETE',
|
|
79
|
-
...params,
|
|
80
|
-
});
|
|
81
|
-
this.http = http;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
exports.Category = Category;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ICommentControllerCreateData } from '../types';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class Comment<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags Comment
|
|
10
|
-
* @name CommentControllerCreate
|
|
11
|
-
* @request POST:/comment
|
|
12
|
-
* @response `200` `ICommentControllerCreateData` 创建评论
|
|
13
|
-
*/
|
|
14
|
-
create: (params?: RequestParams) => Promise<ICommentControllerCreateData>;
|
|
15
|
-
/**
|
|
16
|
-
* No description
|
|
17
|
-
*
|
|
18
|
-
* @tags Comment
|
|
19
|
-
* @name CommentControllerFindAll
|
|
20
|
-
* @request GET:/comment
|
|
21
|
-
* @response `200` `ICommentControllerFindAllData`
|
|
22
|
-
*/
|
|
23
|
-
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* No description
|
|
26
|
-
*
|
|
27
|
-
* @tags Comment
|
|
28
|
-
* @name CommentControllerFindById
|
|
29
|
-
* @request GET:/comment/{id}
|
|
30
|
-
* @response `200` `ICommentControllerFindByIdData`
|
|
31
|
-
*/
|
|
32
|
-
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* No description
|
|
35
|
-
*
|
|
36
|
-
* @tags Comment
|
|
37
|
-
* @name CommentControllerUpdateById
|
|
38
|
-
* @request PATCH:/comment/{id}
|
|
39
|
-
* @response `200` `ICommentControllerUpdateByIdData`
|
|
40
|
-
*/
|
|
41
|
-
updateById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags Comment
|
|
46
|
-
* @name CommentControllerDeleteById
|
|
47
|
-
* @request DELETE:/comment/{id}
|
|
48
|
-
* @response `200` `ICommentControllerDeleteByIdData`
|
|
49
|
-
*/
|
|
50
|
-
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
51
|
-
/**
|
|
52
|
-
* No description
|
|
53
|
-
*
|
|
54
|
-
* @tags Comment
|
|
55
|
-
* @name CommentControllerGetArticleComments
|
|
56
|
-
* @request GET:/comment/host/{hostId}
|
|
57
|
-
* @response `200` `ICommentControllerGetArticleCommentsData`
|
|
58
|
-
*/
|
|
59
|
-
getArticleComments: (hostId: string, params?: RequestParams) => Promise<any>;
|
|
60
|
-
}
|
|
@@ -1,97 +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
|
-
class Comment {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Comment
|
|
20
|
-
* @name CommentControllerCreate
|
|
21
|
-
* @request POST:/comment
|
|
22
|
-
* @response `200` `ICommentControllerCreateData` 创建评论
|
|
23
|
-
*/
|
|
24
|
-
this.create = (params = {}) => this.http.request({
|
|
25
|
-
path: `/comment`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* No description
|
|
31
|
-
*
|
|
32
|
-
* @tags Comment
|
|
33
|
-
* @name CommentControllerFindAll
|
|
34
|
-
* @request GET:/comment
|
|
35
|
-
* @response `200` `ICommentControllerFindAllData`
|
|
36
|
-
*/
|
|
37
|
-
this.findAll = (params = {}) => this.http.request({
|
|
38
|
-
path: `/comment`,
|
|
39
|
-
method: 'GET',
|
|
40
|
-
...params,
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags Comment
|
|
46
|
-
* @name CommentControllerFindById
|
|
47
|
-
* @request GET:/comment/{id}
|
|
48
|
-
* @response `200` `ICommentControllerFindByIdData`
|
|
49
|
-
*/
|
|
50
|
-
this.findById = (id, params = {}) => this.http.request({
|
|
51
|
-
path: `/comment/${id}`,
|
|
52
|
-
method: 'GET',
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* No description
|
|
57
|
-
*
|
|
58
|
-
* @tags Comment
|
|
59
|
-
* @name CommentControllerUpdateById
|
|
60
|
-
* @request PATCH:/comment/{id}
|
|
61
|
-
* @response `200` `ICommentControllerUpdateByIdData`
|
|
62
|
-
*/
|
|
63
|
-
this.updateById = (id, params = {}) => this.http.request({
|
|
64
|
-
path: `/comment/${id}`,
|
|
65
|
-
method: 'PATCH',
|
|
66
|
-
...params,
|
|
67
|
-
});
|
|
68
|
-
/**
|
|
69
|
-
* No description
|
|
70
|
-
*
|
|
71
|
-
* @tags Comment
|
|
72
|
-
* @name CommentControllerDeleteById
|
|
73
|
-
* @request DELETE:/comment/{id}
|
|
74
|
-
* @response `200` `ICommentControllerDeleteByIdData`
|
|
75
|
-
*/
|
|
76
|
-
this.deleteById = (id, params = {}) => this.http.request({
|
|
77
|
-
path: `/comment/${id}`,
|
|
78
|
-
method: 'DELETE',
|
|
79
|
-
...params,
|
|
80
|
-
});
|
|
81
|
-
/**
|
|
82
|
-
* No description
|
|
83
|
-
*
|
|
84
|
-
* @tags Comment
|
|
85
|
-
* @name CommentControllerGetArticleComments
|
|
86
|
-
* @request GET:/comment/host/{hostId}
|
|
87
|
-
* @response `200` `ICommentControllerGetArticleCommentsData`
|
|
88
|
-
*/
|
|
89
|
-
this.getArticleComments = (hostId, params = {}) => this.http.request({
|
|
90
|
-
path: `/comment/host/${hostId}`,
|
|
91
|
-
method: 'GET',
|
|
92
|
-
...params,
|
|
93
|
-
});
|
|
94
|
-
this.http = http;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
exports.Comment = Comment;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { IFileControllerUploadFileData } from '../types';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class File<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags File
|
|
10
|
-
* @name FileControllerUploadFile
|
|
11
|
-
* @request POST:/file/upload
|
|
12
|
-
* @response `200` `IFileControllerUploadFileData` 上传文件
|
|
13
|
-
*/
|
|
14
|
-
uploadFile: (params?: RequestParams) => Promise<IFileControllerUploadFileData>;
|
|
15
|
-
/**
|
|
16
|
-
* No description
|
|
17
|
-
*
|
|
18
|
-
* @tags File
|
|
19
|
-
* @name FileControllerFindAll
|
|
20
|
-
* @request GET:/file
|
|
21
|
-
* @response `200` `IFileControllerFindAllData`
|
|
22
|
-
*/
|
|
23
|
-
findAll: (params?: RequestParams) => Promise<any>;
|
|
24
|
-
/**
|
|
25
|
-
* No description
|
|
26
|
-
*
|
|
27
|
-
* @tags File
|
|
28
|
-
* @name FileControllerFindById
|
|
29
|
-
* @request GET:/file/{id}
|
|
30
|
-
* @response `200` `IFileControllerFindByIdData`
|
|
31
|
-
*/
|
|
32
|
-
findById: (id: string, params?: RequestParams) => Promise<any>;
|
|
33
|
-
/**
|
|
34
|
-
* No description
|
|
35
|
-
*
|
|
36
|
-
* @tags File
|
|
37
|
-
* @name FileControllerDeleteById
|
|
38
|
-
* @request DELETE:/file/{id}
|
|
39
|
-
* @response `200` `IFileControllerDeleteByIdData`
|
|
40
|
-
*/
|
|
41
|
-
deleteById: (id: string, params?: RequestParams) => Promise<any>;
|
|
42
|
-
}
|
package/toolkit/dist/api/File.js
DELETED
|
@@ -1,71 +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.File = void 0;
|
|
14
|
-
class File {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags File
|
|
20
|
-
* @name FileControllerUploadFile
|
|
21
|
-
* @request POST:/file/upload
|
|
22
|
-
* @response `200` `IFileControllerUploadFileData` 上传文件
|
|
23
|
-
*/
|
|
24
|
-
this.uploadFile = (params = {}) => this.http.request({
|
|
25
|
-
path: `/file/upload`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
/**
|
|
30
|
-
* No description
|
|
31
|
-
*
|
|
32
|
-
* @tags File
|
|
33
|
-
* @name FileControllerFindAll
|
|
34
|
-
* @request GET:/file
|
|
35
|
-
* @response `200` `IFileControllerFindAllData`
|
|
36
|
-
*/
|
|
37
|
-
this.findAll = (params = {}) => this.http.request({
|
|
38
|
-
path: `/file`,
|
|
39
|
-
method: 'GET',
|
|
40
|
-
...params,
|
|
41
|
-
});
|
|
42
|
-
/**
|
|
43
|
-
* No description
|
|
44
|
-
*
|
|
45
|
-
* @tags File
|
|
46
|
-
* @name FileControllerFindById
|
|
47
|
-
* @request GET:/file/{id}
|
|
48
|
-
* @response `200` `IFileControllerFindByIdData`
|
|
49
|
-
*/
|
|
50
|
-
this.findById = (id, params = {}) => this.http.request({
|
|
51
|
-
path: `/file/${id}`,
|
|
52
|
-
method: 'GET',
|
|
53
|
-
...params,
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* No description
|
|
57
|
-
*
|
|
58
|
-
* @tags File
|
|
59
|
-
* @name FileControllerDeleteById
|
|
60
|
-
* @request DELETE:/file/{id}
|
|
61
|
-
* @response `200` `IFileControllerDeleteByIdData`
|
|
62
|
-
*/
|
|
63
|
-
this.deleteById = (id, params = {}) => this.http.request({
|
|
64
|
-
path: `/file/${id}`,
|
|
65
|
-
method: 'DELETE',
|
|
66
|
-
...params,
|
|
67
|
-
});
|
|
68
|
-
this.http = http;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.File = File;
|