@fecommunity/reactpress-toolkit 1.0.0-beta.2 → 1.0.0-beta.3
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 +221 -6
- 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 +93 -0
- package/dist/config/global.d.ts +34 -0
- package/dist/config/global.js +382 -0
- package/dist/config/i18n.d.ts +5 -0
- package/dist/config/i18n.js +47 -0
- package/dist/config/index.d.ts +14 -0
- package/dist/config/index.js +30 -0
- package/dist/index.d.ts +7 -4
- package/dist/index.js +21 -18
- 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 +12 -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/Smtp.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.Smtp = void 0;
|
|
14
|
-
const HttpClient_1 = require("./HttpClient");
|
|
15
|
-
class Smtp extends HttpClient_1.HttpClient {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
/**
|
|
19
|
-
* No description
|
|
20
|
-
*
|
|
21
|
-
* @tags Smtp
|
|
22
|
-
* @name SmtpControllerCreate
|
|
23
|
-
* @request POST:/smtp
|
|
24
|
-
* @response `200` `ISmtpControllerCreateData` 发送邮件
|
|
25
|
-
*/
|
|
26
|
-
this.smtpControllerCreate = (params = {}) => this.request({
|
|
27
|
-
path: `/smtp`,
|
|
28
|
-
method: 'POST',
|
|
29
|
-
...params,
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Smtp
|
|
35
|
-
* @name SmtpControllerFindAll
|
|
36
|
-
* @request GET:/smtp
|
|
37
|
-
* @response `200` `ISmtpControllerFindAllData`
|
|
38
|
-
*/
|
|
39
|
-
this.smtpControllerFindAll = (params = {}) => this.request({
|
|
40
|
-
path: `/smtp`,
|
|
41
|
-
method: 'GET',
|
|
42
|
-
...params,
|
|
43
|
-
});
|
|
44
|
-
/**
|
|
45
|
-
* No description
|
|
46
|
-
*
|
|
47
|
-
* @tags Smtp
|
|
48
|
-
* @name SmtpControllerDeleteById
|
|
49
|
-
* @request DELETE:/smtp/{id}
|
|
50
|
-
* @response `200` `ISmtpControllerDeleteByIdData`
|
|
51
|
-
*/
|
|
52
|
-
this.smtpControllerDeleteById = (id, params = {}) => this.request({
|
|
53
|
-
path: `/smtp/${id}`,
|
|
54
|
-
method: 'DELETE',
|
|
55
|
-
...params,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.Smtp = Smtp;
|
package/dist/Tag.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { ITagControllerCreateData } from './data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class Tag<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
|
-
/**
|
|
5
|
-
* No description
|
|
6
|
-
*
|
|
7
|
-
* @tags Tag
|
|
8
|
-
* @name TagControllerCreate
|
|
9
|
-
* @request POST:/tag
|
|
10
|
-
* @response `200` `ITagControllerCreateData` 创建标签
|
|
11
|
-
*/
|
|
12
|
-
tagControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ITagControllerCreateData, any, {}>>;
|
|
13
|
-
/**
|
|
14
|
-
* No description
|
|
15
|
-
*
|
|
16
|
-
* @tags Tag
|
|
17
|
-
* @name TagControllerFindAll
|
|
18
|
-
* @request GET:/tag
|
|
19
|
-
* @response `200` `ITagControllerFindAllData`
|
|
20
|
-
*/
|
|
21
|
-
tagControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
22
|
-
/**
|
|
23
|
-
* No description
|
|
24
|
-
*
|
|
25
|
-
* @tags Tag
|
|
26
|
-
* @name TagControllerFindById
|
|
27
|
-
* @request GET:/tag/{id}
|
|
28
|
-
* @response `200` `ITagControllerFindByIdData`
|
|
29
|
-
*/
|
|
30
|
-
tagControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Tag
|
|
35
|
-
* @name TagControllerUpdateById
|
|
36
|
-
* @request PATCH:/tag/{id}
|
|
37
|
-
* @response `200` `ITagControllerUpdateByIdData`
|
|
38
|
-
*/
|
|
39
|
-
tagControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
40
|
-
/**
|
|
41
|
-
* No description
|
|
42
|
-
*
|
|
43
|
-
* @tags Tag
|
|
44
|
-
* @name TagControllerDeleteById
|
|
45
|
-
* @request DELETE:/tag/{id}
|
|
46
|
-
* @response `200` `ITagControllerDeleteByIdData`
|
|
47
|
-
*/
|
|
48
|
-
tagControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
49
|
-
/**
|
|
50
|
-
* No description
|
|
51
|
-
*
|
|
52
|
-
* @tags Tag
|
|
53
|
-
* @name TagControllerGetArticleById
|
|
54
|
-
* @request GET:/tag/{id}/article
|
|
55
|
-
* @response `200` `ITagControllerGetArticleByIdData`
|
|
56
|
-
*/
|
|
57
|
-
tagControllerGetArticleById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
58
|
-
}
|
package/dist/Tag.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.Tag = void 0;
|
|
14
|
-
const HttpClient_1 = require("./HttpClient");
|
|
15
|
-
class Tag extends HttpClient_1.HttpClient {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
/**
|
|
19
|
-
* No description
|
|
20
|
-
*
|
|
21
|
-
* @tags Tag
|
|
22
|
-
* @name TagControllerCreate
|
|
23
|
-
* @request POST:/tag
|
|
24
|
-
* @response `200` `ITagControllerCreateData` 创建标签
|
|
25
|
-
*/
|
|
26
|
-
this.tagControllerCreate = (params = {}) => this.request({
|
|
27
|
-
path: `/tag`,
|
|
28
|
-
method: 'POST',
|
|
29
|
-
...params,
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags Tag
|
|
35
|
-
* @name TagControllerFindAll
|
|
36
|
-
* @request GET:/tag
|
|
37
|
-
* @response `200` `ITagControllerFindAllData`
|
|
38
|
-
*/
|
|
39
|
-
this.tagControllerFindAll = (params = {}) => this.request({
|
|
40
|
-
path: `/tag`,
|
|
41
|
-
method: 'GET',
|
|
42
|
-
...params,
|
|
43
|
-
});
|
|
44
|
-
/**
|
|
45
|
-
* No description
|
|
46
|
-
*
|
|
47
|
-
* @tags Tag
|
|
48
|
-
* @name TagControllerFindById
|
|
49
|
-
* @request GET:/tag/{id}
|
|
50
|
-
* @response `200` `ITagControllerFindByIdData`
|
|
51
|
-
*/
|
|
52
|
-
this.tagControllerFindById = (id, params = {}) => this.request({
|
|
53
|
-
path: `/tag/${id}`,
|
|
54
|
-
method: 'GET',
|
|
55
|
-
...params,
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* No description
|
|
59
|
-
*
|
|
60
|
-
* @tags Tag
|
|
61
|
-
* @name TagControllerUpdateById
|
|
62
|
-
* @request PATCH:/tag/{id}
|
|
63
|
-
* @response `200` `ITagControllerUpdateByIdData`
|
|
64
|
-
*/
|
|
65
|
-
this.tagControllerUpdateById = (id, params = {}) => this.request({
|
|
66
|
-
path: `/tag/${id}`,
|
|
67
|
-
method: 'PATCH',
|
|
68
|
-
...params,
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* No description
|
|
72
|
-
*
|
|
73
|
-
* @tags Tag
|
|
74
|
-
* @name TagControllerDeleteById
|
|
75
|
-
* @request DELETE:/tag/{id}
|
|
76
|
-
* @response `200` `ITagControllerDeleteByIdData`
|
|
77
|
-
*/
|
|
78
|
-
this.tagControllerDeleteById = (id, params = {}) => this.request({
|
|
79
|
-
path: `/tag/${id}`,
|
|
80
|
-
method: 'DELETE',
|
|
81
|
-
...params,
|
|
82
|
-
});
|
|
83
|
-
/**
|
|
84
|
-
* No description
|
|
85
|
-
*
|
|
86
|
-
* @tags Tag
|
|
87
|
-
* @name TagControllerGetArticleById
|
|
88
|
-
* @request GET:/tag/{id}/article
|
|
89
|
-
* @response `200` `ITagControllerGetArticleByIdData`
|
|
90
|
-
*/
|
|
91
|
-
this.tagControllerGetArticleById = (id, params = {}) => this.request({
|
|
92
|
-
path: `/tag/${id}/article`,
|
|
93
|
-
method: 'GET',
|
|
94
|
-
...params,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.Tag = Tag;
|
package/dist/User.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { IUserControllerFindAllData, IUserControllerRegisterData, IUserControllerUpdateData, IUserControllerUpdatePasswordData } from './data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class User<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
|
-
/**
|
|
5
|
-
* No description
|
|
6
|
-
*
|
|
7
|
-
* @tags User
|
|
8
|
-
* @name UserControllerFindAll
|
|
9
|
-
* @request GET:/user
|
|
10
|
-
* @response `200` `IUserControllerFindAllData` 获取用户列表
|
|
11
|
-
* @response `403` `void` 无权获取用户列表
|
|
12
|
-
*/
|
|
13
|
-
userControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUserControllerFindAllData, any, {}>>;
|
|
14
|
-
/**
|
|
15
|
-
* No description
|
|
16
|
-
*
|
|
17
|
-
* @tags User
|
|
18
|
-
* @name UserControllerRegister
|
|
19
|
-
* @request POST:/user/register
|
|
20
|
-
* @response `201` `IUserControllerRegisterData` 创建用户
|
|
21
|
-
*/
|
|
22
|
-
userControllerRegister: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUserControllerRegisterData, any, {}>>;
|
|
23
|
-
/**
|
|
24
|
-
* No description
|
|
25
|
-
*
|
|
26
|
-
* @tags User
|
|
27
|
-
* @name UserControllerUpdate
|
|
28
|
-
* @request POST:/user/update
|
|
29
|
-
* @response `200` `IUserControllerUpdateData` 更新用户成功
|
|
30
|
-
*/
|
|
31
|
-
userControllerUpdate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUserControllerUpdateData, any, {}>>;
|
|
32
|
-
/**
|
|
33
|
-
* No description
|
|
34
|
-
*
|
|
35
|
-
* @tags User
|
|
36
|
-
* @name UserControllerUpdatePassword
|
|
37
|
-
* @request POST:/user/password
|
|
38
|
-
* @response `201` `IUserControllerUpdatePasswordData` 更新密码成功
|
|
39
|
-
*/
|
|
40
|
-
userControllerUpdatePassword: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUserControllerUpdatePasswordData, any, {}>>;
|
|
41
|
-
}
|
package/dist/User.js
DELETED
|
@@ -1,73 +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.User = void 0;
|
|
14
|
-
const HttpClient_1 = require("./HttpClient");
|
|
15
|
-
class User extends HttpClient_1.HttpClient {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
/**
|
|
19
|
-
* No description
|
|
20
|
-
*
|
|
21
|
-
* @tags User
|
|
22
|
-
* @name UserControllerFindAll
|
|
23
|
-
* @request GET:/user
|
|
24
|
-
* @response `200` `IUserControllerFindAllData` 获取用户列表
|
|
25
|
-
* @response `403` `void` 无权获取用户列表
|
|
26
|
-
*/
|
|
27
|
-
this.userControllerFindAll = (params = {}) => this.request({
|
|
28
|
-
path: `/user`,
|
|
29
|
-
method: 'GET',
|
|
30
|
-
...params,
|
|
31
|
-
});
|
|
32
|
-
/**
|
|
33
|
-
* No description
|
|
34
|
-
*
|
|
35
|
-
* @tags User
|
|
36
|
-
* @name UserControllerRegister
|
|
37
|
-
* @request POST:/user/register
|
|
38
|
-
* @response `201` `IUserControllerRegisterData` 创建用户
|
|
39
|
-
*/
|
|
40
|
-
this.userControllerRegister = (params = {}) => this.request({
|
|
41
|
-
path: `/user/register`,
|
|
42
|
-
method: 'POST',
|
|
43
|
-
...params,
|
|
44
|
-
});
|
|
45
|
-
/**
|
|
46
|
-
* No description
|
|
47
|
-
*
|
|
48
|
-
* @tags User
|
|
49
|
-
* @name UserControllerUpdate
|
|
50
|
-
* @request POST:/user/update
|
|
51
|
-
* @response `200` `IUserControllerUpdateData` 更新用户成功
|
|
52
|
-
*/
|
|
53
|
-
this.userControllerUpdate = (params = {}) => this.request({
|
|
54
|
-
path: `/user/update`,
|
|
55
|
-
method: 'POST',
|
|
56
|
-
...params,
|
|
57
|
-
});
|
|
58
|
-
/**
|
|
59
|
-
* No description
|
|
60
|
-
*
|
|
61
|
-
* @tags User
|
|
62
|
-
* @name UserControllerUpdatePassword
|
|
63
|
-
* @request POST:/user/password
|
|
64
|
-
* @response `201` `IUserControllerUpdatePasswordData` 更新密码成功
|
|
65
|
-
*/
|
|
66
|
-
this.userControllerUpdatePassword = (params = {}) => this.request({
|
|
67
|
-
path: `/user/password`,
|
|
68
|
-
method: 'POST',
|
|
69
|
-
...params,
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.User = User;
|
package/dist/View.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { IViewControllerCreateData } from './data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
|
-
export declare class View<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
|
-
/**
|
|
5
|
-
* No description
|
|
6
|
-
*
|
|
7
|
-
* @tags View
|
|
8
|
-
* @name ViewControllerCreate
|
|
9
|
-
* @request POST:/view
|
|
10
|
-
* @response `200` `IViewControllerCreateData` 访问记录添加成功
|
|
11
|
-
*/
|
|
12
|
-
viewControllerCreate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IViewControllerCreateData, any, {}>>;
|
|
13
|
-
/**
|
|
14
|
-
* No description
|
|
15
|
-
*
|
|
16
|
-
* @tags View
|
|
17
|
-
* @name ViewControllerFindAll
|
|
18
|
-
* @request GET:/view
|
|
19
|
-
* @response `200` `IViewControllerFindAllData`
|
|
20
|
-
*/
|
|
21
|
-
viewControllerFindAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
22
|
-
/**
|
|
23
|
-
* No description
|
|
24
|
-
*
|
|
25
|
-
* @tags View
|
|
26
|
-
* @name ViewControllerFindByUrl
|
|
27
|
-
* @request GET:/view/url
|
|
28
|
-
* @response `200` `IViewControllerFindByUrlData`
|
|
29
|
-
*/
|
|
30
|
-
viewControllerFindByUrl: (params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags View
|
|
35
|
-
* @name ViewControllerFindById
|
|
36
|
-
* @request GET:/view/{id}
|
|
37
|
-
* @response `200` `IViewControllerFindByIdData`
|
|
38
|
-
*/
|
|
39
|
-
viewControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
40
|
-
/**
|
|
41
|
-
* No description
|
|
42
|
-
*
|
|
43
|
-
* @tags View
|
|
44
|
-
* @name ViewControllerDeleteById
|
|
45
|
-
* @request DELETE:/view/{id}
|
|
46
|
-
* @response `200` `IViewControllerDeleteByIdData`
|
|
47
|
-
*/
|
|
48
|
-
viewControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
49
|
-
}
|
package/dist/View.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.View = void 0;
|
|
14
|
-
const HttpClient_1 = require("./HttpClient");
|
|
15
|
-
class View extends HttpClient_1.HttpClient {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
/**
|
|
19
|
-
* No description
|
|
20
|
-
*
|
|
21
|
-
* @tags View
|
|
22
|
-
* @name ViewControllerCreate
|
|
23
|
-
* @request POST:/view
|
|
24
|
-
* @response `200` `IViewControllerCreateData` 访问记录添加成功
|
|
25
|
-
*/
|
|
26
|
-
this.viewControllerCreate = (params = {}) => this.request({
|
|
27
|
-
path: `/view`,
|
|
28
|
-
method: 'POST',
|
|
29
|
-
...params,
|
|
30
|
-
});
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
*
|
|
34
|
-
* @tags View
|
|
35
|
-
* @name ViewControllerFindAll
|
|
36
|
-
* @request GET:/view
|
|
37
|
-
* @response `200` `IViewControllerFindAllData`
|
|
38
|
-
*/
|
|
39
|
-
this.viewControllerFindAll = (params = {}) => this.request({
|
|
40
|
-
path: `/view`,
|
|
41
|
-
method: 'GET',
|
|
42
|
-
...params,
|
|
43
|
-
});
|
|
44
|
-
/**
|
|
45
|
-
* No description
|
|
46
|
-
*
|
|
47
|
-
* @tags View
|
|
48
|
-
* @name ViewControllerFindByUrl
|
|
49
|
-
* @request GET:/view/url
|
|
50
|
-
* @response `200` `IViewControllerFindByUrlData`
|
|
51
|
-
*/
|
|
52
|
-
this.viewControllerFindByUrl = (params = {}) => this.request({
|
|
53
|
-
path: `/view/url`,
|
|
54
|
-
method: 'GET',
|
|
55
|
-
...params,
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* No description
|
|
59
|
-
*
|
|
60
|
-
* @tags View
|
|
61
|
-
* @name ViewControllerFindById
|
|
62
|
-
* @request GET:/view/{id}
|
|
63
|
-
* @response `200` `IViewControllerFindByIdData`
|
|
64
|
-
*/
|
|
65
|
-
this.viewControllerFindById = (id, params = {}) => this.request({
|
|
66
|
-
path: `/view/${id}`,
|
|
67
|
-
method: 'GET',
|
|
68
|
-
...params,
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* No description
|
|
72
|
-
*
|
|
73
|
-
* @tags View
|
|
74
|
-
* @name ViewControllerDeleteById
|
|
75
|
-
* @request DELETE:/view/{id}
|
|
76
|
-
* @response `200` `IViewControllerDeleteByIdData`
|
|
77
|
-
*/
|
|
78
|
-
this.viewControllerDeleteById = (id, params = {}) => this.request({
|
|
79
|
-
path: `/view/${id}`,
|
|
80
|
-
method: 'DELETE',
|
|
81
|
-
...params,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
exports.View = View;
|
package/dist/api/Admin.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
2
|
-
export declare class Admin<SecurityDataType = unknown> {
|
|
3
|
-
http: HttpClient<SecurityDataType>;
|
|
4
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
-
/**
|
|
6
|
-
* No description
|
|
7
|
-
*
|
|
8
|
-
* @tags Auth
|
|
9
|
-
* @name AuthControllerCreateBook
|
|
10
|
-
* @request POST:/auth/admin
|
|
11
|
-
* @response `201` `void`
|
|
12
|
-
*/
|
|
13
|
-
authControllerCreateBook: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
}
|
package/dist/api/Admin.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.Admin = void 0;
|
|
14
|
-
class Admin {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Auth
|
|
20
|
-
* @name AuthControllerCreateBook
|
|
21
|
-
* @request POST:/auth/admin
|
|
22
|
-
* @response `201` `void`
|
|
23
|
-
*/
|
|
24
|
-
this.authControllerCreateBook = (params = {}) => this.http.request({
|
|
25
|
-
path: `/auth/admin`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
this.http = http;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.Admin = Admin;
|
package/dist/api/All.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
2
|
-
export declare class All<SecurityDataType = unknown> {
|
|
3
|
-
http: HttpClient<SecurityDataType>;
|
|
4
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
-
/**
|
|
6
|
-
* No description
|
|
7
|
-
*
|
|
8
|
-
* @tags Article
|
|
9
|
-
* @name ArticleControllerGetRecommendArticles
|
|
10
|
-
* @request GET:/article/all/recommend
|
|
11
|
-
* @response `200` `void`
|
|
12
|
-
*/
|
|
13
|
-
articleControllerGetRecommendArticles: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
}
|
package/dist/api/All.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.All = void 0;
|
|
14
|
-
class All {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Article
|
|
20
|
-
* @name ArticleControllerGetRecommendArticles
|
|
21
|
-
* @request GET:/article/all/recommend
|
|
22
|
-
* @response `200` `void`
|
|
23
|
-
*/
|
|
24
|
-
this.articleControllerGetRecommendArticles = (params = {}) => this.http.request({
|
|
25
|
-
path: `/article/all/recommend`,
|
|
26
|
-
method: 'GET',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
this.http = http;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.All = All;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { HttpClientConfig } from './HttpClient';
|
|
2
|
-
import { Article } from './Article';
|
|
3
|
-
import { Auth } from './Auth';
|
|
4
|
-
import { Category } from './Category';
|
|
5
|
-
import { Comment } from './Comment';
|
|
6
|
-
import { File } from './File';
|
|
7
|
-
import { Knowledge } from './Knowledge';
|
|
8
|
-
import { Page } from './Page';
|
|
9
|
-
import { Search } from './Search';
|
|
10
|
-
import { Setting } from './Setting';
|
|
11
|
-
import { Smtp } from './Smtp';
|
|
12
|
-
import { Tag } from './Tag';
|
|
13
|
-
import { User } from './User';
|
|
14
|
-
import { View } from './View';
|
|
15
|
-
export interface ApiConfig<SecurityDataType = unknown> extends HttpClientConfig<SecurityDataType> {
|
|
16
|
-
}
|
|
17
|
-
export interface ApiInstance<SecurityDataType = unknown> {
|
|
18
|
-
article: Article<SecurityDataType>;
|
|
19
|
-
auth: Auth<SecurityDataType>;
|
|
20
|
-
category: Category<SecurityDataType>;
|
|
21
|
-
comment: Comment<SecurityDataType>;
|
|
22
|
-
file: File<SecurityDataType>;
|
|
23
|
-
knowledge: Knowledge<SecurityDataType>;
|
|
24
|
-
page: Page<SecurityDataType>;
|
|
25
|
-
search: Search<SecurityDataType>;
|
|
26
|
-
setting: Setting<SecurityDataType>;
|
|
27
|
-
smtp: Smtp<SecurityDataType>;
|
|
28
|
-
tag: Tag<SecurityDataType>;
|
|
29
|
-
user: User<SecurityDataType>;
|
|
30
|
-
view: View<SecurityDataType>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* 创建 API 实例
|
|
34
|
-
* @param config API 配置
|
|
35
|
-
* @returns API 实例对象
|
|
36
|
-
*/
|
|
37
|
-
export declare function createApiInstance<SecurityDataType = unknown>(config?: ApiConfig<SecurityDataType>): ApiInstance<SecurityDataType>;
|
|
38
|
-
export declare const api: ApiInstance<unknown>;
|
|
39
|
-
export default api;
|
package/dist/api/ApiInstance.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// API 实例化文件
|
|
3
|
-
// 自动生成,请勿手动修改
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.api = exports.createApiInstance = void 0;
|
|
6
|
-
const HttpClient_1 = require("./HttpClient");
|
|
7
|
-
const Article_1 = require("./Article");
|
|
8
|
-
const Auth_1 = require("./Auth");
|
|
9
|
-
const Category_1 = require("./Category");
|
|
10
|
-
const Comment_1 = require("./Comment");
|
|
11
|
-
const File_1 = require("./File");
|
|
12
|
-
const Knowledge_1 = require("./Knowledge");
|
|
13
|
-
const Page_1 = require("./Page");
|
|
14
|
-
const Search_1 = require("./Search");
|
|
15
|
-
const Setting_1 = require("./Setting");
|
|
16
|
-
const Smtp_1 = require("./Smtp");
|
|
17
|
-
const Tag_1 = require("./Tag");
|
|
18
|
-
const User_1 = require("./User");
|
|
19
|
-
const View_1 = require("./View");
|
|
20
|
-
/**
|
|
21
|
-
* 创建 API 实例
|
|
22
|
-
* @param config API 配置
|
|
23
|
-
* @returns API 实例对象
|
|
24
|
-
*/
|
|
25
|
-
function createApiInstance(config = {}) {
|
|
26
|
-
const httpClient = new HttpClient_1.HttpClient(config);
|
|
27
|
-
return {
|
|
28
|
-
article: new Article_1.Article(config),
|
|
29
|
-
auth: new Auth_1.Auth(config),
|
|
30
|
-
category: new Category_1.Category(config),
|
|
31
|
-
comment: new Comment_1.Comment(config),
|
|
32
|
-
file: new File_1.File(config),
|
|
33
|
-
knowledge: new Knowledge_1.Knowledge(config),
|
|
34
|
-
page: new Page_1.Page(config),
|
|
35
|
-
search: new Search_1.Search(config),
|
|
36
|
-
setting: new Setting_1.Setting(config),
|
|
37
|
-
smtp: new Smtp_1.Smtp(config),
|
|
38
|
-
tag: new Tag_1.Tag(config),
|
|
39
|
-
user: new User_1.User(config),
|
|
40
|
-
view: new View_1.View(config),
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
exports.createApiInstance = createApiInstance;
|
|
44
|
-
// 默认 API 实例
|
|
45
|
-
exports.api = createApiInstance();
|
|
46
|
-
exports.default = exports.api;
|
package/dist/api/Archives.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
2
|
-
export declare class Archives<SecurityDataType = unknown> {
|
|
3
|
-
http: HttpClient<SecurityDataType>;
|
|
4
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
-
/**
|
|
6
|
-
* No description
|
|
7
|
-
*
|
|
8
|
-
* @tags Article
|
|
9
|
-
* @name ArticleControllerGetArchives
|
|
10
|
-
* @request GET:/article/archives
|
|
11
|
-
* @response `200` `void`
|
|
12
|
-
*/
|
|
13
|
-
articleControllerGetArchives: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
}
|