@fecommunity/reactpress-toolkit 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/LICENSE +21 -0
  2. package/demos/simple.ts +65 -0
  3. package/dist/api/Admin.d.ts +14 -0
  4. package/dist/api/Admin.js +32 -0
  5. package/dist/api/All.d.ts +14 -0
  6. package/dist/api/All.js +32 -0
  7. package/dist/api/Archives.d.ts +14 -0
  8. package/dist/api/Archives.js +32 -0
  9. package/dist/api/Article.d.ts +108 -0
  10. package/dist/api/Article.js +177 -0
  11. package/dist/api/Auth.d.ts +27 -0
  12. package/dist/api/Auth.js +56 -0
  13. package/dist/api/Book.d.ts +15 -0
  14. package/dist/api/Book.js +33 -0
  15. package/dist/api/Category.d.ts +44 -0
  16. package/dist/api/Category.js +81 -0
  17. package/dist/api/Chapter.d.ts +15 -0
  18. package/dist/api/Chapter.js +33 -0
  19. package/dist/api/Comment.d.ts +52 -0
  20. package/dist/api/Comment.js +93 -0
  21. package/dist/api/File.d.ts +36 -0
  22. package/dist/api/File.js +69 -0
  23. package/dist/api/Get.d.ts +14 -0
  24. package/dist/api/Get.js +32 -0
  25. package/dist/api/Github.d.ts +14 -0
  26. package/dist/api/Github.js +32 -0
  27. package/dist/api/Host.d.ts +14 -0
  28. package/dist/api/Host.js +32 -0
  29. package/dist/api/Id.d.ts +284 -0
  30. package/dist/api/Id.js +422 -0
  31. package/dist/api/Knowledge.d.ts +68 -0
  32. package/dist/api/Knowledge.js +118 -0
  33. package/dist/api/Login.d.ts +14 -0
  34. package/dist/api/Login.js +32 -0
  35. package/dist/api/Page.d.ts +52 -0
  36. package/dist/api/Page.js +93 -0
  37. package/dist/api/Password.d.ts +15 -0
  38. package/dist/api/Password.js +33 -0
  39. package/dist/api/Recommend.d.ts +14 -0
  40. package/dist/api/Recommend.js +32 -0
  41. package/dist/api/Register.d.ts +15 -0
  42. package/dist/api/Register.js +33 -0
  43. package/dist/api/Search.d.ts +27 -0
  44. package/dist/api/Search.js +56 -0
  45. package/dist/api/Setting.d.ts +20 -0
  46. package/dist/api/Setting.js +45 -0
  47. package/dist/api/Smtp.d.ts +28 -0
  48. package/dist/api/Smtp.js +57 -0
  49. package/dist/api/Tag.d.ts +52 -0
  50. package/dist/api/Tag.js +93 -0
  51. package/dist/api/Update.d.ts +15 -0
  52. package/dist/api/Update.js +33 -0
  53. package/dist/api/Upload.d.ts +15 -0
  54. package/dist/api/Upload.js +33 -0
  55. package/dist/api/Url.d.ts +14 -0
  56. package/dist/api/Url.js +32 -0
  57. package/dist/api/User.d.ts +36 -0
  58. package/dist/api/User.js +72 -0
  59. package/dist/api/View.d.ts +44 -0
  60. package/dist/api/View.js +81 -0
  61. package/dist/api/api-instance.d.ts +39 -0
  62. package/dist/api/api-instance.js +46 -0
  63. package/dist/api/http-client.d.ts +41 -0
  64. package/dist/api/http-client.js +94 -0
  65. package/dist/api/httpClient.d.ts +41 -0
  66. package/dist/api/httpClient.js +94 -0
  67. package/dist/api/index.d.ts +18 -0
  68. package/dist/api/index.js +43 -0
  69. package/dist/index.d.ts +9 -0
  70. package/dist/index.js +46 -0
  71. package/dist/types/data-contracts.d.ts +177 -0
  72. package/dist/types/data-contracts.js +12 -0
  73. package/dist/types/index.d.ts +1 -0
  74. package/dist/types/index.js +19 -0
  75. package/dist/utils/common.d.ts +23 -0
  76. package/dist/utils/common.js +78 -0
  77. package/dist/utils/http.d.ts +3 -0
  78. package/dist/utils/http.js +47 -0
  79. package/dist/utils/index.d.ts +2 -0
  80. package/dist/utils/index.js +20 -0
  81. package/package.json +19 -0
  82. package/scripts/generate-api-types.js +571 -0
  83. package/scripts/generate-swagger.js +47 -0
  84. package/scripts/organize-api.js +136 -0
  85. package/src/api/Article.ts +186 -0
  86. package/src/api/Auth.ts +54 -0
  87. package/src/api/Category.ts +82 -0
  88. package/src/api/Comment.ts +95 -0
  89. package/src/api/File.ts +69 -0
  90. package/src/api/Knowledge.ts +122 -0
  91. package/src/api/Page.ts +95 -0
  92. package/src/api/Search.ts +54 -0
  93. package/src/api/Setting.ts +43 -0
  94. package/src/api/Smtp.ts +56 -0
  95. package/src/api/Tag.ts +95 -0
  96. package/src/api/User.ts +72 -0
  97. package/src/api/View.ts +82 -0
  98. package/src/api/api-instance.ts +69 -0
  99. package/src/api/httpClient.ts +140 -0
  100. package/src/api/index.ts +25 -0
  101. package/src/index.ts +18 -0
  102. package/src/types/data-contracts.ts +198 -0
  103. package/src/types/index.ts +4 -0
  104. package/src/utils/common.ts +108 -0
  105. package/src/utils/http.ts +52 -0
  106. package/src/utils/index.ts +5 -0
  107. package/test-final.js +56 -0
  108. package/test-import.js +34 -0
  109. package/tsconfig.json +20 -0
@@ -0,0 +1,68 @@
1
+ import { IKnowledge } from '../types/data-contracts';
2
+ import { HttpClient, RequestParams } from './httpClient';
3
+ export declare class Knowledge<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
+ /**
5
+ * No description
6
+ *
7
+ * @tags Knowledge
8
+ * @name createBook
9
+ * @request POST:/Knowledge/book
10
+ */
11
+ createBook: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IKnowledge[], any, {}>>;
12
+ /**
13
+ * No description
14
+ *
15
+ * @tags Knowledge
16
+ * @name createChapter
17
+ * @request POST:/Knowledge/chapter
18
+ */
19
+ createChapter: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IKnowledge[], any, {}>>;
20
+ /**
21
+ * No description
22
+ *
23
+ * @tags Knowledge
24
+ * @name deleteById
25
+ * @request DELETE:/Knowledge/{id}
26
+ */
27
+ deleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
28
+ /**
29
+ * No description
30
+ *
31
+ * @tags Knowledge
32
+ * @name updateById
33
+ * @request PATCH:/Knowledge/{id}
34
+ */
35
+ updateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
36
+ /**
37
+ * No description
38
+ *
39
+ * @tags Knowledge
40
+ * @name findById
41
+ * @request GET:/Knowledge/{id}
42
+ */
43
+ findById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
44
+ /**
45
+ * No description
46
+ *
47
+ * @tags Knowledge
48
+ * @name findAll
49
+ * @request GET:/Knowledge
50
+ */
51
+ findAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
52
+ /**
53
+ * No description
54
+ *
55
+ * @tags Knowledge
56
+ * @name updateViews
57
+ * @request POST:/Knowledge/{id}/views
58
+ */
59
+ updateViews: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
60
+ /**
61
+ * No description
62
+ *
63
+ * @tags Knowledge
64
+ * @name updateLikes
65
+ * @request POST:/Knowledge/{id}/likes
66
+ */
67
+ updateLikes: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
68
+ }
@@ -0,0 +1,118 @@
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.Knowledge = void 0;
14
+ const httpClient_1 = require("./httpClient");
15
+ class Knowledge extends httpClient_1.HttpClient {
16
+ constructor() {
17
+ super(...arguments);
18
+ /**
19
+ * No description
20
+ *
21
+ * @tags Knowledge
22
+ * @name createBook
23
+ * @request POST:/Knowledge/book
24
+ */
25
+ this.createBook = (params = {}) => this.request({
26
+ path: `/Knowledge/book`,
27
+ method: 'POST',
28
+ format: 'json',
29
+ ...params,
30
+ });
31
+ /**
32
+ * No description
33
+ *
34
+ * @tags Knowledge
35
+ * @name createChapter
36
+ * @request POST:/Knowledge/chapter
37
+ */
38
+ this.createChapter = (params = {}) => this.request({
39
+ path: `/Knowledge/chapter`,
40
+ method: 'POST',
41
+ format: 'json',
42
+ ...params,
43
+ });
44
+ /**
45
+ * No description
46
+ *
47
+ * @tags Knowledge
48
+ * @name deleteById
49
+ * @request DELETE:/Knowledge/{id}
50
+ */
51
+ this.deleteById = (id, params = {}) => this.request({
52
+ path: `/Knowledge/${id}`,
53
+ method: 'DELETE',
54
+ ...params,
55
+ });
56
+ /**
57
+ * No description
58
+ *
59
+ * @tags Knowledge
60
+ * @name updateById
61
+ * @request PATCH:/Knowledge/{id}
62
+ */
63
+ this.updateById = (id, params = {}) => this.request({
64
+ path: `/Knowledge/${id}`,
65
+ method: 'PATCH',
66
+ ...params,
67
+ });
68
+ /**
69
+ * No description
70
+ *
71
+ * @tags Knowledge
72
+ * @name findById
73
+ * @request GET:/Knowledge/{id}
74
+ */
75
+ this.findById = (id, params = {}) => this.request({
76
+ path: `/Knowledge/${id}`,
77
+ method: 'GET',
78
+ ...params,
79
+ });
80
+ /**
81
+ * No description
82
+ *
83
+ * @tags Knowledge
84
+ * @name findAll
85
+ * @request GET:/Knowledge
86
+ */
87
+ this.findAll = (params = {}) => this.request({
88
+ path: `/Knowledge`,
89
+ method: 'GET',
90
+ ...params,
91
+ });
92
+ /**
93
+ * No description
94
+ *
95
+ * @tags Knowledge
96
+ * @name updateViews
97
+ * @request POST:/Knowledge/{id}/views
98
+ */
99
+ this.updateViews = (id, params = {}) => this.request({
100
+ path: `/Knowledge/${id}/views`,
101
+ method: 'POST',
102
+ ...params,
103
+ });
104
+ /**
105
+ * No description
106
+ *
107
+ * @tags Knowledge
108
+ * @name updateLikes
109
+ * @request POST:/Knowledge/{id}/likes
110
+ */
111
+ this.updateLikes = (id, params = {}) => this.request({
112
+ path: `/Knowledge/${id}/likes`,
113
+ method: 'POST',
114
+ ...params,
115
+ });
116
+ }
117
+ }
118
+ exports.Knowledge = Knowledge;
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,32 @@
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;
@@ -0,0 +1,52 @@
1
+ import { IPage } from '../types/data-contracts';
2
+ import { HttpClient, RequestParams } from './httpClient';
3
+ export declare class Page<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
+ /**
5
+ * No description
6
+ *
7
+ * @tags Page
8
+ * @name create
9
+ * @request POST:/page
10
+ */
11
+ create: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IPage[], any, {}>>;
12
+ /**
13
+ * No description
14
+ *
15
+ * @tags Page
16
+ * @name findAll
17
+ * @request GET:/page
18
+ */
19
+ findAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
20
+ /**
21
+ * No description
22
+ *
23
+ * @tags Page
24
+ * @name findById
25
+ * @request GET:/page/{id}
26
+ */
27
+ findById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
28
+ /**
29
+ * No description
30
+ *
31
+ * @tags Page
32
+ * @name updateById
33
+ * @request PATCH:/page/{id}
34
+ */
35
+ updateById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
36
+ /**
37
+ * No description
38
+ *
39
+ * @tags Page
40
+ * @name deleteById
41
+ * @request DELETE:/page/{id}
42
+ */
43
+ deleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
44
+ /**
45
+ * No description
46
+ *
47
+ * @tags Page
48
+ * @name updateViews
49
+ * @request POST:/page/{id}/views
50
+ */
51
+ updateViews: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
52
+ }
@@ -0,0 +1,93 @@
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.Page = void 0;
14
+ const httpClient_1 = require("./httpClient");
15
+ class Page extends httpClient_1.HttpClient {
16
+ constructor() {
17
+ super(...arguments);
18
+ /**
19
+ * No description
20
+ *
21
+ * @tags Page
22
+ * @name create
23
+ * @request POST:/page
24
+ */
25
+ this.create = (params = {}) => this.request({
26
+ path: `/page`,
27
+ method: 'POST',
28
+ format: 'json',
29
+ ...params,
30
+ });
31
+ /**
32
+ * No description
33
+ *
34
+ * @tags Page
35
+ * @name findAll
36
+ * @request GET:/page
37
+ */
38
+ this.findAll = (params = {}) => this.request({
39
+ path: `/page`,
40
+ method: 'GET',
41
+ ...params,
42
+ });
43
+ /**
44
+ * No description
45
+ *
46
+ * @tags Page
47
+ * @name findById
48
+ * @request GET:/page/{id}
49
+ */
50
+ this.findById = (id, params = {}) => this.request({
51
+ path: `/page/${id}`,
52
+ method: 'GET',
53
+ ...params,
54
+ });
55
+ /**
56
+ * No description
57
+ *
58
+ * @tags Page
59
+ * @name updateById
60
+ * @request PATCH:/page/{id}
61
+ */
62
+ this.updateById = (id, params = {}) => this.request({
63
+ path: `/page/${id}`,
64
+ method: 'PATCH',
65
+ ...params,
66
+ });
67
+ /**
68
+ * No description
69
+ *
70
+ * @tags Page
71
+ * @name deleteById
72
+ * @request DELETE:/page/{id}
73
+ */
74
+ this.deleteById = (id, params = {}) => this.request({
75
+ path: `/page/${id}`,
76
+ method: 'DELETE',
77
+ ...params,
78
+ });
79
+ /**
80
+ * No description
81
+ *
82
+ * @tags Page
83
+ * @name updateViews
84
+ * @request POST:/page/{id}/views
85
+ */
86
+ this.updateViews = (id, params = {}) => this.request({
87
+ path: `/page/${id}/views`,
88
+ method: 'POST',
89
+ ...params,
90
+ });
91
+ }
92
+ }
93
+ exports.Page = Page;
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,33 @@
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;
@@ -0,0 +1,14 @@
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
+ }
@@ -0,0 +1,32 @@
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;
@@ -0,0 +1,15 @@
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
+ }
@@ -0,0 +1,33 @@
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;
@@ -0,0 +1,27 @@
1
+ import { HttpClient, RequestParams } from './httpClient';
2
+ export declare class Search<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
3
+ /**
4
+ * No description
5
+ *
6
+ * @tags Search
7
+ * @name SearchControllerSearchArticle
8
+ * @request GET:/search/article
9
+ */
10
+ searchControllerSearchArticle: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
11
+ /**
12
+ * No description
13
+ *
14
+ * @tags Search
15
+ * @name findAll
16
+ * @request GET:/search
17
+ */
18
+ findAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
19
+ /**
20
+ * No description
21
+ *
22
+ * @tags Search
23
+ * @name deleteById
24
+ * @request DELETE:/search/{id}
25
+ */
26
+ deleteById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
27
+ }
@@ -0,0 +1,56 @@
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.Search = void 0;
14
+ const httpClient_1 = require("./httpClient");
15
+ class Search extends httpClient_1.HttpClient {
16
+ constructor() {
17
+ super(...arguments);
18
+ /**
19
+ * No description
20
+ *
21
+ * @tags Search
22
+ * @name SearchControllerSearchArticle
23
+ * @request GET:/search/article
24
+ */
25
+ this.searchControllerSearchArticle = (params = {}) => this.request({
26
+ path: `/search/article`,
27
+ method: 'GET',
28
+ ...params,
29
+ });
30
+ /**
31
+ * No description
32
+ *
33
+ * @tags Search
34
+ * @name findAll
35
+ * @request GET:/search
36
+ */
37
+ this.findAll = (params = {}) => this.request({
38
+ path: `/search`,
39
+ method: 'GET',
40
+ ...params,
41
+ });
42
+ /**
43
+ * No description
44
+ *
45
+ * @tags Search
46
+ * @name deleteById
47
+ * @request DELETE:/search/{id}
48
+ */
49
+ this.deleteById = (id, params = {}) => this.request({
50
+ path: `/search/${id}`,
51
+ method: 'DELETE',
52
+ ...params,
53
+ });
54
+ }
55
+ }
56
+ exports.Search = Search;
@@ -0,0 +1,20 @@
1
+ import { ISetting } from '../types/data-contracts';
2
+ import { HttpClient, RequestParams } from './httpClient';
3
+ export declare class Setting<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
+ /**
5
+ * No description
6
+ *
7
+ * @tags Setting
8
+ * @name SettingControllerUpdate
9
+ * @request POST:/setting
10
+ */
11
+ settingControllerUpdate: (params?: RequestParams) => Promise<import("axios").AxiosResponse<ISetting[], any, {}>>;
12
+ /**
13
+ * No description
14
+ *
15
+ * @tags Setting
16
+ * @name findAll
17
+ * @request POST:/setting/get
18
+ */
19
+ findAll: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
20
+ }
@@ -0,0 +1,45 @@
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.Setting = void 0;
14
+ const httpClient_1 = require("./httpClient");
15
+ class Setting extends httpClient_1.HttpClient {
16
+ constructor() {
17
+ super(...arguments);
18
+ /**
19
+ * No description
20
+ *
21
+ * @tags Setting
22
+ * @name SettingControllerUpdate
23
+ * @request POST:/setting
24
+ */
25
+ this.settingControllerUpdate = (params = {}) => this.request({
26
+ path: `/setting`,
27
+ method: 'POST',
28
+ format: 'json',
29
+ ...params,
30
+ });
31
+ /**
32
+ * No description
33
+ *
34
+ * @tags Setting
35
+ * @name findAll
36
+ * @request POST:/setting/get
37
+ */
38
+ this.findAll = (params = {}) => this.request({
39
+ path: `/setting/get`,
40
+ method: 'POST',
41
+ ...params,
42
+ });
43
+ }
44
+ }
45
+ exports.Setting = Setting;