@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
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { IKnowledge } from '../types/data-contracts';
|
|
2
|
-
export declare namespace Knowledge {
|
|
3
|
-
/**
|
|
4
|
-
* No description
|
|
5
|
-
* @tags Knowledge
|
|
6
|
-
* @name createBook
|
|
7
|
-
* @request POST:/Knowledge/book
|
|
8
|
-
* @response `200` `(IKnowledge)[]` 创建知识库
|
|
9
|
-
*/
|
|
10
|
-
namespace createBook {
|
|
11
|
-
type RequestParams = {};
|
|
12
|
-
type RequestQuery = {};
|
|
13
|
-
type RequestBody = never;
|
|
14
|
-
type RequestHeaders = {};
|
|
15
|
-
type ResponseBody = IKnowledge[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* No description
|
|
19
|
-
* @tags Knowledge
|
|
20
|
-
* @name createChapter
|
|
21
|
-
* @request POST:/Knowledge/chapter
|
|
22
|
-
* @response `200` `(IKnowledge)[]` 创建知识章节
|
|
23
|
-
*/
|
|
24
|
-
namespace createChapter {
|
|
25
|
-
type RequestParams = {};
|
|
26
|
-
type RequestQuery = {};
|
|
27
|
-
type RequestBody = never;
|
|
28
|
-
type RequestHeaders = {};
|
|
29
|
-
type ResponseBody = IKnowledge[];
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
* @tags Knowledge
|
|
34
|
-
* @name deleteById
|
|
35
|
-
* @request DELETE:/Knowledge/{id}
|
|
36
|
-
* @response `200` `void`
|
|
37
|
-
*/
|
|
38
|
-
namespace deleteById {
|
|
39
|
-
type RequestParams = {
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
42
|
-
type RequestQuery = {};
|
|
43
|
-
type RequestBody = never;
|
|
44
|
-
type RequestHeaders = {};
|
|
45
|
-
type ResponseBody = void;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* No description
|
|
49
|
-
* @tags Knowledge
|
|
50
|
-
* @name updateById
|
|
51
|
-
* @request PATCH:/Knowledge/{id}
|
|
52
|
-
* @response `200` `void`
|
|
53
|
-
*/
|
|
54
|
-
namespace updateById {
|
|
55
|
-
type RequestParams = {
|
|
56
|
-
id: string;
|
|
57
|
-
};
|
|
58
|
-
type RequestQuery = {};
|
|
59
|
-
type RequestBody = never;
|
|
60
|
-
type RequestHeaders = {};
|
|
61
|
-
type ResponseBody = void;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* No description
|
|
65
|
-
* @tags Knowledge
|
|
66
|
-
* @name findById
|
|
67
|
-
* @request GET:/Knowledge/{id}
|
|
68
|
-
* @response `200` `void`
|
|
69
|
-
*/
|
|
70
|
-
namespace findById {
|
|
71
|
-
type RequestParams = {
|
|
72
|
-
id: string;
|
|
73
|
-
};
|
|
74
|
-
type RequestQuery = {};
|
|
75
|
-
type RequestBody = never;
|
|
76
|
-
type RequestHeaders = {};
|
|
77
|
-
type ResponseBody = void;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* No description
|
|
81
|
-
* @tags Knowledge
|
|
82
|
-
* @name findAll
|
|
83
|
-
* @request GET:/Knowledge
|
|
84
|
-
* @response `200` `void`
|
|
85
|
-
*/
|
|
86
|
-
namespace findAll {
|
|
87
|
-
type RequestParams = {};
|
|
88
|
-
type RequestQuery = {};
|
|
89
|
-
type RequestBody = never;
|
|
90
|
-
type RequestHeaders = {};
|
|
91
|
-
type ResponseBody = void;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* No description
|
|
95
|
-
* @tags Knowledge
|
|
96
|
-
* @name updateViewsById
|
|
97
|
-
* @request POST:/Knowledge/{id}/views
|
|
98
|
-
* @response `200` `void`
|
|
99
|
-
*/
|
|
100
|
-
namespace updateViewsById {
|
|
101
|
-
type RequestParams = {
|
|
102
|
-
id: string;
|
|
103
|
-
};
|
|
104
|
-
type RequestQuery = {};
|
|
105
|
-
type RequestBody = never;
|
|
106
|
-
type RequestHeaders = {};
|
|
107
|
-
type ResponseBody = void;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* No description
|
|
111
|
-
* @tags Knowledge
|
|
112
|
-
* @name updateLikesById
|
|
113
|
-
* @request POST:/Knowledge/{id}/likes
|
|
114
|
-
* @response `200` `void`
|
|
115
|
-
*/
|
|
116
|
-
namespace updateLikesById {
|
|
117
|
-
type RequestParams = {
|
|
118
|
-
id: string;
|
|
119
|
-
};
|
|
120
|
-
type RequestQuery = {};
|
|
121
|
-
type RequestBody = never;
|
|
122
|
-
type RequestHeaders = {};
|
|
123
|
-
type ResponseBody = void;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
@@ -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/Login.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
2
|
-
export declare class Login<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` `void`
|
|
12
|
-
*/
|
|
13
|
-
authControllerLogin: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
}
|
package/dist/api/Login.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.Login = void 0;
|
|
14
|
-
class Login {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Auth
|
|
20
|
-
* @name AuthControllerLogin
|
|
21
|
-
* @request POST:/auth/login
|
|
22
|
-
* @response `200` `void`
|
|
23
|
-
*/
|
|
24
|
-
this.authControllerLogin = (params = {}) => this.http.request({
|
|
25
|
-
path: `/auth/login`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
this.http = http;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.Login = Login;
|
package/dist/api/PageRoute.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { IPage } from '../types/data-contracts';
|
|
2
|
-
export declare namespace Page {
|
|
3
|
-
/**
|
|
4
|
-
* No description
|
|
5
|
-
* @tags Page
|
|
6
|
-
* @name create
|
|
7
|
-
* @request POST:/page
|
|
8
|
-
* @response `200` `(IPage)[]` 创建页面
|
|
9
|
-
*/
|
|
10
|
-
namespace create {
|
|
11
|
-
type RequestParams = {};
|
|
12
|
-
type RequestQuery = {};
|
|
13
|
-
type RequestBody = never;
|
|
14
|
-
type RequestHeaders = {};
|
|
15
|
-
type ResponseBody = IPage[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* No description
|
|
19
|
-
* @tags Page
|
|
20
|
-
* @name findAll
|
|
21
|
-
* @request GET:/page
|
|
22
|
-
* @response `200` `void`
|
|
23
|
-
*/
|
|
24
|
-
namespace findAll {
|
|
25
|
-
type RequestParams = {};
|
|
26
|
-
type RequestQuery = {};
|
|
27
|
-
type RequestBody = never;
|
|
28
|
-
type RequestHeaders = {};
|
|
29
|
-
type ResponseBody = void;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
* @tags Page
|
|
34
|
-
* @name findById
|
|
35
|
-
* @request GET:/page/{id}
|
|
36
|
-
* @response `200` `void`
|
|
37
|
-
*/
|
|
38
|
-
namespace findById {
|
|
39
|
-
type RequestParams = {
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
42
|
-
type RequestQuery = {};
|
|
43
|
-
type RequestBody = never;
|
|
44
|
-
type RequestHeaders = {};
|
|
45
|
-
type ResponseBody = void;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* No description
|
|
49
|
-
* @tags Page
|
|
50
|
-
* @name updateById
|
|
51
|
-
* @request PATCH:/page/{id}
|
|
52
|
-
* @response `200` `void`
|
|
53
|
-
*/
|
|
54
|
-
namespace updateById {
|
|
55
|
-
type RequestParams = {
|
|
56
|
-
id: string;
|
|
57
|
-
};
|
|
58
|
-
type RequestQuery = {};
|
|
59
|
-
type RequestBody = never;
|
|
60
|
-
type RequestHeaders = {};
|
|
61
|
-
type ResponseBody = void;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* No description
|
|
65
|
-
* @tags Page
|
|
66
|
-
* @name deleteById
|
|
67
|
-
* @request DELETE:/page/{id}
|
|
68
|
-
* @response `200` `void`
|
|
69
|
-
*/
|
|
70
|
-
namespace deleteById {
|
|
71
|
-
type RequestParams = {
|
|
72
|
-
id: string;
|
|
73
|
-
};
|
|
74
|
-
type RequestQuery = {};
|
|
75
|
-
type RequestBody = never;
|
|
76
|
-
type RequestHeaders = {};
|
|
77
|
-
type ResponseBody = void;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* No description
|
|
81
|
-
* @tags Page
|
|
82
|
-
* @name updateViewsById
|
|
83
|
-
* @request POST:/page/{id}/views
|
|
84
|
-
* @response `200` `void`
|
|
85
|
-
*/
|
|
86
|
-
namespace updateViewsById {
|
|
87
|
-
type RequestParams = {
|
|
88
|
-
id: string;
|
|
89
|
-
};
|
|
90
|
-
type RequestQuery = {};
|
|
91
|
-
type RequestBody = never;
|
|
92
|
-
type RequestHeaders = {};
|
|
93
|
-
type ResponseBody = void;
|
|
94
|
-
}
|
|
95
|
-
}
|
package/dist/api/PageRoute.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/Password.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IUser } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
3
|
-
export declare class Password<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags User
|
|
10
|
-
* @name UserControllerUpdatePassword
|
|
11
|
-
* @request POST:/user/password
|
|
12
|
-
* @response `201` `(IUser)[]` 更新密码成功
|
|
13
|
-
*/
|
|
14
|
-
userControllerUpdatePassword: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUser[], any, {}>>;
|
|
15
|
-
}
|
package/dist/api/Password.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.Password = void 0;
|
|
14
|
-
class Password {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags User
|
|
20
|
-
* @name UserControllerUpdatePassword
|
|
21
|
-
* @request POST:/user/password
|
|
22
|
-
* @response `201` `(IUser)[]` 更新密码成功
|
|
23
|
-
*/
|
|
24
|
-
this.userControllerUpdatePassword = (params = {}) => this.http.request({
|
|
25
|
-
path: `/user/password`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
format: 'json',
|
|
28
|
-
...params,
|
|
29
|
-
});
|
|
30
|
-
this.http = http;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.Password = Password;
|
package/dist/api/Recommend.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
2
|
-
export declare class Recommend<SecurityDataType = unknown> {
|
|
3
|
-
http: HttpClient<SecurityDataType>;
|
|
4
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
-
/**
|
|
6
|
-
* No description
|
|
7
|
-
*
|
|
8
|
-
* @tags Article
|
|
9
|
-
* @name ArticleControllerRecommend
|
|
10
|
-
* @request GET:/article/recommend
|
|
11
|
-
* @response `200` `void`
|
|
12
|
-
*/
|
|
13
|
-
articleControllerRecommend: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
}
|
package/dist/api/Recommend.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.Recommend = void 0;
|
|
14
|
-
class Recommend {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Article
|
|
20
|
-
* @name ArticleControllerRecommend
|
|
21
|
-
* @request GET:/article/recommend
|
|
22
|
-
* @response `200` `void`
|
|
23
|
-
*/
|
|
24
|
-
this.articleControllerRecommend = (params = {}) => this.http.request({
|
|
25
|
-
path: `/article/recommend`,
|
|
26
|
-
method: 'GET',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
this.http = http;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.Recommend = Recommend;
|
package/dist/api/Register.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IUser } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
3
|
-
export declare class Register<SecurityDataType = unknown> {
|
|
4
|
-
http: HttpClient<SecurityDataType>;
|
|
5
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
6
|
-
/**
|
|
7
|
-
* No description
|
|
8
|
-
*
|
|
9
|
-
* @tags User
|
|
10
|
-
* @name UserControllerRegister
|
|
11
|
-
* @request POST:/user/register
|
|
12
|
-
* @response `201` `(IUser)[]` 创建用户
|
|
13
|
-
*/
|
|
14
|
-
userControllerRegister: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUser[], any, {}>>;
|
|
15
|
-
}
|
package/dist/api/Register.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.Register = void 0;
|
|
14
|
-
class Register {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags User
|
|
20
|
-
* @name UserControllerRegister
|
|
21
|
-
* @request POST:/user/register
|
|
22
|
-
* @response `201` `(IUser)[]` 创建用户
|
|
23
|
-
*/
|
|
24
|
-
this.userControllerRegister = (params = {}) => this.http.request({
|
|
25
|
-
path: `/user/register`,
|
|
26
|
-
method: 'POST',
|
|
27
|
-
format: 'json',
|
|
28
|
-
...params,
|
|
29
|
-
});
|
|
30
|
-
this.http = http;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.Register = Register;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export declare namespace Search {
|
|
2
|
-
/**
|
|
3
|
-
* No description
|
|
4
|
-
* @tags Search
|
|
5
|
-
* @name searchArticle
|
|
6
|
-
* @request GET:/search/article
|
|
7
|
-
* @response `200` `void`
|
|
8
|
-
*/
|
|
9
|
-
namespace searchArticle {
|
|
10
|
-
type RequestParams = {};
|
|
11
|
-
type RequestQuery = {};
|
|
12
|
-
type RequestBody = never;
|
|
13
|
-
type RequestHeaders = {};
|
|
14
|
-
type ResponseBody = void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
* @tags Search
|
|
19
|
-
* @name findAll
|
|
20
|
-
* @request GET:/search
|
|
21
|
-
* @response `200` `void`
|
|
22
|
-
*/
|
|
23
|
-
namespace findAll {
|
|
24
|
-
type RequestParams = {};
|
|
25
|
-
type RequestQuery = {};
|
|
26
|
-
type RequestBody = never;
|
|
27
|
-
type RequestHeaders = {};
|
|
28
|
-
type ResponseBody = void;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* No description
|
|
32
|
-
* @tags Search
|
|
33
|
-
* @name deleteById
|
|
34
|
-
* @request DELETE:/search/{id}
|
|
35
|
-
* @response `200` `void`
|
|
36
|
-
*/
|
|
37
|
-
namespace deleteById {
|
|
38
|
-
type RequestParams = {
|
|
39
|
-
id: string;
|
|
40
|
-
};
|
|
41
|
-
type RequestQuery = {};
|
|
42
|
-
type RequestBody = never;
|
|
43
|
-
type RequestHeaders = {};
|
|
44
|
-
type ResponseBody = void;
|
|
45
|
-
}
|
|
46
|
-
}
|
package/dist/api/SearchRoute.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 });
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ISetting } from '../types/data-contracts';
|
|
2
|
-
export declare namespace Setting {
|
|
3
|
-
/**
|
|
4
|
-
* No description
|
|
5
|
-
* @tags Setting
|
|
6
|
-
* @name update
|
|
7
|
-
* @request POST:/setting
|
|
8
|
-
* @response `200` `(ISetting)[]` 更新设置
|
|
9
|
-
*/
|
|
10
|
-
namespace update {
|
|
11
|
-
type RequestParams = {};
|
|
12
|
-
type RequestQuery = {};
|
|
13
|
-
type RequestBody = never;
|
|
14
|
-
type RequestHeaders = {};
|
|
15
|
-
type ResponseBody = ISetting[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* No description
|
|
19
|
-
* @tags Setting
|
|
20
|
-
* @name findAll
|
|
21
|
-
* @request POST:/setting/get
|
|
22
|
-
* @response `200` `void`
|
|
23
|
-
*/
|
|
24
|
-
namespace findAll {
|
|
25
|
-
type RequestParams = {};
|
|
26
|
-
type RequestQuery = {};
|
|
27
|
-
type RequestBody = never;
|
|
28
|
-
type RequestHeaders = {};
|
|
29
|
-
type ResponseBody = void;
|
|
30
|
-
}
|
|
31
|
-
}
|
package/dist/api/SettingRoute.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/SmtpRoute.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { I_SMTP } from '../types/data-contracts';
|
|
2
|
-
export declare namespace Smtp {
|
|
3
|
-
/**
|
|
4
|
-
* No description
|
|
5
|
-
* @tags Smtp
|
|
6
|
-
* @name create
|
|
7
|
-
* @request POST:/smtp
|
|
8
|
-
* @response `200` `(I_SMTP)[]` 发送邮件
|
|
9
|
-
*/
|
|
10
|
-
namespace create {
|
|
11
|
-
type RequestParams = {};
|
|
12
|
-
type RequestQuery = {};
|
|
13
|
-
type RequestBody = never;
|
|
14
|
-
type RequestHeaders = {};
|
|
15
|
-
type ResponseBody = I_SMTP[];
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* No description
|
|
19
|
-
* @tags Smtp
|
|
20
|
-
* @name findAll
|
|
21
|
-
* @request GET:/smtp
|
|
22
|
-
* @response `200` `void`
|
|
23
|
-
*/
|
|
24
|
-
namespace findAll {
|
|
25
|
-
type RequestParams = {};
|
|
26
|
-
type RequestQuery = {};
|
|
27
|
-
type RequestBody = never;
|
|
28
|
-
type RequestHeaders = {};
|
|
29
|
-
type ResponseBody = void;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* No description
|
|
33
|
-
* @tags Smtp
|
|
34
|
-
* @name deleteById
|
|
35
|
-
* @request DELETE:/smtp/{id}
|
|
36
|
-
* @response `200` `void`
|
|
37
|
-
*/
|
|
38
|
-
namespace deleteById {
|
|
39
|
-
type RequestParams = {
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
42
|
-
type RequestQuery = {};
|
|
43
|
-
type RequestBody = never;
|
|
44
|
-
type RequestHeaders = {};
|
|
45
|
-
type ResponseBody = void;
|
|
46
|
-
}
|
|
47
|
-
}
|
package/dist/api/SmtpRoute.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 });
|