@gizone/rrs-client 4.1.3-alpha.231 → 4.2.0-alpha.233
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/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api.ts +1 -0
- package/apis/hwork-api.ts +167 -0
- package/apis/message-api.ts +31 -5
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/apis/hwork-api.d.ts +96 -0
- package/dist/apis/hwork-api.js +145 -0
- package/dist/apis/message-api.d.ts +18 -2
- package/dist/apis/message-api.js +15 -5
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/apis/hwork-api.d.ts +96 -0
- package/dist/esm/apis/hwork-api.js +138 -0
- package/dist/esm/apis/message-api.d.ts +18 -2
- package/dist/esm/apis/message-api.js +15 -5
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/models/get-user-wx200-response.d.ts +4 -4
- package/dist/esm/models/ipage-access-vo.d.ts +6 -6
- package/dist/esm/models/login-type-enum.d.ts +2 -0
- package/dist/esm/models/login-type-enum.js +3 -1
- package/dist/esm/models/sys-user.d.ts +6 -0
- package/dist/models/get-user-wx200-response.d.ts +4 -4
- package/dist/models/ipage-access-vo.d.ts +6 -6
- package/dist/models/login-type-enum.d.ts +2 -0
- package/dist/models/login-type-enum.js +3 -1
- package/dist/models/sys-user.d.ts +6 -0
- package/models/get-user-wx200-response.ts +4 -4
- package/models/ipage-access-vo.ts +6 -6
- package/models/login-type-enum.ts +3 -1
- package/models/sys-user.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @gizone/rrs-client@4.
|
|
1
|
+
## @gizone/rrs-client@4.2.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @gizone/rrs-client@4.
|
|
39
|
+
npm install @gizone/rrs-client@4.2.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -36,6 +36,7 @@ export * from './apis/excel-language-controller-api';
|
|
|
36
36
|
export * from './apis/feedback-api';
|
|
37
37
|
export * from './apis/file-api';
|
|
38
38
|
export * from './apis/fire-safety-api';
|
|
39
|
+
export * from './apis/hwork-api';
|
|
39
40
|
export * from './apis/inspection-standard-api';
|
|
40
41
|
export * from './apis/internal-api';
|
|
41
42
|
export * from './apis/inventory-api';
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* OpenAPI definition
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { JsonResult } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { LoginTypeEnum } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* HWorkApi - axios parameter creator
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const HWorkApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary 获取用户的某一个园区
|
|
37
|
+
* @param {LoginTypeEnum} loginType
|
|
38
|
+
* @param {number} [groupId]
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
getOnePark: async (loginType: LoginTypeEnum, groupId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
// verify required parameter 'loginType' is not null or undefined
|
|
44
|
+
assertParamExists('getOnePark', 'loginType', loginType)
|
|
45
|
+
const localVarPath = `/haier/hwork/getOnePark`;
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
+
const localVarHeaderParameter = {} as any;
|
|
55
|
+
const localVarQueryParameter = {} as any;
|
|
56
|
+
|
|
57
|
+
// authentication tokenScheme required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
|
+
|
|
61
|
+
if (groupId !== undefined) {
|
|
62
|
+
localVarQueryParameter['groupId'] = groupId;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (loginType !== undefined) {
|
|
66
|
+
localVarQueryParameter['loginType'] = loginType;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
72
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
73
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
url: toPathString(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* HWorkApi - functional programming interface
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const HWorkApiFp = function(configuration?: Configuration) {
|
|
88
|
+
const localVarAxiosParamCreator = HWorkApiAxiosParamCreator(configuration)
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @summary 获取用户的某一个园区
|
|
93
|
+
* @param {LoginTypeEnum} loginType
|
|
94
|
+
* @param {number} [groupId]
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
async getOnePark(loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>> {
|
|
99
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOnePark(loginType, groupId, options);
|
|
100
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
101
|
+
const localVarOperationServerBasePath = operationServerMap['HWorkApi.getOnePark']?.[localVarOperationServerIndex]?.url;
|
|
102
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
103
|
+
},
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* HWorkApi - factory interface
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
export const HWorkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
112
|
+
const localVarFp = HWorkApiFp(configuration)
|
|
113
|
+
return {
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @summary 获取用户的某一个园区
|
|
117
|
+
* @param {HWorkApiGetOneParkRequest} requestParameters Request parameters.
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
getOnePark(requestParameters: HWorkApiGetOneParkRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult> {
|
|
122
|
+
return localVarFp.getOnePark(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(axios, basePath));
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Request parameters for getOnePark operation in HWorkApi.
|
|
129
|
+
* @export
|
|
130
|
+
* @interface HWorkApiGetOneParkRequest
|
|
131
|
+
*/
|
|
132
|
+
export interface HWorkApiGetOneParkRequest {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {LoginTypeEnum}
|
|
136
|
+
* @memberof HWorkApiGetOnePark
|
|
137
|
+
*/
|
|
138
|
+
readonly loginType: LoginTypeEnum
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {number}
|
|
143
|
+
* @memberof HWorkApiGetOnePark
|
|
144
|
+
*/
|
|
145
|
+
readonly groupId?: number
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* HWorkApi - object-oriented interface
|
|
150
|
+
* @export
|
|
151
|
+
* @class HWorkApi
|
|
152
|
+
* @extends {BaseAPI}
|
|
153
|
+
*/
|
|
154
|
+
export class HWorkApi extends BaseAPI {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary 获取用户的某一个园区
|
|
158
|
+
* @param {HWorkApiGetOneParkRequest} requestParameters Request parameters.
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
* @memberof HWorkApi
|
|
162
|
+
*/
|
|
163
|
+
public getOnePark(requestParameters: HWorkApiGetOneParkRequest, options?: RawAxiosRequestConfig) {
|
|
164
|
+
return HWorkApiFp(this.configuration).getOnePark(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath));
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
package/apis/message-api.ts
CHANGED
|
@@ -255,10 +255,12 @@ export const MessageApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
255
255
|
* @param {number} parkId 园区id
|
|
256
256
|
* @param {string} [date] 时间 年月日
|
|
257
257
|
* @param {SystemUserMsgTypeEnum} [type] 消息类型
|
|
258
|
+
* @param {string} [startTime] 开始时间 格式:yyyy-MM-dd HH:mm:ss
|
|
259
|
+
* @param {string} [endTime] 结束时间 格式:yyyy-MM-dd HH:mm:ss
|
|
258
260
|
* @param {*} [options] Override http request option.
|
|
259
261
|
* @throws {RequiredError}
|
|
260
262
|
*/
|
|
261
|
-
systemSelectList: async (page: number, pageSize: number, userId: number, parkId: number, date?: string, type?: SystemUserMsgTypeEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
|
+
systemSelectList: async (page: number, pageSize: number, userId: number, parkId: number, date?: string, type?: SystemUserMsgTypeEnum, startTime?: string, endTime?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
262
264
|
// verify required parameter 'page' is not null or undefined
|
|
263
265
|
assertParamExists('systemSelectList', 'page', page)
|
|
264
266
|
// verify required parameter 'pageSize' is not null or undefined
|
|
@@ -307,6 +309,14 @@ export const MessageApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
307
309
|
localVarQueryParameter['parkId'] = parkId;
|
|
308
310
|
}
|
|
309
311
|
|
|
312
|
+
if (startTime !== undefined) {
|
|
313
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (endTime !== undefined) {
|
|
317
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
318
|
+
}
|
|
319
|
+
|
|
310
320
|
|
|
311
321
|
|
|
312
322
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -440,11 +450,13 @@ export const MessageApiFp = function(configuration?: Configuration) {
|
|
|
440
450
|
* @param {number} parkId 园区id
|
|
441
451
|
* @param {string} [date] 时间 年月日
|
|
442
452
|
* @param {SystemUserMsgTypeEnum} [type] 消息类型
|
|
453
|
+
* @param {string} [startTime] 开始时间 格式:yyyy-MM-dd HH:mm:ss
|
|
454
|
+
* @param {string} [endTime] 结束时间 格式:yyyy-MM-dd HH:mm:ss
|
|
443
455
|
* @param {*} [options] Override http request option.
|
|
444
456
|
* @throws {RequiredError}
|
|
445
457
|
*/
|
|
446
|
-
async systemSelectList(page: number, pageSize: number, userId: number, parkId: number, date?: string, type?: SystemUserMsgTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoSysUserMsgDTO>> {
|
|
447
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.systemSelectList(page, pageSize, userId, parkId, date, type, options);
|
|
458
|
+
async systemSelectList(page: number, pageSize: number, userId: number, parkId: number, date?: string, type?: SystemUserMsgTypeEnum, startTime?: string, endTime?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoSysUserMsgDTO>> {
|
|
459
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.systemSelectList(page, pageSize, userId, parkId, date, type, startTime, endTime, options);
|
|
448
460
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
449
461
|
const localVarOperationServerBasePath = operationServerMap['MessageApi.systemSelectList']?.[localVarOperationServerIndex]?.url;
|
|
450
462
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -530,7 +542,7 @@ export const MessageApiFactory = function (configuration?: Configuration, basePa
|
|
|
530
542
|
* @throws {RequiredError}
|
|
531
543
|
*/
|
|
532
544
|
systemSelectList(requestParameters: MessageApiSystemSelectListRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResultPageDtoSysUserMsgDTO> {
|
|
533
|
-
return localVarFp.systemSelectList(requestParameters.page, requestParameters.pageSize, requestParameters.userId, requestParameters.parkId, requestParameters.date, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
545
|
+
return localVarFp.systemSelectList(requestParameters.page, requestParameters.pageSize, requestParameters.userId, requestParameters.parkId, requestParameters.date, requestParameters.type, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
|
|
534
546
|
},
|
|
535
547
|
/**
|
|
536
548
|
*
|
|
@@ -662,6 +674,20 @@ export interface MessageApiSystemSelectListRequest {
|
|
|
662
674
|
* @memberof MessageApiSystemSelectList
|
|
663
675
|
*/
|
|
664
676
|
readonly type?: SystemUserMsgTypeEnum
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* 开始时间 格式:yyyy-MM-dd HH:mm:ss
|
|
680
|
+
* @type {string}
|
|
681
|
+
* @memberof MessageApiSystemSelectList
|
|
682
|
+
*/
|
|
683
|
+
readonly startTime?: string
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* 结束时间 格式:yyyy-MM-dd HH:mm:ss
|
|
687
|
+
* @type {string}
|
|
688
|
+
* @memberof MessageApiSystemSelectList
|
|
689
|
+
*/
|
|
690
|
+
readonly endTime?: string
|
|
665
691
|
}
|
|
666
692
|
|
|
667
693
|
/**
|
|
@@ -754,7 +780,7 @@ export class MessageApi extends BaseAPI {
|
|
|
754
780
|
* @memberof MessageApi
|
|
755
781
|
*/
|
|
756
782
|
public systemSelectList(requestParameters: MessageApiSystemSelectListRequest, options?: RawAxiosRequestConfig) {
|
|
757
|
-
return MessageApiFp(this.configuration).systemSelectList(requestParameters.page, requestParameters.pageSize, requestParameters.userId, requestParameters.parkId, requestParameters.date, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
783
|
+
return MessageApiFp(this.configuration).systemSelectList(requestParameters.page, requestParameters.pageSize, requestParameters.userId, requestParameters.parkId, requestParameters.date, requestParameters.type, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
|
|
758
784
|
}
|
|
759
785
|
|
|
760
786
|
/**
|
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export * from './apis/excel-language-controller-api';
|
|
|
31
31
|
export * from './apis/feedback-api';
|
|
32
32
|
export * from './apis/file-api';
|
|
33
33
|
export * from './apis/fire-safety-api';
|
|
34
|
+
export * from './apis/hwork-api';
|
|
34
35
|
export * from './apis/inspection-standard-api';
|
|
35
36
|
export * from './apis/internal-api';
|
|
36
37
|
export * from './apis/inventory-api';
|
package/dist/api.js
CHANGED
|
@@ -49,6 +49,7 @@ __exportStar(require("./apis/excel-language-controller-api"), exports);
|
|
|
49
49
|
__exportStar(require("./apis/feedback-api"), exports);
|
|
50
50
|
__exportStar(require("./apis/file-api"), exports);
|
|
51
51
|
__exportStar(require("./apis/fire-safety-api"), exports);
|
|
52
|
+
__exportStar(require("./apis/hwork-api"), exports);
|
|
52
53
|
__exportStar(require("./apis/inspection-standard-api"), exports);
|
|
53
54
|
__exportStar(require("./apis/internal-api"), exports);
|
|
54
55
|
__exportStar(require("./apis/inventory-api"), exports);
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { JsonResult } from '../models';
|
|
16
|
+
import type { LoginTypeEnum } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* HWorkApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const HWorkApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @summary 获取用户的某一个园区
|
|
25
|
+
* @param {LoginTypeEnum} loginType
|
|
26
|
+
* @param {number} [groupId]
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
getOnePark: (loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* HWorkApi - functional programming interface
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export declare const HWorkApiFp: (configuration?: Configuration) => {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary 获取用户的某一个园区
|
|
40
|
+
* @param {LoginTypeEnum} loginType
|
|
41
|
+
* @param {number} [groupId]
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
getOnePark(loginType: LoginTypeEnum, groupId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* HWorkApi - factory interface
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export declare const HWorkApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary 获取用户的某一个园区
|
|
55
|
+
* @param {HWorkApiGetOneParkRequest} requestParameters Request parameters.
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
getOnePark(requestParameters: HWorkApiGetOneParkRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Request parameters for getOnePark operation in HWorkApi.
|
|
63
|
+
* @export
|
|
64
|
+
* @interface HWorkApiGetOneParkRequest
|
|
65
|
+
*/
|
|
66
|
+
export interface HWorkApiGetOneParkRequest {
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {LoginTypeEnum}
|
|
70
|
+
* @memberof HWorkApiGetOnePark
|
|
71
|
+
*/
|
|
72
|
+
readonly loginType: LoginTypeEnum;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof HWorkApiGetOnePark
|
|
77
|
+
*/
|
|
78
|
+
readonly groupId?: number;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* HWorkApi - object-oriented interface
|
|
82
|
+
* @export
|
|
83
|
+
* @class HWorkApi
|
|
84
|
+
* @extends {BaseAPI}
|
|
85
|
+
*/
|
|
86
|
+
export declare class HWorkApi extends BaseAPI {
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @summary 获取用户的某一个园区
|
|
90
|
+
* @param {HWorkApiGetOneParkRequest} requestParameters Request parameters.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof HWorkApi
|
|
94
|
+
*/
|
|
95
|
+
getOnePark(requestParameters: HWorkApiGetOneParkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<JsonResult, any>>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.HWorkApi = exports.HWorkApiFactory = exports.HWorkApiFp = exports.HWorkApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* HWorkApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const HWorkApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary 获取用户的某一个园区
|
|
41
|
+
* @param {LoginTypeEnum} loginType
|
|
42
|
+
* @param {number} [groupId]
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
getOnePark: (loginType_1, groupId_1, ...args_1) => __awaiter(this, [loginType_1, groupId_1, ...args_1], void 0, function* (loginType, groupId, options = {}) {
|
|
47
|
+
// verify required parameter 'loginType' is not null or undefined
|
|
48
|
+
(0, common_1.assertParamExists)('getOnePark', 'loginType', loginType);
|
|
49
|
+
const localVarPath = `/haier/hwork/getOnePark`;
|
|
50
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
52
|
+
let baseOptions;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
}
|
|
56
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
57
|
+
const localVarHeaderParameter = {};
|
|
58
|
+
const localVarQueryParameter = {};
|
|
59
|
+
// authentication tokenScheme required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
62
|
+
if (groupId !== undefined) {
|
|
63
|
+
localVarQueryParameter['groupId'] = groupId;
|
|
64
|
+
}
|
|
65
|
+
if (loginType !== undefined) {
|
|
66
|
+
localVarQueryParameter['loginType'] = loginType;
|
|
67
|
+
}
|
|
68
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
69
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
70
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
71
|
+
return {
|
|
72
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
73
|
+
options: localVarRequestOptions,
|
|
74
|
+
};
|
|
75
|
+
}),
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
exports.HWorkApiAxiosParamCreator = HWorkApiAxiosParamCreator;
|
|
79
|
+
/**
|
|
80
|
+
* HWorkApi - functional programming interface
|
|
81
|
+
* @export
|
|
82
|
+
*/
|
|
83
|
+
const HWorkApiFp = function (configuration) {
|
|
84
|
+
const localVarAxiosParamCreator = (0, exports.HWorkApiAxiosParamCreator)(configuration);
|
|
85
|
+
return {
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @summary 获取用户的某一个园区
|
|
89
|
+
* @param {LoginTypeEnum} loginType
|
|
90
|
+
* @param {number} [groupId]
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
getOnePark(loginType, groupId, options) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
var _a, _b, _c;
|
|
97
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOnePark(loginType, groupId, options);
|
|
98
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
99
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HWorkApi.getOnePark']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
100
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
exports.HWorkApiFp = HWorkApiFp;
|
|
106
|
+
/**
|
|
107
|
+
* HWorkApi - factory interface
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
const HWorkApiFactory = function (configuration, basePath, axios) {
|
|
111
|
+
const localVarFp = (0, exports.HWorkApiFp)(configuration);
|
|
112
|
+
return {
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @summary 获取用户的某一个园区
|
|
116
|
+
* @param {HWorkApiGetOneParkRequest} requestParameters Request parameters.
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
getOnePark(requestParameters, options) {
|
|
121
|
+
return localVarFp.getOnePark(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(axios, basePath));
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
exports.HWorkApiFactory = HWorkApiFactory;
|
|
126
|
+
/**
|
|
127
|
+
* HWorkApi - object-oriented interface
|
|
128
|
+
* @export
|
|
129
|
+
* @class HWorkApi
|
|
130
|
+
* @extends {BaseAPI}
|
|
131
|
+
*/
|
|
132
|
+
class HWorkApi extends base_1.BaseAPI {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @summary 获取用户的某一个园区
|
|
136
|
+
* @param {HWorkApiGetOneParkRequest} requestParameters Request parameters.
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
* @memberof HWorkApi
|
|
140
|
+
*/
|
|
141
|
+
getOnePark(requestParameters, options) {
|
|
142
|
+
return (0, exports.HWorkApiFp)(this.configuration).getOnePark(requestParameters.loginType, requestParameters.groupId, options).then((request) => request(this.axios, this.basePath));
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.HWorkApi = HWorkApi;
|
|
@@ -73,10 +73,12 @@ export declare const MessageApiAxiosParamCreator: (configuration?: Configuration
|
|
|
73
73
|
* @param {number} parkId 园区id
|
|
74
74
|
* @param {string} [date] 时间 年月日
|
|
75
75
|
* @param {SystemUserMsgTypeEnum} [type] 消息类型
|
|
76
|
+
* @param {string} [startTime] 开始时间 格式:yyyy-MM-dd HH:mm:ss
|
|
77
|
+
* @param {string} [endTime] 结束时间 格式:yyyy-MM-dd HH:mm:ss
|
|
76
78
|
* @param {*} [options] Override http request option.
|
|
77
79
|
* @throws {RequiredError}
|
|
78
80
|
*/
|
|
79
|
-
systemSelectList: (page: number, pageSize: number, userId: number, parkId: number, date?: string, type?: SystemUserMsgTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
81
|
+
systemSelectList: (page: number, pageSize: number, userId: number, parkId: number, date?: string, type?: SystemUserMsgTypeEnum, startTime?: string, endTime?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
82
|
/**
|
|
81
83
|
*
|
|
82
84
|
* @summary 查询用户系统消息详情
|
|
@@ -140,10 +142,12 @@ export declare const MessageApiFp: (configuration?: Configuration) => {
|
|
|
140
142
|
* @param {number} parkId 园区id
|
|
141
143
|
* @param {string} [date] 时间 年月日
|
|
142
144
|
* @param {SystemUserMsgTypeEnum} [type] 消息类型
|
|
145
|
+
* @param {string} [startTime] 开始时间 格式:yyyy-MM-dd HH:mm:ss
|
|
146
|
+
* @param {string} [endTime] 结束时间 格式:yyyy-MM-dd HH:mm:ss
|
|
143
147
|
* @param {*} [options] Override http request option.
|
|
144
148
|
* @throws {RequiredError}
|
|
145
149
|
*/
|
|
146
|
-
systemSelectList(page: number, pageSize: number, userId: number, parkId: number, date?: string, type?: SystemUserMsgTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoSysUserMsgDTO>>;
|
|
150
|
+
systemSelectList(page: number, pageSize: number, userId: number, parkId: number, date?: string, type?: SystemUserMsgTypeEnum, startTime?: string, endTime?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResultPageDtoSysUserMsgDTO>>;
|
|
147
151
|
/**
|
|
148
152
|
*
|
|
149
153
|
* @summary 查询用户系统消息详情
|
|
@@ -322,6 +326,18 @@ export interface MessageApiSystemSelectListRequest {
|
|
|
322
326
|
* @memberof MessageApiSystemSelectList
|
|
323
327
|
*/
|
|
324
328
|
readonly type?: SystemUserMsgTypeEnum;
|
|
329
|
+
/**
|
|
330
|
+
* 开始时间 格式:yyyy-MM-dd HH:mm:ss
|
|
331
|
+
* @type {string}
|
|
332
|
+
* @memberof MessageApiSystemSelectList
|
|
333
|
+
*/
|
|
334
|
+
readonly startTime?: string;
|
|
335
|
+
/**
|
|
336
|
+
* 结束时间 格式:yyyy-MM-dd HH:mm:ss
|
|
337
|
+
* @type {string}
|
|
338
|
+
* @memberof MessageApiSystemSelectList
|
|
339
|
+
*/
|
|
340
|
+
readonly endTime?: string;
|
|
325
341
|
}
|
|
326
342
|
/**
|
|
327
343
|
* Request parameters for systemUserMsgDetails operation in MessageApi.
|
package/dist/apis/message-api.js
CHANGED
|
@@ -215,10 +215,12 @@ const MessageApiAxiosParamCreator = function (configuration) {
|
|
|
215
215
|
* @param {number} parkId 园区id
|
|
216
216
|
* @param {string} [date] 时间 年月日
|
|
217
217
|
* @param {SystemUserMsgTypeEnum} [type] 消息类型
|
|
218
|
+
* @param {string} [startTime] 开始时间 格式:yyyy-MM-dd HH:mm:ss
|
|
219
|
+
* @param {string} [endTime] 结束时间 格式:yyyy-MM-dd HH:mm:ss
|
|
218
220
|
* @param {*} [options] Override http request option.
|
|
219
221
|
* @throws {RequiredError}
|
|
220
222
|
*/
|
|
221
|
-
systemSelectList: (page_1, pageSize_1, userId_1, parkId_1, date_1, type_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, userId_1, parkId_1, date_1, type_1, ...args_1], void 0, function* (page, pageSize, userId, parkId, date, type, options = {}) {
|
|
223
|
+
systemSelectList: (page_1, pageSize_1, userId_1, parkId_1, date_1, type_1, startTime_1, endTime_1, ...args_1) => __awaiter(this, [page_1, pageSize_1, userId_1, parkId_1, date_1, type_1, startTime_1, endTime_1, ...args_1], void 0, function* (page, pageSize, userId, parkId, date, type, startTime, endTime, options = {}) {
|
|
222
224
|
// verify required parameter 'page' is not null or undefined
|
|
223
225
|
(0, common_1.assertParamExists)('systemSelectList', 'page', page);
|
|
224
226
|
// verify required parameter 'pageSize' is not null or undefined
|
|
@@ -258,6 +260,12 @@ const MessageApiAxiosParamCreator = function (configuration) {
|
|
|
258
260
|
if (parkId !== undefined) {
|
|
259
261
|
localVarQueryParameter['parkId'] = parkId;
|
|
260
262
|
}
|
|
263
|
+
if (startTime !== undefined) {
|
|
264
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
265
|
+
}
|
|
266
|
+
if (endTime !== undefined) {
|
|
267
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
268
|
+
}
|
|
261
269
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
262
270
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
263
271
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -397,13 +405,15 @@ const MessageApiFp = function (configuration) {
|
|
|
397
405
|
* @param {number} parkId 园区id
|
|
398
406
|
* @param {string} [date] 时间 年月日
|
|
399
407
|
* @param {SystemUserMsgTypeEnum} [type] 消息类型
|
|
408
|
+
* @param {string} [startTime] 开始时间 格式:yyyy-MM-dd HH:mm:ss
|
|
409
|
+
* @param {string} [endTime] 结束时间 格式:yyyy-MM-dd HH:mm:ss
|
|
400
410
|
* @param {*} [options] Override http request option.
|
|
401
411
|
* @throws {RequiredError}
|
|
402
412
|
*/
|
|
403
|
-
systemSelectList(page, pageSize, userId, parkId, date, type, options) {
|
|
413
|
+
systemSelectList(page, pageSize, userId, parkId, date, type, startTime, endTime, options) {
|
|
404
414
|
return __awaiter(this, void 0, void 0, function* () {
|
|
405
415
|
var _a, _b, _c;
|
|
406
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.systemSelectList(page, pageSize, userId, parkId, date, type, options);
|
|
416
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.systemSelectList(page, pageSize, userId, parkId, date, type, startTime, endTime, options);
|
|
407
417
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
408
418
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MessageApi.systemSelectList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
409
419
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -493,7 +503,7 @@ const MessageApiFactory = function (configuration, basePath, axios) {
|
|
|
493
503
|
* @throws {RequiredError}
|
|
494
504
|
*/
|
|
495
505
|
systemSelectList(requestParameters, options) {
|
|
496
|
-
return localVarFp.systemSelectList(requestParameters.page, requestParameters.pageSize, requestParameters.userId, requestParameters.parkId, requestParameters.date, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
506
|
+
return localVarFp.systemSelectList(requestParameters.page, requestParameters.pageSize, requestParameters.userId, requestParameters.parkId, requestParameters.date, requestParameters.type, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
|
|
497
507
|
},
|
|
498
508
|
/**
|
|
499
509
|
*
|
|
@@ -579,7 +589,7 @@ class MessageApi extends base_1.BaseAPI {
|
|
|
579
589
|
* @memberof MessageApi
|
|
580
590
|
*/
|
|
581
591
|
systemSelectList(requestParameters, options) {
|
|
582
|
-
return (0, exports.MessageApiFp)(this.configuration).systemSelectList(requestParameters.page, requestParameters.pageSize, requestParameters.userId, requestParameters.parkId, requestParameters.date, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
592
|
+
return (0, exports.MessageApiFp)(this.configuration).systemSelectList(requestParameters.page, requestParameters.pageSize, requestParameters.userId, requestParameters.parkId, requestParameters.date, requestParameters.type, requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
|
|
583
593
|
}
|
|
584
594
|
/**
|
|
585
595
|
*
|