@fecommunity/reactpress-toolkit 1.0.0-beta.1 → 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 +405 -0
- package/dist/api/Article.d.ts +44 -29
- package/dist/api/Article.js +42 -31
- package/dist/api/Auth.d.ts +11 -6
- package/dist/api/Auth.js +10 -8
- package/dist/api/Category.d.ts +20 -13
- package/dist/api/Category.js +18 -15
- package/dist/api/Comment.d.ts +22 -14
- package/dist/api/Comment.js +20 -16
- package/dist/api/File.d.ts +16 -10
- package/dist/api/File.js +14 -12
- package/dist/api/{http-client.d.ts → HttpClient.d.ts} +2 -2
- package/dist/api/{http-client.js → HttpClient.js} +4 -2
- package/dist/api/Knowledge.d.ts +29 -19
- package/dist/api/Knowledge.js +27 -22
- package/dist/api/Page.d.ts +23 -15
- package/dist/api/Page.js +21 -17
- package/dist/api/Search.d.ts +12 -7
- package/dist/api/Search.js +11 -9
- package/dist/api/Setting.d.ts +10 -6
- package/dist/api/Setting.js +8 -8
- package/dist/api/Smtp.d.ts +14 -9
- package/dist/api/Smtp.js +12 -11
- package/dist/api/Tag.d.ts +22 -14
- package/dist/api/Tag.js +20 -16
- package/dist/api/User.d.ts +15 -8
- package/dist/api/User.js +13 -13
- package/dist/api/View.d.ts +19 -12
- package/dist/api/View.js +17 -14
- package/dist/api/index.d.ts +13 -18
- package/dist/api/index.js +28 -41
- 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 +8 -9
- package/dist/index.js +20 -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 +15 -6
- package/demos/simple.ts +0 -65
- 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/Archives.d.ts +0 -14
- package/dist/api/Archives.js +0 -32
- package/dist/api/Book.d.ts +0 -15
- package/dist/api/Book.js +0 -33
- package/dist/api/Chapter.d.ts +0 -15
- package/dist/api/Chapter.js +0 -33
- 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/Login.d.ts +0 -14
- package/dist/api/Login.js +0 -32
- 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/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/api-instance.d.ts +0 -39
- package/dist/api/api-instance.js +0 -46
- package/dist/api/httpClient.d.ts +0 -41
- package/dist/api/httpClient.js +0 -94
- package/dist/types/data-contracts.d.ts +0 -177
- package/dist/types/data-contracts.js +0 -12
- package/dist/utils/common.d.ts +0 -23
- package/dist/utils/common.js +0 -78
- package/dist/utils/http.d.ts +0 -3
- package/dist/utils/http.js +0 -47
- package/scripts/generate-api-types.js +0 -571
- package/scripts/generate-swagger.js +0 -47
- package/scripts/organize-api.js +0 -136
- package/src/api/Article.ts +0 -186
- package/src/api/Auth.ts +0 -54
- package/src/api/Category.ts +0 -82
- package/src/api/Comment.ts +0 -95
- package/src/api/File.ts +0 -69
- package/src/api/Knowledge.ts +0 -122
- package/src/api/Page.ts +0 -95
- package/src/api/Search.ts +0 -54
- package/src/api/Setting.ts +0 -43
- package/src/api/Smtp.ts +0 -56
- package/src/api/Tag.ts +0 -95
- package/src/api/User.ts +0 -72
- package/src/api/View.ts +0 -82
- package/src/api/api-instance.ts +0 -69
- package/src/api/httpClient.ts +0 -140
- package/src/api/index.ts +0 -25
- package/src/index.ts +0 -18
- package/src/types/data-contracts.ts +0 -198
- package/src/types/index.ts +0 -4
- package/src/utils/common.ts +0 -108
- package/src/utils/http.ts +0 -52
- package/src/utils/index.ts +0 -5
- package/test-final.js +0 -56
- package/test-import.js +0 -34
- package/tsconfig.json +0 -20
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
|
-
}
|
package/dist/api/Archives.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.Archives = void 0;
|
|
14
|
-
class Archives {
|
|
15
|
-
constructor(http) {
|
|
16
|
-
/**
|
|
17
|
-
* No description
|
|
18
|
-
*
|
|
19
|
-
* @tags Article
|
|
20
|
-
* @name ArticleControllerGetArchives
|
|
21
|
-
* @request GET:/article/archives
|
|
22
|
-
* @response `200` `void`
|
|
23
|
-
*/
|
|
24
|
-
this.articleControllerGetArchives = (params = {}) => this.http.request({
|
|
25
|
-
path: `/article/archives`,
|
|
26
|
-
method: 'GET',
|
|
27
|
-
...params,
|
|
28
|
-
});
|
|
29
|
-
this.http = http;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.Archives = Archives;
|
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;
|
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;
|
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;
|
package/dist/api/Id.d.ts
DELETED
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import { HttpClient, RequestParams } from './http-client';
|
|
2
|
-
export declare class Id<SecurityDataType = unknown> {
|
|
3
|
-
http: HttpClient<SecurityDataType>;
|
|
4
|
-
constructor(http: HttpClient<SecurityDataType>);
|
|
5
|
-
/**
|
|
6
|
-
* No description
|
|
7
|
-
*
|
|
8
|
-
* @tags Smtp
|
|
9
|
-
* @name SmtpControllerDeleteById
|
|
10
|
-
* @request DELETE:/smtp/{id}
|
|
11
|
-
* @response `200` `void`
|
|
12
|
-
*/
|
|
13
|
-
smtpControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
14
|
-
/**
|
|
15
|
-
* No description
|
|
16
|
-
*
|
|
17
|
-
* @tags File
|
|
18
|
-
* @name FileControllerFindById
|
|
19
|
-
* @request GET:/file/{id}
|
|
20
|
-
* @response `200` `void`
|
|
21
|
-
*/
|
|
22
|
-
fileControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
23
|
-
/**
|
|
24
|
-
* No description
|
|
25
|
-
*
|
|
26
|
-
* @tags File
|
|
27
|
-
* @name FileControllerDeleteById
|
|
28
|
-
* @request DELETE:/file/{id}
|
|
29
|
-
* @response `200` `void`
|
|
30
|
-
*/
|
|
31
|
-
fileControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
32
|
-
/**
|
|
33
|
-
* No description
|
|
34
|
-
*
|
|
35
|
-
* @tags Tag
|
|
36
|
-
* @name TagControllerFindById
|
|
37
|
-
* @request GET:/tag/{id}
|
|
38
|
-
* @response `200` `void`
|
|
39
|
-
*/
|
|
40
|
-
tagControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
41
|
-
/**
|
|
42
|
-
* No description
|
|
43
|
-
*
|
|
44
|
-
* @tags Tag
|
|
45
|
-
* @name TagControllerUpdateById
|
|
46
|
-
* @request PATCH:/tag/{id}
|
|
47
|
-
* @response `200` `void`
|
|
48
|
-
*/
|
|
49
|
-
tagControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
50
|
-
/**
|
|
51
|
-
* No description
|
|
52
|
-
*
|
|
53
|
-
* @tags Tag
|
|
54
|
-
* @name TagControllerDeleteById
|
|
55
|
-
* @request DELETE:/tag/{id}
|
|
56
|
-
* @response `200` `void`
|
|
57
|
-
*/
|
|
58
|
-
tagControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
59
|
-
/**
|
|
60
|
-
* No description
|
|
61
|
-
*
|
|
62
|
-
* @tags Tag
|
|
63
|
-
* @name TagControllerGetArticleById
|
|
64
|
-
* @request GET:/tag/{id}/article
|
|
65
|
-
* @response `200` `void`
|
|
66
|
-
*/
|
|
67
|
-
tagControllerGetArticleById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
68
|
-
/**
|
|
69
|
-
* No description
|
|
70
|
-
*
|
|
71
|
-
* @tags Article
|
|
72
|
-
* @name ArticleControllerFindById
|
|
73
|
-
* @request GET:/article/{id}
|
|
74
|
-
* @response `200` `void`
|
|
75
|
-
*/
|
|
76
|
-
articleControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
77
|
-
/**
|
|
78
|
-
* No description
|
|
79
|
-
*
|
|
80
|
-
* @tags Article
|
|
81
|
-
* @name ArticleControllerUpdateById
|
|
82
|
-
* @request PATCH:/article/{id}
|
|
83
|
-
* @response `200` `void`
|
|
84
|
-
*/
|
|
85
|
-
articleControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
86
|
-
/**
|
|
87
|
-
* No description
|
|
88
|
-
*
|
|
89
|
-
* @tags Article
|
|
90
|
-
* @name ArticleControllerDeleteById
|
|
91
|
-
* @request DELETE:/article/{id}
|
|
92
|
-
* @response `200` `void`
|
|
93
|
-
*/
|
|
94
|
-
articleControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
95
|
-
/**
|
|
96
|
-
* No description
|
|
97
|
-
*
|
|
98
|
-
* @tags Article
|
|
99
|
-
* @name ArticleControllerCheckPassword
|
|
100
|
-
* @request POST:/article/{id}/checkPassword
|
|
101
|
-
* @response `200` `void`
|
|
102
|
-
*/
|
|
103
|
-
articleControllerCheckPassword: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
104
|
-
/**
|
|
105
|
-
* No description
|
|
106
|
-
*
|
|
107
|
-
* @tags Article
|
|
108
|
-
* @name ArticleControllerUpdateViewsById
|
|
109
|
-
* @request POST:/article/{id}/views
|
|
110
|
-
* @response `200` `void`
|
|
111
|
-
*/
|
|
112
|
-
articleControllerUpdateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
113
|
-
/**
|
|
114
|
-
* No description
|
|
115
|
-
*
|
|
116
|
-
* @tags Article
|
|
117
|
-
* @name ArticleControllerUpdateLikesById
|
|
118
|
-
* @request POST:/article/{id}/likes
|
|
119
|
-
* @response `200` `void`
|
|
120
|
-
*/
|
|
121
|
-
articleControllerUpdateLikesById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
122
|
-
/**
|
|
123
|
-
* No description
|
|
124
|
-
*
|
|
125
|
-
* @tags Category
|
|
126
|
-
* @name CategoryControllerFindById
|
|
127
|
-
* @request GET:/category/{id}
|
|
128
|
-
* @response `200` `void`
|
|
129
|
-
*/
|
|
130
|
-
categoryControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
131
|
-
/**
|
|
132
|
-
* No description
|
|
133
|
-
*
|
|
134
|
-
* @tags Category
|
|
135
|
-
* @name CategoryControllerUpdateById
|
|
136
|
-
* @request PATCH:/category/{id}
|
|
137
|
-
* @response `200` `void`
|
|
138
|
-
*/
|
|
139
|
-
categoryControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
140
|
-
/**
|
|
141
|
-
* No description
|
|
142
|
-
*
|
|
143
|
-
* @tags Category
|
|
144
|
-
* @name CategoryControllerDeleteById
|
|
145
|
-
* @request DELETE:/category/{id}
|
|
146
|
-
* @response `200` `void`
|
|
147
|
-
*/
|
|
148
|
-
categoryControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
149
|
-
/**
|
|
150
|
-
* No description
|
|
151
|
-
*
|
|
152
|
-
* @tags Knowledge
|
|
153
|
-
* @name KnowledgeControllerDeleteById
|
|
154
|
-
* @request DELETE:/Knowledge/{id}
|
|
155
|
-
* @response `200` `void`
|
|
156
|
-
*/
|
|
157
|
-
knowledgeControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
158
|
-
/**
|
|
159
|
-
* No description
|
|
160
|
-
*
|
|
161
|
-
* @tags Knowledge
|
|
162
|
-
* @name KnowledgeControllerUpdateById
|
|
163
|
-
* @request PATCH:/Knowledge/{id}
|
|
164
|
-
* @response `200` `void`
|
|
165
|
-
*/
|
|
166
|
-
knowledgeControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
167
|
-
/**
|
|
168
|
-
* No description
|
|
169
|
-
*
|
|
170
|
-
* @tags Knowledge
|
|
171
|
-
* @name KnowledgeControllerFindById
|
|
172
|
-
* @request GET:/Knowledge/{id}
|
|
173
|
-
* @response `200` `void`
|
|
174
|
-
*/
|
|
175
|
-
knowledgeControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
176
|
-
/**
|
|
177
|
-
* No description
|
|
178
|
-
*
|
|
179
|
-
* @tags Knowledge
|
|
180
|
-
* @name KnowledgeControllerUpdateViewsById
|
|
181
|
-
* @request POST:/Knowledge/{id}/views
|
|
182
|
-
* @response `200` `void`
|
|
183
|
-
*/
|
|
184
|
-
knowledgeControllerUpdateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
185
|
-
/**
|
|
186
|
-
* No description
|
|
187
|
-
*
|
|
188
|
-
* @tags Knowledge
|
|
189
|
-
* @name KnowledgeControllerUpdateLikesById
|
|
190
|
-
* @request POST:/Knowledge/{id}/likes
|
|
191
|
-
* @response `200` `void`
|
|
192
|
-
*/
|
|
193
|
-
knowledgeControllerUpdateLikesById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
194
|
-
/**
|
|
195
|
-
* No description
|
|
196
|
-
*
|
|
197
|
-
* @tags Comment
|
|
198
|
-
* @name CommentControllerFindById
|
|
199
|
-
* @request GET:/comment/{id}
|
|
200
|
-
* @response `200` `void`
|
|
201
|
-
*/
|
|
202
|
-
commentControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
203
|
-
/**
|
|
204
|
-
* No description
|
|
205
|
-
*
|
|
206
|
-
* @tags Comment
|
|
207
|
-
* @name CommentControllerUpdateById
|
|
208
|
-
* @request PATCH:/comment/{id}
|
|
209
|
-
* @response `200` `void`
|
|
210
|
-
*/
|
|
211
|
-
commentControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
212
|
-
/**
|
|
213
|
-
* No description
|
|
214
|
-
*
|
|
215
|
-
* @tags Comment
|
|
216
|
-
* @name CommentControllerDeleteById
|
|
217
|
-
* @request DELETE:/comment/{id}
|
|
218
|
-
* @response `200` `void`
|
|
219
|
-
*/
|
|
220
|
-
commentControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
221
|
-
/**
|
|
222
|
-
* No description
|
|
223
|
-
*
|
|
224
|
-
* @tags Page
|
|
225
|
-
* @name PageControllerFindById
|
|
226
|
-
* @request GET:/page/{id}
|
|
227
|
-
* @response `200` `void`
|
|
228
|
-
*/
|
|
229
|
-
pageControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
230
|
-
/**
|
|
231
|
-
* No description
|
|
232
|
-
*
|
|
233
|
-
* @tags Page
|
|
234
|
-
* @name PageControllerUpdateById
|
|
235
|
-
* @request PATCH:/page/{id}
|
|
236
|
-
* @response `200` `void`
|
|
237
|
-
*/
|
|
238
|
-
pageControllerUpdateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
239
|
-
/**
|
|
240
|
-
* No description
|
|
241
|
-
*
|
|
242
|
-
* @tags Page
|
|
243
|
-
* @name PageControllerDeleteById
|
|
244
|
-
* @request DELETE:/page/{id}
|
|
245
|
-
* @response `200` `void`
|
|
246
|
-
*/
|
|
247
|
-
pageControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
248
|
-
/**
|
|
249
|
-
* No description
|
|
250
|
-
*
|
|
251
|
-
* @tags Page
|
|
252
|
-
* @name PageControllerUpdateViewsById
|
|
253
|
-
* @request POST:/page/{id}/views
|
|
254
|
-
* @response `200` `void`
|
|
255
|
-
*/
|
|
256
|
-
pageControllerUpdateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
257
|
-
/**
|
|
258
|
-
* No description
|
|
259
|
-
*
|
|
260
|
-
* @tags View
|
|
261
|
-
* @name ViewControllerFindById
|
|
262
|
-
* @request GET:/view/{id}
|
|
263
|
-
* @response `200` `void`
|
|
264
|
-
*/
|
|
265
|
-
viewControllerFindById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
266
|
-
/**
|
|
267
|
-
* No description
|
|
268
|
-
*
|
|
269
|
-
* @tags View
|
|
270
|
-
* @name ViewControllerDeleteById
|
|
271
|
-
* @request DELETE:/view/{id}
|
|
272
|
-
* @response `200` `void`
|
|
273
|
-
*/
|
|
274
|
-
viewControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
275
|
-
/**
|
|
276
|
-
* No description
|
|
277
|
-
*
|
|
278
|
-
* @tags Search
|
|
279
|
-
* @name SearchControllerDeleteById
|
|
280
|
-
* @request DELETE:/search/{id}
|
|
281
|
-
* @response `200` `void`
|
|
282
|
-
*/
|
|
283
|
-
searchControllerDeleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
284
|
-
}
|