@gizone/rrs-client 4.2.9-alpha.591 → 4.2.9-alpha.594
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/apis/energy-cost-controller-api.ts +19 -14
- package/dist/apis/energy-cost-controller-api.d.ts +6 -7
- package/dist/apis/energy-cost-controller-api.js +15 -9
- package/dist/esm/apis/energy-cost-controller-api.d.ts +6 -7
- package/dist/esm/apis/energy-cost-controller-api.js +15 -9
- package/dist/esm/models/energy-cost-add-record-dto.d.ts +3 -3
- package/dist/esm/models/sys-user.d.ts +4 -4
- package/dist/models/energy-cost-add-record-dto.d.ts +3 -3
- package/dist/models/sys-user.d.ts +4 -4
- package/models/energy-cost-add-record-dto.ts +3 -3
- package/models/sys-user.ts +4 -4
- package/ossutil.log +1122 -1119
- package/package.json +1 -1
|
@@ -39,8 +39,6 @@ import type { JsonResultEnergyCostImportRedisVo } from '../models';
|
|
|
39
39
|
import type { JsonResultListEnergyCostMonthSettingListSummaryStandardsVO } from '../models';
|
|
40
40
|
// @ts-ignore
|
|
41
41
|
import type { JsonResultListEnergyCostMonthSettingListVO } from '../models';
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
import type { UserBatchImportUploadRequest } from '../models';
|
|
44
42
|
/**
|
|
45
43
|
* EnergyCostControllerApi - axios parameter creator
|
|
46
44
|
* @export
|
|
@@ -133,13 +131,15 @@ export const EnergyCostControllerApiAxiosParamCreator = function (configuration?
|
|
|
133
131
|
*
|
|
134
132
|
* @summary 能源费用管理设置-上传文件
|
|
135
133
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
136
|
-
* @param {
|
|
134
|
+
* @param {File} file
|
|
137
135
|
* @param {*} [options] Override http request option.
|
|
138
136
|
* @throws {RequiredError}
|
|
139
137
|
*/
|
|
140
|
-
energyCostImportUpload: async (energyType: EnergyCostImportUploadEnergyTypeEnum,
|
|
138
|
+
energyCostImportUpload: async (energyType: EnergyCostImportUploadEnergyTypeEnum, file: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
141
139
|
// verify required parameter 'energyType' is not null or undefined
|
|
142
140
|
assertParamExists('energyCostImportUpload', 'energyType', energyType)
|
|
141
|
+
// verify required parameter 'file' is not null or undefined
|
|
142
|
+
assertParamExists('energyCostImportUpload', 'file', file)
|
|
143
143
|
const localVarPath = `/gizone/energy/cost/month/import/upload`;
|
|
144
144
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
145
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -151,6 +151,7 @@ export const EnergyCostControllerApiAxiosParamCreator = function (configuration?
|
|
|
151
151
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
152
152
|
const localVarHeaderParameter = {} as any;
|
|
153
153
|
const localVarQueryParameter = {} as any;
|
|
154
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
154
155
|
|
|
155
156
|
// authentication tokenScheme required
|
|
156
157
|
// http bearer authentication required
|
|
@@ -161,13 +162,17 @@ export const EnergyCostControllerApiAxiosParamCreator = function (configuration?
|
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
|
|
165
|
+
if (file !== undefined) {
|
|
166
|
+
localVarFormParams.append('file', file as any);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
164
171
|
|
|
165
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
166
|
-
|
|
167
172
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
168
173
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
169
174
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
170
|
-
localVarRequestOptions.data =
|
|
175
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
171
176
|
|
|
172
177
|
return {
|
|
173
178
|
url: toPathString(localVarUrlObj),
|
|
@@ -584,12 +589,12 @@ export const EnergyCostControllerApiFp = function(configuration?: Configuration)
|
|
|
584
589
|
*
|
|
585
590
|
* @summary 能源费用管理设置-上传文件
|
|
586
591
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
587
|
-
* @param {
|
|
592
|
+
* @param {File} file
|
|
588
593
|
* @param {*} [options] Override http request option.
|
|
589
594
|
* @throws {RequiredError}
|
|
590
595
|
*/
|
|
591
|
-
async energyCostImportUpload(energyType: EnergyCostImportUploadEnergyTypeEnum,
|
|
592
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.energyCostImportUpload(energyType,
|
|
596
|
+
async energyCostImportUpload(energyType: EnergyCostImportUploadEnergyTypeEnum, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>> {
|
|
597
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.energyCostImportUpload(energyType, file, options);
|
|
593
598
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
594
599
|
const localVarOperationServerBasePath = operationServerMap['EnergyCostControllerApi.energyCostImportUpload']?.[localVarOperationServerIndex]?.url;
|
|
595
600
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -751,7 +756,7 @@ export const EnergyCostControllerApiFactory = function (configuration?: Configur
|
|
|
751
756
|
* @throws {RequiredError}
|
|
752
757
|
*/
|
|
753
758
|
energyCostImportUpload(requestParameters: EnergyCostControllerApiEnergyCostImportUploadRequest, options?: RawAxiosRequestConfig): AxiosPromise<JsonResult> {
|
|
754
|
-
return localVarFp.energyCostImportUpload(requestParameters.energyType, requestParameters.
|
|
759
|
+
return localVarFp.energyCostImportUpload(requestParameters.energyType, requestParameters.file, options).then((request) => request(axios, basePath));
|
|
755
760
|
},
|
|
756
761
|
/**
|
|
757
762
|
*
|
|
@@ -887,10 +892,10 @@ export interface EnergyCostControllerApiEnergyCostImportUploadRequest {
|
|
|
887
892
|
|
|
888
893
|
/**
|
|
889
894
|
*
|
|
890
|
-
* @type {
|
|
895
|
+
* @type {File}
|
|
891
896
|
* @memberof EnergyCostControllerApiEnergyCostImportUpload
|
|
892
897
|
*/
|
|
893
|
-
readonly
|
|
898
|
+
readonly file: File
|
|
894
899
|
}
|
|
895
900
|
|
|
896
901
|
/**
|
|
@@ -1059,7 +1064,7 @@ export class EnergyCostControllerApi extends BaseAPI {
|
|
|
1059
1064
|
* @memberof EnergyCostControllerApi
|
|
1060
1065
|
*/
|
|
1061
1066
|
public energyCostImportUpload(requestParameters: EnergyCostControllerApiEnergyCostImportUploadRequest, options?: RawAxiosRequestConfig) {
|
|
1062
|
-
return EnergyCostControllerApiFp(this.configuration).energyCostImportUpload(requestParameters.energyType, requestParameters.
|
|
1067
|
+
return EnergyCostControllerApiFp(this.configuration).energyCostImportUpload(requestParameters.energyType, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
1063
1068
|
}
|
|
1064
1069
|
|
|
1065
1070
|
/**
|
|
@@ -21,7 +21,6 @@ import type { JsonResult } from '../models';
|
|
|
21
21
|
import type { JsonResultEnergyCostImportRedisVo } from '../models';
|
|
22
22
|
import type { JsonResultListEnergyCostMonthSettingListSummaryStandardsVO } from '../models';
|
|
23
23
|
import type { JsonResultListEnergyCostMonthSettingListVO } from '../models';
|
|
24
|
-
import type { UserBatchImportUploadRequest } from '../models';
|
|
25
24
|
/**
|
|
26
25
|
* EnergyCostControllerApi - axios parameter creator
|
|
27
26
|
* @export
|
|
@@ -47,11 +46,11 @@ export declare const EnergyCostControllerApiAxiosParamCreator: (configuration?:
|
|
|
47
46
|
*
|
|
48
47
|
* @summary 能源费用管理设置-上传文件
|
|
49
48
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
50
|
-
* @param {
|
|
49
|
+
* @param {File} file
|
|
51
50
|
* @param {*} [options] Override http request option.
|
|
52
51
|
* @throws {RequiredError}
|
|
53
52
|
*/
|
|
54
|
-
energyCostImportUpload: (energyType: EnergyCostImportUploadEnergyTypeEnum,
|
|
53
|
+
energyCostImportUpload: (energyType: EnergyCostImportUploadEnergyTypeEnum, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
54
|
/**
|
|
56
55
|
*
|
|
57
56
|
* @summary 能源费用管理设置-新增
|
|
@@ -152,11 +151,11 @@ export declare const EnergyCostControllerApiFp: (configuration?: Configuration)
|
|
|
152
151
|
*
|
|
153
152
|
* @summary 能源费用管理设置-上传文件
|
|
154
153
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
155
|
-
* @param {
|
|
154
|
+
* @param {File} file
|
|
156
155
|
* @param {*} [options] Override http request option.
|
|
157
156
|
* @throws {RequiredError}
|
|
158
157
|
*/
|
|
159
|
-
energyCostImportUpload(energyType: EnergyCostImportUploadEnergyTypeEnum,
|
|
158
|
+
energyCostImportUpload(energyType: EnergyCostImportUploadEnergyTypeEnum, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
|
|
160
159
|
/**
|
|
161
160
|
*
|
|
162
161
|
* @summary 能源费用管理设置-新增
|
|
@@ -372,10 +371,10 @@ export interface EnergyCostControllerApiEnergyCostImportUploadRequest {
|
|
|
372
371
|
readonly energyType: EnergyCostImportUploadEnergyTypeEnum;
|
|
373
372
|
/**
|
|
374
373
|
*
|
|
375
|
-
* @type {
|
|
374
|
+
* @type {File}
|
|
376
375
|
* @memberof EnergyCostControllerApiEnergyCostImportUpload
|
|
377
376
|
*/
|
|
378
|
-
readonly
|
|
377
|
+
readonly file: File;
|
|
379
378
|
}
|
|
380
379
|
/**
|
|
381
380
|
* Request parameters for energyCostMonthSettingAdd operation in EnergyCostControllerApi.
|
|
@@ -107,13 +107,15 @@ const EnergyCostControllerApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
*
|
|
108
108
|
* @summary 能源费用管理设置-上传文件
|
|
109
109
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
110
|
-
* @param {
|
|
110
|
+
* @param {File} file
|
|
111
111
|
* @param {*} [options] Override http request option.
|
|
112
112
|
* @throws {RequiredError}
|
|
113
113
|
*/
|
|
114
|
-
energyCostImportUpload: (energyType_1,
|
|
114
|
+
energyCostImportUpload: (energyType_1, file_1, ...args_1) => __awaiter(this, [energyType_1, file_1, ...args_1], void 0, function* (energyType, file, options = {}) {
|
|
115
115
|
// verify required parameter 'energyType' is not null or undefined
|
|
116
116
|
(0, common_1.assertParamExists)('energyCostImportUpload', 'energyType', energyType);
|
|
117
|
+
// verify required parameter 'file' is not null or undefined
|
|
118
|
+
(0, common_1.assertParamExists)('energyCostImportUpload', 'file', file);
|
|
117
119
|
const localVarPath = `/gizone/energy/cost/month/import/upload`;
|
|
118
120
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
119
121
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -124,17 +126,21 @@ const EnergyCostControllerApiAxiosParamCreator = function (configuration) {
|
|
|
124
126
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
125
127
|
const localVarHeaderParameter = {};
|
|
126
128
|
const localVarQueryParameter = {};
|
|
129
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
127
130
|
// authentication tokenScheme required
|
|
128
131
|
// http bearer authentication required
|
|
129
132
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
130
133
|
if (energyType !== undefined) {
|
|
131
134
|
localVarQueryParameter['energyType'] = energyType;
|
|
132
135
|
}
|
|
133
|
-
|
|
136
|
+
if (file !== undefined) {
|
|
137
|
+
localVarFormParams.append('file', file);
|
|
138
|
+
}
|
|
139
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
134
140
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
135
141
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
142
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
137
|
-
localVarRequestOptions.data =
|
|
143
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
138
144
|
return {
|
|
139
145
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
140
146
|
options: localVarRequestOptions,
|
|
@@ -491,14 +497,14 @@ const EnergyCostControllerApiFp = function (configuration) {
|
|
|
491
497
|
*
|
|
492
498
|
* @summary 能源费用管理设置-上传文件
|
|
493
499
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
494
|
-
* @param {
|
|
500
|
+
* @param {File} file
|
|
495
501
|
* @param {*} [options] Override http request option.
|
|
496
502
|
* @throws {RequiredError}
|
|
497
503
|
*/
|
|
498
|
-
energyCostImportUpload(energyType,
|
|
504
|
+
energyCostImportUpload(energyType, file, options) {
|
|
499
505
|
return __awaiter(this, void 0, void 0, function* () {
|
|
500
506
|
var _a, _b, _c;
|
|
501
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostImportUpload(energyType,
|
|
507
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostImportUpload(energyType, file, options);
|
|
502
508
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
503
509
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostControllerApi.energyCostImportUpload']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
504
510
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -688,7 +694,7 @@ const EnergyCostControllerApiFactory = function (configuration, basePath, axios)
|
|
|
688
694
|
* @throws {RequiredError}
|
|
689
695
|
*/
|
|
690
696
|
energyCostImportUpload(requestParameters, options) {
|
|
691
|
-
return localVarFp.energyCostImportUpload(requestParameters.energyType, requestParameters.
|
|
697
|
+
return localVarFp.energyCostImportUpload(requestParameters.energyType, requestParameters.file, options).then((request) => request(axios, basePath));
|
|
692
698
|
},
|
|
693
699
|
/**
|
|
694
700
|
*
|
|
@@ -819,7 +825,7 @@ class EnergyCostControllerApi extends base_1.BaseAPI {
|
|
|
819
825
|
* @memberof EnergyCostControllerApi
|
|
820
826
|
*/
|
|
821
827
|
energyCostImportUpload(requestParameters, options) {
|
|
822
|
-
return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostImportUpload(requestParameters.energyType, requestParameters.
|
|
828
|
+
return (0, exports.EnergyCostControllerApiFp)(this.configuration).energyCostImportUpload(requestParameters.energyType, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
823
829
|
}
|
|
824
830
|
/**
|
|
825
831
|
*
|
|
@@ -21,7 +21,6 @@ import type { JsonResult } from '../models';
|
|
|
21
21
|
import type { JsonResultEnergyCostImportRedisVo } from '../models';
|
|
22
22
|
import type { JsonResultListEnergyCostMonthSettingListSummaryStandardsVO } from '../models';
|
|
23
23
|
import type { JsonResultListEnergyCostMonthSettingListVO } from '../models';
|
|
24
|
-
import type { UserBatchImportUploadRequest } from '../models';
|
|
25
24
|
/**
|
|
26
25
|
* EnergyCostControllerApi - axios parameter creator
|
|
27
26
|
* @export
|
|
@@ -47,11 +46,11 @@ export declare const EnergyCostControllerApiAxiosParamCreator: (configuration?:
|
|
|
47
46
|
*
|
|
48
47
|
* @summary 能源费用管理设置-上传文件
|
|
49
48
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
50
|
-
* @param {
|
|
49
|
+
* @param {File} file
|
|
51
50
|
* @param {*} [options] Override http request option.
|
|
52
51
|
* @throws {RequiredError}
|
|
53
52
|
*/
|
|
54
|
-
energyCostImportUpload: (energyType: EnergyCostImportUploadEnergyTypeEnum,
|
|
53
|
+
energyCostImportUpload: (energyType: EnergyCostImportUploadEnergyTypeEnum, file: File, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
54
|
/**
|
|
56
55
|
*
|
|
57
56
|
* @summary 能源费用管理设置-新增
|
|
@@ -152,11 +151,11 @@ export declare const EnergyCostControllerApiFp: (configuration?: Configuration)
|
|
|
152
151
|
*
|
|
153
152
|
* @summary 能源费用管理设置-上传文件
|
|
154
153
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
155
|
-
* @param {
|
|
154
|
+
* @param {File} file
|
|
156
155
|
* @param {*} [options] Override http request option.
|
|
157
156
|
* @throws {RequiredError}
|
|
158
157
|
*/
|
|
159
|
-
energyCostImportUpload(energyType: EnergyCostImportUploadEnergyTypeEnum,
|
|
158
|
+
energyCostImportUpload(energyType: EnergyCostImportUploadEnergyTypeEnum, file: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JsonResult>>;
|
|
160
159
|
/**
|
|
161
160
|
*
|
|
162
161
|
* @summary 能源费用管理设置-新增
|
|
@@ -372,10 +371,10 @@ export interface EnergyCostControllerApiEnergyCostImportUploadRequest {
|
|
|
372
371
|
readonly energyType: EnergyCostImportUploadEnergyTypeEnum;
|
|
373
372
|
/**
|
|
374
373
|
*
|
|
375
|
-
* @type {
|
|
374
|
+
* @type {File}
|
|
376
375
|
* @memberof EnergyCostControllerApiEnergyCostImportUpload
|
|
377
376
|
*/
|
|
378
|
-
readonly
|
|
377
|
+
readonly file: File;
|
|
379
378
|
}
|
|
380
379
|
/**
|
|
381
380
|
* Request parameters for energyCostMonthSettingAdd operation in EnergyCostControllerApi.
|
|
@@ -104,13 +104,15 @@ export const EnergyCostControllerApiAxiosParamCreator = function (configuration)
|
|
|
104
104
|
*
|
|
105
105
|
* @summary 能源费用管理设置-上传文件
|
|
106
106
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
107
|
-
* @param {
|
|
107
|
+
* @param {File} file
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
109
109
|
* @throws {RequiredError}
|
|
110
110
|
*/
|
|
111
|
-
energyCostImportUpload: (energyType_1,
|
|
111
|
+
energyCostImportUpload: (energyType_1, file_1, ...args_1) => __awaiter(this, [energyType_1, file_1, ...args_1], void 0, function* (energyType, file, options = {}) {
|
|
112
112
|
// verify required parameter 'energyType' is not null or undefined
|
|
113
113
|
assertParamExists('energyCostImportUpload', 'energyType', energyType);
|
|
114
|
+
// verify required parameter 'file' is not null or undefined
|
|
115
|
+
assertParamExists('energyCostImportUpload', 'file', file);
|
|
114
116
|
const localVarPath = `/gizone/energy/cost/month/import/upload`;
|
|
115
117
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
118
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -121,17 +123,21 @@ export const EnergyCostControllerApiAxiosParamCreator = function (configuration)
|
|
|
121
123
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
122
124
|
const localVarHeaderParameter = {};
|
|
123
125
|
const localVarQueryParameter = {};
|
|
126
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
124
127
|
// authentication tokenScheme required
|
|
125
128
|
// http bearer authentication required
|
|
126
129
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
127
130
|
if (energyType !== undefined) {
|
|
128
131
|
localVarQueryParameter['energyType'] = energyType;
|
|
129
132
|
}
|
|
130
|
-
|
|
133
|
+
if (file !== undefined) {
|
|
134
|
+
localVarFormParams.append('file', file);
|
|
135
|
+
}
|
|
136
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
131
137
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
138
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
139
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
-
localVarRequestOptions.data =
|
|
140
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
135
141
|
return {
|
|
136
142
|
url: toPathString(localVarUrlObj),
|
|
137
143
|
options: localVarRequestOptions,
|
|
@@ -487,14 +493,14 @@ export const EnergyCostControllerApiFp = function (configuration) {
|
|
|
487
493
|
*
|
|
488
494
|
* @summary 能源费用管理设置-上传文件
|
|
489
495
|
* @param {EnergyCostImportUploadEnergyTypeEnum} energyType
|
|
490
|
-
* @param {
|
|
496
|
+
* @param {File} file
|
|
491
497
|
* @param {*} [options] Override http request option.
|
|
492
498
|
* @throws {RequiredError}
|
|
493
499
|
*/
|
|
494
|
-
energyCostImportUpload(energyType,
|
|
500
|
+
energyCostImportUpload(energyType, file, options) {
|
|
495
501
|
return __awaiter(this, void 0, void 0, function* () {
|
|
496
502
|
var _a, _b, _c;
|
|
497
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostImportUpload(energyType,
|
|
503
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostImportUpload(energyType, file, options);
|
|
498
504
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
499
505
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostImportUpload']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
500
506
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -683,7 +689,7 @@ export const EnergyCostControllerApiFactory = function (configuration, basePath,
|
|
|
683
689
|
* @throws {RequiredError}
|
|
684
690
|
*/
|
|
685
691
|
energyCostImportUpload(requestParameters, options) {
|
|
686
|
-
return localVarFp.energyCostImportUpload(requestParameters.energyType, requestParameters.
|
|
692
|
+
return localVarFp.energyCostImportUpload(requestParameters.energyType, requestParameters.file, options).then((request) => request(axios, basePath));
|
|
687
693
|
},
|
|
688
694
|
/**
|
|
689
695
|
*
|
|
@@ -813,7 +819,7 @@ export class EnergyCostControllerApi extends BaseAPI {
|
|
|
813
819
|
* @memberof EnergyCostControllerApi
|
|
814
820
|
*/
|
|
815
821
|
energyCostImportUpload(requestParameters, options) {
|
|
816
|
-
return EnergyCostControllerApiFp(this.configuration).energyCostImportUpload(requestParameters.energyType, requestParameters.
|
|
822
|
+
return EnergyCostControllerApiFp(this.configuration).energyCostImportUpload(requestParameters.energyType, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
|
|
817
823
|
}
|
|
818
824
|
/**
|
|
819
825
|
*
|
|
@@ -94,15 +94,15 @@ export interface EnergyCostAddRecordDTO {
|
|
|
94
94
|
* @type {number}
|
|
95
95
|
* @memberof EnergyCostAddRecordDTO
|
|
96
96
|
*/
|
|
97
|
-
'unitPrice'
|
|
97
|
+
'unitPrice'?: number;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* 单平单价
|
|
100
100
|
* @type {number}
|
|
101
101
|
* @memberof EnergyCostAddRecordDTO
|
|
102
102
|
*/
|
|
103
103
|
'pricePerSquareMeter'?: number;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* 单平单耗
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof EnergyCostAddRecordDTO
|
|
108
108
|
*/
|
|
@@ -377,14 +377,14 @@ export interface SysUser {
|
|
|
377
377
|
'sourceUserId'?: string;
|
|
378
378
|
/**
|
|
379
379
|
*
|
|
380
|
-
* @type {
|
|
380
|
+
* @type {string}
|
|
381
381
|
* @memberof SysUser
|
|
382
382
|
*/
|
|
383
|
-
'
|
|
383
|
+
'cid'?: string;
|
|
384
384
|
/**
|
|
385
385
|
*
|
|
386
|
-
* @type {
|
|
386
|
+
* @type {number}
|
|
387
387
|
* @memberof SysUser
|
|
388
388
|
*/
|
|
389
|
-
'
|
|
389
|
+
'cuserId'?: number;
|
|
390
390
|
}
|
|
@@ -94,15 +94,15 @@ export interface EnergyCostAddRecordDTO {
|
|
|
94
94
|
* @type {number}
|
|
95
95
|
* @memberof EnergyCostAddRecordDTO
|
|
96
96
|
*/
|
|
97
|
-
'unitPrice'
|
|
97
|
+
'unitPrice'?: number;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* 单平单价
|
|
100
100
|
* @type {number}
|
|
101
101
|
* @memberof EnergyCostAddRecordDTO
|
|
102
102
|
*/
|
|
103
103
|
'pricePerSquareMeter'?: number;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* 单平单耗
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof EnergyCostAddRecordDTO
|
|
108
108
|
*/
|
|
@@ -377,14 +377,14 @@ export interface SysUser {
|
|
|
377
377
|
'sourceUserId'?: string;
|
|
378
378
|
/**
|
|
379
379
|
*
|
|
380
|
-
* @type {
|
|
380
|
+
* @type {string}
|
|
381
381
|
* @memberof SysUser
|
|
382
382
|
*/
|
|
383
|
-
'
|
|
383
|
+
'cid'?: string;
|
|
384
384
|
/**
|
|
385
385
|
*
|
|
386
|
-
* @type {
|
|
386
|
+
* @type {number}
|
|
387
387
|
* @memberof SysUser
|
|
388
388
|
*/
|
|
389
|
-
'
|
|
389
|
+
'cuserId'?: number;
|
|
390
390
|
}
|
|
@@ -103,15 +103,15 @@ export interface EnergyCostAddRecordDTO {
|
|
|
103
103
|
* @type {number}
|
|
104
104
|
* @memberof EnergyCostAddRecordDTO
|
|
105
105
|
*/
|
|
106
|
-
'unitPrice'
|
|
106
|
+
'unitPrice'?: number;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* 单平单价
|
|
109
109
|
* @type {number}
|
|
110
110
|
* @memberof EnergyCostAddRecordDTO
|
|
111
111
|
*/
|
|
112
112
|
'pricePerSquareMeter'?: number;
|
|
113
113
|
/**
|
|
114
|
-
*
|
|
114
|
+
* 单平单耗
|
|
115
115
|
* @type {number}
|
|
116
116
|
* @memberof EnergyCostAddRecordDTO
|
|
117
117
|
*/
|
package/models/sys-user.ts
CHANGED
|
@@ -388,16 +388,16 @@ export interface SysUser {
|
|
|
388
388
|
'sourceUserId'?: string;
|
|
389
389
|
/**
|
|
390
390
|
*
|
|
391
|
-
* @type {
|
|
391
|
+
* @type {string}
|
|
392
392
|
* @memberof SysUser
|
|
393
393
|
*/
|
|
394
|
-
'
|
|
394
|
+
'cid'?: string;
|
|
395
395
|
/**
|
|
396
396
|
*
|
|
397
|
-
* @type {
|
|
397
|
+
* @type {number}
|
|
398
398
|
* @memberof SysUser
|
|
399
399
|
*/
|
|
400
|
-
'
|
|
400
|
+
'cuserId'?: number;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
|