@fecommunity/reactpress-toolkit 1.0.0 → 3.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 +9 -27
- 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 +390 -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 +17 -20
- package/dist/locales/en.json +97 -0
- package/dist/locales/zh.json +97 -0
- package/package.json +15 -3
- 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/HttpClient.d.ts +0 -41
- package/dist/HttpClient.js +0 -94
- 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/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/api/{httpClient.d.ts → HttpClient.d.ts} +0 -0
- /package/dist/api/{httpClient.js → HttpClient.js} +0 -0
package/dist/api/ArticleRoute.js
DELETED
|
@@ -1,12 +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 });
|
package/dist/api/AuthRoute.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare namespace Auth {
|
|
2
|
-
/**
|
|
3
|
-
* No description
|
|
4
|
-
* @tags Auth
|
|
5
|
-
* @name login
|
|
6
|
-
* @request POST:/auth/login
|
|
7
|
-
* @response `200` `void`
|
|
8
|
-
*/
|
|
9
|
-
namespace login {
|
|
10
|
-
type RequestParams = {};
|
|
11
|
-
type RequestQuery = {};
|
|
12
|
-
type RequestBody = never;
|
|
13
|
-
type RequestHeaders = {};
|
|
14
|
-
type ResponseBody = void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
* @tags Auth
|
|
19
|
-
* @name createBook
|
|
20
|
-
* @request POST:/auth/admin
|
|
21
|
-
* @response `201` `void`
|
|
22
|
-
*/
|
|
23
|
-
namespace createBook {
|
|
24
|
-
type RequestParams = {};
|
|
25
|
-
type RequestQuery = {};
|
|
26
|
-
type RequestBody = never;
|
|
27
|
-
type RequestHeaders = {};
|
|
28
|
-
type ResponseBody = void;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* No description
|
|
32
|
-
* @tags Auth
|
|
33
|
-
* @name loginWithGithub
|
|
34
|
-
* @request POST:/auth/github
|
|
35
|
-
* @response `201` `void`
|
|
36
|
-
*/
|
|
37
|
-
namespace loginWithGithub {
|
|
38
|
-
type RequestParams = {};
|
|
39
|
-
type RequestQuery = {};
|
|
40
|
-
type RequestBody = never;
|
|
41
|
-
type RequestHeaders = {};
|
|
42
|
-
type ResponseBody = void;
|
|
43
|
-
}
|
|
44
|
-
}
|
package/dist/api/AuthRoute.js
DELETED
|
@@ -1,12 +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 });
|
package/dist/api/Book.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IKnowledge } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
3
|
-
export declare class Book<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags Knowledge
|
|
10
|
-
* @name KnowledgeControllerCreateBook
|
|
11
|
-
* @request POST:/Knowledge/book
|
|
12
|
-
* @response `200` `(IKnowledge)[]` 创建知识库
|
|
13
|
-
*/
|
|
14
|
-
knowledgeControllerCreateBook: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IKnowledge[], any, {}>>;
|
|
15
|
-
}
|
package/dist/api/Book.js
DELETED
|
@@ -1,33 +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.Book = void 0;
|
|
14
|
-
class Book {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Knowledge
|
|
20
|
-
* @name KnowledgeControllerCreateBook
|
|
21
|
-
* @request POST:/Knowledge/book
|
|
22
|
-
* @response `200` `(IKnowledge)[]` 创建知识库
|
|
23
|
-
*/
|
|
24
|
-
this.knowledgeControllerCreateBook = (params = {}) => this.http.request({
|
|
25
|
-
path: `/Knowledge/book`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
format: 'json',
|
|
28
|
-
...params,
|
|
29
|
-
});
|
|
30
|
-
this.http = http;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.Book = Book;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { ICategory } from '../types/data-contracts';
|
|
2
|
-
export declare namespace Category {
|
|
3
|
-
/**
|
|
4
|
-
* No description
|
|
5
|
-
* @tags Category
|
|
6
|
-
* @name create
|
|
7
|
-
* @request POST:/category
|
|
8
|
-
* @response `200` `(ICategory)[]` 添加分类
|
|
9
|
-
*/
|
|
10
|
-
namespace create {
|
|
11
|
-
type RequestParams = {};
|
|
12
|
-
type RequestQuery = {};
|
|
13
|
-
type RequestBody = never;
|
|
14
|
-
type RequestHeaders = {};
|
|
15
|
-
type ResponseBody = ICategory[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* No description
|
|
19
|
-
* @tags Category
|
|
20
|
-
* @name findAll
|
|
21
|
-
* @request GET:/category
|
|
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 Category
|
|
34
|
-
* @name findById
|
|
35
|
-
* @request GET:/category/{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 Category
|
|
50
|
-
* @name updateById
|
|
51
|
-
* @request PATCH:/category/{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 Category
|
|
66
|
-
* @name deleteById
|
|
67
|
-
* @request DELETE:/category/{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
|
-
}
|
|
@@ -1,12 +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 });
|
package/dist/api/Chapter.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IKnowledge } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
3
|
-
export declare class Chapter<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags Knowledge
|
|
10
|
-
* @name KnowledgeControllerCreateChapter
|
|
11
|
-
* @request POST:/Knowledge/chapter
|
|
12
|
-
* @response `200` `(IKnowledge)[]` 创建知识章节
|
|
13
|
-
*/
|
|
14
|
-
knowledgeControllerCreateChapter: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IKnowledge[], any, {}>>;
|
|
15
|
-
}
|
package/dist/api/Chapter.js
DELETED
|
@@ -1,33 +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.Chapter = void 0;
|
|
14
|
-
class Chapter {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Knowledge
|
|
20
|
-
* @name KnowledgeControllerCreateChapter
|
|
21
|
-
* @request POST:/Knowledge/chapter
|
|
22
|
-
* @response `200` `(IKnowledge)[]` 创建知识章节
|
|
23
|
-
*/
|
|
24
|
-
this.knowledgeControllerCreateChapter = (params = {}) => this.http.request({
|
|
25
|
-
path: `/Knowledge/chapter`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
format: 'json',
|
|
28
|
-
...params,
|
|
29
|
-
});
|
|
30
|
-
this.http = http;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.Chapter = Chapter;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { IComment } from '../types/data-contracts';
|
|
2
|
-
export declare namespace Comment {
|
|
3
|
-
/**
|
|
4
|
-
* No description
|
|
5
|
-
* @tags Comment
|
|
6
|
-
* @name create
|
|
7
|
-
* @request POST:/comment
|
|
8
|
-
* @response `200` `(IComment)[]` 创建评论
|
|
9
|
-
*/
|
|
10
|
-
namespace create {
|
|
11
|
-
type RequestParams = {};
|
|
12
|
-
type RequestQuery = {};
|
|
13
|
-
type RequestBody = never;
|
|
14
|
-
type RequestHeaders = {};
|
|
15
|
-
type ResponseBody = IComment[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* No description
|
|
19
|
-
* @tags Comment
|
|
20
|
-
* @name findAll
|
|
21
|
-
* @request GET:/comment
|
|
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 Comment
|
|
34
|
-
* @name findById
|
|
35
|
-
* @request GET:/comment/{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 Comment
|
|
50
|
-
* @name updateById
|
|
51
|
-
* @request PATCH:/comment/{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 Comment
|
|
66
|
-
* @name deleteById
|
|
67
|
-
* @request DELETE:/comment/{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 Comment
|
|
82
|
-
* @name getArticleComments
|
|
83
|
-
* @request GET:/comment/host/{hostId}
|
|
84
|
-
* @response `200` `void`
|
|
85
|
-
*/
|
|
86
|
-
namespace getArticleComments {
|
|
87
|
-
type RequestParams = {
|
|
88
|
-
hostId: string;
|
|
89
|
-
};
|
|
90
|
-
type RequestQuery = {};
|
|
91
|
-
type RequestBody = never;
|
|
92
|
-
type RequestHeaders = {};
|
|
93
|
-
type ResponseBody = void;
|
|
94
|
-
}
|
|
95
|
-
}
|
package/dist/api/CommentRoute.js
DELETED
|
@@ -1,12 +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 });
|
package/dist/api/FileRoute.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { IFile } from '../types/data-contracts';
|
|
2
|
-
export declare namespace File {
|
|
3
|
-
/**
|
|
4
|
-
* No description
|
|
5
|
-
* @tags File
|
|
6
|
-
* @name uploadFile
|
|
7
|
-
* @request POST:/file/upload
|
|
8
|
-
* @response `200` `(IFile)[]` 上传文件
|
|
9
|
-
*/
|
|
10
|
-
namespace uploadFile {
|
|
11
|
-
type RequestParams = {};
|
|
12
|
-
type RequestQuery = {};
|
|
13
|
-
type RequestBody = never;
|
|
14
|
-
type RequestHeaders = {};
|
|
15
|
-
type ResponseBody = IFile[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* No description
|
|
19
|
-
* @tags File
|
|
20
|
-
* @name findAll
|
|
21
|
-
* @request GET:/file
|
|
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 File
|
|
34
|
-
* @name findById
|
|
35
|
-
* @request GET:/file/{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 File
|
|
50
|
-
* @name deleteById
|
|
51
|
-
* @request DELETE:/file/{id}
|
|
52
|
-
* @response `200` `void`
|
|
53
|
-
*/
|
|
54
|
-
namespace deleteById {
|
|
55
|
-
type RequestParams = {
|
|
56
|
-
id: string;
|
|
57
|
-
};
|
|
58
|
-
type RequestQuery = {};
|
|
59
|
-
type RequestBody = never;
|
|
60
|
-
type RequestHeaders = {};
|
|
61
|
-
type ResponseBody = void;
|
|
62
|
-
}
|
|
63
|
-
}
|
package/dist/api/FileRoute.js
DELETED
|
@@ -1,12 +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 });
|
package/dist/api/Get.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
2
|
-
export declare class Get<SecurityDataType = unknown> {
|
|
3
|
-
http: HttpClient<SecurityDataType>;
|
|
4
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
-
/**
|
|
6
|
-
* No description
|
|
7
|
-
*
|
|
8
|
-
* @tags Setting
|
|
9
|
-
* @name SettingControllerFindAll
|
|
10
|
-
* @request POST:/setting/get
|
|
11
|
-
* @response `200` `void`
|
|
12
|
-
*/
|
|
13
|
-
settingControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
}
|
package/dist/api/Get.js
DELETED
|
@@ -1,32 +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.Get = void 0;
|
|
14
|
-
class Get {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Setting
|
|
20
|
-
* @name SettingControllerFindAll
|
|
21
|
-
* @request POST:/setting/get
|
|
22
|
-
* @response `200` `void`
|
|
23
|
-
*/
|
|
24
|
-
this.settingControllerFindAll = (params = {}) => this.http.request({
|
|
25
|
-
path: `/setting/get`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
this.http = http;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.Get = Get;
|
package/dist/api/Github.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
2
|
-
export declare class Github<SecurityDataType = unknown> {
|
|
3
|
-
http: HttpClient<SecurityDataType>;
|
|
4
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
-
/**
|
|
6
|
-
* No description
|
|
7
|
-
*
|
|
8
|
-
* @tags Auth
|
|
9
|
-
* @name AuthControllerLoginWithGithub
|
|
10
|
-
* @request POST:/auth/github
|
|
11
|
-
* @response `201` `void`
|
|
12
|
-
*/
|
|
13
|
-
authControllerLoginWithGithub: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
}
|
package/dist/api/Github.js
DELETED
|
@@ -1,32 +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.Github = void 0;
|
|
14
|
-
class Github {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Auth
|
|
20
|
-
* @name AuthControllerLoginWithGithub
|
|
21
|
-
* @request POST:/auth/github
|
|
22
|
-
* @response `201` `void`
|
|
23
|
-
*/
|
|
24
|
-
this.authControllerLoginWithGithub = (params = {}) => this.http.request({
|
|
25
|
-
path: `/auth/github`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
this.http = http;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.Github = Github;
|
package/dist/api/Host.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
2
|
-
export declare class Host<SecurityDataType = unknown> {
|
|
3
|
-
http: HttpClient<SecurityDataType>;
|
|
4
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
-
/**
|
|
6
|
-
* No description
|
|
7
|
-
*
|
|
8
|
-
* @tags Comment
|
|
9
|
-
* @name CommentControllerGetArticleComments
|
|
10
|
-
* @request GET:/comment/host/{hostId}
|
|
11
|
-
* @response `200` `void`
|
|
12
|
-
*/
|
|
13
|
-
commentControllerGetArticleComments: (hostId: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
}
|
package/dist/api/Host.js
DELETED
|
@@ -1,32 +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.Host = void 0;
|
|
14
|
-
class Host {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Comment
|
|
20
|
-
* @name CommentControllerGetArticleComments
|
|
21
|
-
* @request GET:/comment/host/{hostId}
|
|
22
|
-
* @response `200` `void`
|
|
23
|
-
*/
|
|
24
|
-
this.commentControllerGetArticleComments = (hostId, params = {}) => this.http.request({
|
|
25
|
-
path: `/comment/host/${hostId}`,
|
|
26
|
-
method: 'GET',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
this.http = http;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.Host = Host;
|