@gizone/rrs-client 4.2.9-alpha.527 → 4.2.9-alpha.537

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 (101) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/api.ts +1 -0
  3. package/apis/device-api.ts +91 -0
  4. package/apis/energy-cost-controller-api.ts +973 -0
  5. package/dist/api.d.ts +1 -0
  6. package/dist/api.js +1 -0
  7. package/dist/apis/device-api.d.ts +47 -0
  8. package/dist/apis/device-api.js +70 -0
  9. package/dist/apis/energy-cost-controller-api.d.ts +527 -0
  10. package/dist/apis/energy-cost-controller-api.js +737 -0
  11. package/dist/esm/api.d.ts +1 -0
  12. package/dist/esm/api.js +1 -0
  13. package/dist/esm/apis/device-api.d.ts +47 -0
  14. package/dist/esm/apis/device-api.js +70 -0
  15. package/dist/esm/apis/energy-cost-controller-api.d.ts +527 -0
  16. package/dist/esm/apis/energy-cost-controller-api.js +730 -0
  17. package/dist/esm/models/energy-cost-add-record-dto.d.ts +138 -0
  18. package/dist/esm/models/energy-cost-add-record-dto.js +27 -0
  19. package/dist/esm/models/energy-cost-add-setting-dto.d.ts +60 -0
  20. package/dist/esm/models/energy-cost-add-setting-dto.js +23 -0
  21. package/dist/esm/models/energy-cost-confirm-record-dto.d.ts +42 -0
  22. package/dist/esm/models/energy-cost-confirm-record-dto.js +17 -0
  23. package/dist/esm/models/energy-cost-month-setting-list-vo.d.ts +96 -0
  24. package/dist/esm/models/energy-cost-month-setting-list-vo.js +23 -0
  25. package/dist/esm/models/energy-cost-record-info-vo.d.ts +192 -0
  26. package/dist/esm/models/energy-cost-record-info-vo.js +27 -0
  27. package/dist/esm/models/energy-cost-scenarios-info-vo.d.ts +132 -0
  28. package/dist/esm/models/energy-cost-scenarios-info-vo.js +23 -0
  29. package/dist/esm/models/energy-cost-update-setting-dto.d.ts +60 -0
  30. package/dist/esm/models/energy-cost-update-setting-dto.js +23 -0
  31. package/dist/esm/models/index.d.ts +15 -0
  32. package/dist/esm/models/index.js +15 -0
  33. package/dist/esm/models/iot-device-unit-delete-dto.d.ts +42 -0
  34. package/dist/esm/models/iot-device-unit-delete-dto.js +14 -0
  35. package/dist/esm/models/ipage-energy-cost-record-info-vo.d.ts +62 -0
  36. package/dist/esm/models/ipage-energy-cost-record-info-vo.js +14 -0
  37. package/dist/esm/models/item.d.ts +55 -0
  38. package/dist/esm/models/item.js +19 -0
  39. package/dist/esm/models/json-result-energy-cost-record-info-vo.d.ts +62 -0
  40. package/dist/esm/models/json-result-energy-cost-record-info-vo.js +14 -0
  41. package/dist/esm/models/json-result-ipage-energy-cost-record-info-vo.d.ts +62 -0
  42. package/dist/esm/models/json-result-ipage-energy-cost-record-info-vo.js +14 -0
  43. package/dist/esm/models/json-result-list-energy-cost-month-setting-list-vo.d.ts +62 -0
  44. package/dist/esm/models/json-result-list-energy-cost-month-setting-list-vo.js +14 -0
  45. package/dist/esm/models/json-result-map-string-object.d.ts +63 -0
  46. package/dist/esm/models/json-result-map-string-object.js +14 -0
  47. package/dist/esm/models/surveillance-batch-import-template-dto.d.ts +7 -0
  48. package/dist/esm/models/surveillance-entity.d.ts +171 -0
  49. package/dist/esm/models/surveillance-entity.js +14 -0
  50. package/dist/models/energy-cost-add-record-dto.d.ts +138 -0
  51. package/dist/models/energy-cost-add-record-dto.js +30 -0
  52. package/dist/models/energy-cost-add-setting-dto.d.ts +60 -0
  53. package/dist/models/energy-cost-add-setting-dto.js +26 -0
  54. package/dist/models/energy-cost-confirm-record-dto.d.ts +42 -0
  55. package/dist/models/energy-cost-confirm-record-dto.js +20 -0
  56. package/dist/models/energy-cost-month-setting-list-vo.d.ts +96 -0
  57. package/dist/models/energy-cost-month-setting-list-vo.js +26 -0
  58. package/dist/models/energy-cost-record-info-vo.d.ts +192 -0
  59. package/dist/models/energy-cost-record-info-vo.js +30 -0
  60. package/dist/models/energy-cost-scenarios-info-vo.d.ts +132 -0
  61. package/dist/models/energy-cost-scenarios-info-vo.js +26 -0
  62. package/dist/models/energy-cost-update-setting-dto.d.ts +60 -0
  63. package/dist/models/energy-cost-update-setting-dto.js +26 -0
  64. package/dist/models/index.d.ts +15 -0
  65. package/dist/models/index.js +15 -0
  66. package/dist/models/iot-device-unit-delete-dto.d.ts +42 -0
  67. package/dist/models/iot-device-unit-delete-dto.js +15 -0
  68. package/dist/models/ipage-energy-cost-record-info-vo.d.ts +62 -0
  69. package/dist/models/ipage-energy-cost-record-info-vo.js +15 -0
  70. package/dist/models/item.d.ts +55 -0
  71. package/dist/models/item.js +22 -0
  72. package/dist/models/json-result-energy-cost-record-info-vo.d.ts +62 -0
  73. package/dist/models/json-result-energy-cost-record-info-vo.js +15 -0
  74. package/dist/models/json-result-ipage-energy-cost-record-info-vo.d.ts +62 -0
  75. package/dist/models/json-result-ipage-energy-cost-record-info-vo.js +15 -0
  76. package/dist/models/json-result-list-energy-cost-month-setting-list-vo.d.ts +62 -0
  77. package/dist/models/json-result-list-energy-cost-month-setting-list-vo.js +15 -0
  78. package/dist/models/json-result-map-string-object.d.ts +63 -0
  79. package/dist/models/json-result-map-string-object.js +15 -0
  80. package/dist/models/surveillance-batch-import-template-dto.d.ts +7 -0
  81. package/dist/models/surveillance-entity.d.ts +171 -0
  82. package/dist/models/surveillance-entity.js +15 -0
  83. package/models/energy-cost-add-record-dto.ts +151 -0
  84. package/models/energy-cost-add-setting-dto.ts +70 -0
  85. package/models/energy-cost-confirm-record-dto.ts +53 -0
  86. package/models/energy-cost-month-setting-list-vo.ts +106 -0
  87. package/models/energy-cost-record-info-vo.ts +205 -0
  88. package/models/energy-cost-scenarios-info-vo.ts +142 -0
  89. package/models/energy-cost-update-setting-dto.ts +70 -0
  90. package/models/index.ts +15 -0
  91. package/models/iot-device-unit-delete-dto.ts +48 -0
  92. package/models/ipage-energy-cost-record-info-vo.ts +70 -0
  93. package/models/item.ts +64 -0
  94. package/models/json-result-energy-cost-record-info-vo.ts +72 -0
  95. package/models/json-result-ipage-energy-cost-record-info-vo.ts +72 -0
  96. package/models/json-result-list-energy-cost-month-setting-list-vo.ts +72 -0
  97. package/models/json-result-map-string-object.ts +69 -0
  98. package/models/surveillance-batch-import-template-dto.ts +9 -0
  99. package/models/surveillance-entity.ts +185 -0
  100. package/ossutil.log +1047 -0
  101. package/package.json +1 -1
@@ -0,0 +1,730 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * EnergyCostControllerApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const EnergyCostControllerApiAxiosParamCreator = function (configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @summary 新增能源消耗-提交
38
+ * @param {EnergyCostConfirmRecordDTO} energyCostConfirmRecordDTO
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ energyCostAddRecordConfirm: (energyCostConfirmRecordDTO_1, ...args_1) => __awaiter(this, [energyCostConfirmRecordDTO_1, ...args_1], void 0, function* (energyCostConfirmRecordDTO, options = {}) {
43
+ // verify required parameter 'energyCostConfirmRecordDTO' is not null or undefined
44
+ assertParamExists('energyCostAddRecordConfirm', 'energyCostConfirmRecordDTO', energyCostConfirmRecordDTO);
45
+ const localVarPath = `/gizone/energy/cost/record/confirm`;
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
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication tokenScheme required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ localVarHeaderParameter['Content-Type'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostConfirmRecordDTO, localVarRequestOptions, configuration);
63
+ return {
64
+ url: toPathString(localVarUrlObj),
65
+ options: localVarRequestOptions,
66
+ };
67
+ }),
68
+ /**
69
+ *
70
+ * @summary 新增能源消耗-返回详情
71
+ * @param {number} id
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ energyCostAddRecordDetail: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
76
+ // verify required parameter 'id' is not null or undefined
77
+ assertParamExists('energyCostAddRecordDetail', 'id', id);
78
+ const localVarPath = `/gizone/energy/cost/record/detail/{id}`
79
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
80
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
81
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
82
+ let baseOptions;
83
+ if (configuration) {
84
+ baseOptions = configuration.baseOptions;
85
+ }
86
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
87
+ const localVarHeaderParameter = {};
88
+ const localVarQueryParameter = {};
89
+ // authentication tokenScheme required
90
+ // http bearer authentication required
91
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
92
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
93
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
94
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ }),
100
+ /**
101
+ *
102
+ * @summary 新增能源消耗-录入
103
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ energyCostAddRecordInput: (energyCostAddRecordDTO_1, ...args_1) => __awaiter(this, [energyCostAddRecordDTO_1, ...args_1], void 0, function* (energyCostAddRecordDTO, options = {}) {
108
+ // verify required parameter 'energyCostAddRecordDTO' is not null or undefined
109
+ assertParamExists('energyCostAddRecordInput', 'energyCostAddRecordDTO', energyCostAddRecordDTO);
110
+ const localVarPath = `/gizone/energy/cost/record/input`;
111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
113
+ let baseOptions;
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ }
117
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
118
+ const localVarHeaderParameter = {};
119
+ const localVarQueryParameter = {};
120
+ // authentication tokenScheme required
121
+ // http bearer authentication required
122
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
123
+ localVarHeaderParameter['Content-Type'] = 'application/json';
124
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
125
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
127
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostAddRecordDTO, localVarRequestOptions, configuration);
128
+ return {
129
+ url: toPathString(localVarUrlObj),
130
+ options: localVarRequestOptions,
131
+ };
132
+ }),
133
+ /**
134
+ *
135
+ * @summary 新增能源消耗-录入保存为草稿
136
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
137
+ * @param {*} [options] Override http request option.
138
+ * @throws {RequiredError}
139
+ */
140
+ energyCostAddRecordInputDraft: (energyCostAddRecordDTO_1, ...args_1) => __awaiter(this, [energyCostAddRecordDTO_1, ...args_1], void 0, function* (energyCostAddRecordDTO, options = {}) {
141
+ // verify required parameter 'energyCostAddRecordDTO' is not null or undefined
142
+ assertParamExists('energyCostAddRecordInputDraft', 'energyCostAddRecordDTO', energyCostAddRecordDTO);
143
+ const localVarPath = `/gizone/energy/cost/record/input/draft`;
144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
145
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
146
+ let baseOptions;
147
+ if (configuration) {
148
+ baseOptions = configuration.baseOptions;
149
+ }
150
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
151
+ const localVarHeaderParameter = {};
152
+ const localVarQueryParameter = {};
153
+ // authentication tokenScheme required
154
+ // http bearer authentication required
155
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
156
+ localVarHeaderParameter['Content-Type'] = 'application/json';
157
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
158
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
159
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
160
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostAddRecordDTO, localVarRequestOptions, configuration);
161
+ return {
162
+ url: toPathString(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ }),
166
+ /**
167
+ *
168
+ * @summary 新增能源消耗-列表
169
+ * @param {number} [page]
170
+ * @param {number} [size]
171
+ * @param {string} [billNo]
172
+ * @param {string} [startTime]
173
+ * @param {string} [endTime]
174
+ * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
175
+ * @param {number} [status]
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ energyCostAddRecordList: (page_1, size_1, billNo_1, startTime_1, endTime_1, energyType_1, status_1, ...args_1) => __awaiter(this, [page_1, size_1, billNo_1, startTime_1, endTime_1, energyType_1, status_1, ...args_1], void 0, function* (page, size, billNo, startTime, endTime, energyType, status, options = {}) {
180
+ const localVarPath = `/gizone/energy/cost/record/list`;
181
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
182
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
183
+ let baseOptions;
184
+ if (configuration) {
185
+ baseOptions = configuration.baseOptions;
186
+ }
187
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
188
+ const localVarHeaderParameter = {};
189
+ const localVarQueryParameter = {};
190
+ // authentication tokenScheme required
191
+ // http bearer authentication required
192
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
193
+ if (page !== undefined) {
194
+ localVarQueryParameter['page'] = page;
195
+ }
196
+ if (size !== undefined) {
197
+ localVarQueryParameter['size'] = size;
198
+ }
199
+ if (billNo !== undefined) {
200
+ localVarQueryParameter['billNo'] = billNo;
201
+ }
202
+ if (startTime !== undefined) {
203
+ localVarQueryParameter['startTime'] = startTime;
204
+ }
205
+ if (endTime !== undefined) {
206
+ localVarQueryParameter['endTime'] = endTime;
207
+ }
208
+ if (energyType !== undefined) {
209
+ localVarQueryParameter['energyType'] = energyType;
210
+ }
211
+ if (status !== undefined) {
212
+ localVarQueryParameter['status'] = status;
213
+ }
214
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
215
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
217
+ return {
218
+ url: toPathString(localVarUrlObj),
219
+ options: localVarRequestOptions,
220
+ };
221
+ }),
222
+ /**
223
+ *
224
+ * @summary 新增能源费用管理设置-单条新增
225
+ * @param {EnergyCostAddSettingDTO} energyCostAddSettingDTO
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ energyCostMonthSettingAdd: (energyCostAddSettingDTO_1, ...args_1) => __awaiter(this, [energyCostAddSettingDTO_1, ...args_1], void 0, function* (energyCostAddSettingDTO, options = {}) {
230
+ // verify required parameter 'energyCostAddSettingDTO' is not null or undefined
231
+ assertParamExists('energyCostMonthSettingAdd', 'energyCostAddSettingDTO', energyCostAddSettingDTO);
232
+ const localVarPath = `/gizone/energy/cost/month/setting`;
233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
235
+ let baseOptions;
236
+ if (configuration) {
237
+ baseOptions = configuration.baseOptions;
238
+ }
239
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
240
+ const localVarHeaderParameter = {};
241
+ const localVarQueryParameter = {};
242
+ // authentication tokenScheme required
243
+ // http bearer authentication required
244
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
245
+ localVarHeaderParameter['Content-Type'] = 'application/json';
246
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
247
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
248
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
249
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostAddSettingDTO, localVarRequestOptions, configuration);
250
+ return {
251
+ url: toPathString(localVarUrlObj),
252
+ options: localVarRequestOptions,
253
+ };
254
+ }),
255
+ /**
256
+ *
257
+ * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
258
+ * @param {string} [startTime]
259
+ * @param {string} [endTime]
260
+ * @param {*} [options] Override http request option.
261
+ * @throws {RequiredError}
262
+ */
263
+ energyCostMonthSettingList: (startTime_1, endTime_1, ...args_1) => __awaiter(this, [startTime_1, endTime_1, ...args_1], void 0, function* (startTime, endTime, options = {}) {
264
+ const localVarPath = `/gizone/energy/cost/month/setting`;
265
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
266
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
267
+ let baseOptions;
268
+ if (configuration) {
269
+ baseOptions = configuration.baseOptions;
270
+ }
271
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
272
+ const localVarHeaderParameter = {};
273
+ const localVarQueryParameter = {};
274
+ // authentication tokenScheme required
275
+ // http bearer authentication required
276
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
277
+ if (startTime !== undefined) {
278
+ localVarQueryParameter['startTime'] = startTime;
279
+ }
280
+ if (endTime !== undefined) {
281
+ localVarQueryParameter['endTime'] = endTime;
282
+ }
283
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
284
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
286
+ return {
287
+ url: toPathString(localVarUrlObj),
288
+ options: localVarRequestOptions,
289
+ };
290
+ }),
291
+ /**
292
+ *
293
+ * @summary 新增能源费用管理设置-单条修改
294
+ * @param {EnergyCostUpdateSettingDTO} energyCostUpdateSettingDTO
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ energyCostMonthSettingUpdate: (energyCostUpdateSettingDTO_1, ...args_1) => __awaiter(this, [energyCostUpdateSettingDTO_1, ...args_1], void 0, function* (energyCostUpdateSettingDTO, options = {}) {
299
+ // verify required parameter 'energyCostUpdateSettingDTO' is not null or undefined
300
+ assertParamExists('energyCostMonthSettingUpdate', 'energyCostUpdateSettingDTO', energyCostUpdateSettingDTO);
301
+ const localVarPath = `/gizone/energy/cost/month/setting`;
302
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
303
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
304
+ let baseOptions;
305
+ if (configuration) {
306
+ baseOptions = configuration.baseOptions;
307
+ }
308
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
309
+ const localVarHeaderParameter = {};
310
+ const localVarQueryParameter = {};
311
+ // authentication tokenScheme required
312
+ // http bearer authentication required
313
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
314
+ localVarHeaderParameter['Content-Type'] = 'application/json';
315
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
316
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
317
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
318
+ localVarRequestOptions.data = serializeDataIfNeeded(energyCostUpdateSettingDTO, localVarRequestOptions, configuration);
319
+ return {
320
+ url: toPathString(localVarUrlObj),
321
+ options: localVarRequestOptions,
322
+ };
323
+ }),
324
+ /**
325
+ *
326
+ * @summary 获取下拉框内容
327
+ * @param {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ getOptions: (type_1, ...args_1) => __awaiter(this, [type_1, ...args_1], void 0, function* (type, options = {}) {
332
+ const localVarPath = `/gizone/energy/cost/record/getOptions`;
333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
334
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
335
+ let baseOptions;
336
+ if (configuration) {
337
+ baseOptions = configuration.baseOptions;
338
+ }
339
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
340
+ const localVarHeaderParameter = {};
341
+ const localVarQueryParameter = {};
342
+ // authentication tokenScheme required
343
+ // http bearer authentication required
344
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
345
+ if (type !== undefined) {
346
+ localVarQueryParameter['type'] = type;
347
+ }
348
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
349
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
350
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
351
+ return {
352
+ url: toPathString(localVarUrlObj),
353
+ options: localVarRequestOptions,
354
+ };
355
+ }),
356
+ };
357
+ };
358
+ /**
359
+ * EnergyCostControllerApi - functional programming interface
360
+ * @export
361
+ */
362
+ export const EnergyCostControllerApiFp = function (configuration) {
363
+ const localVarAxiosParamCreator = EnergyCostControllerApiAxiosParamCreator(configuration);
364
+ return {
365
+ /**
366
+ *
367
+ * @summary 新增能源消耗-提交
368
+ * @param {EnergyCostConfirmRecordDTO} energyCostConfirmRecordDTO
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ energyCostAddRecordConfirm(energyCostConfirmRecordDTO, options) {
373
+ return __awaiter(this, void 0, void 0, function* () {
374
+ var _a, _b, _c;
375
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordConfirm(energyCostConfirmRecordDTO, options);
376
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
377
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostAddRecordConfirm']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
378
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
379
+ });
380
+ },
381
+ /**
382
+ *
383
+ * @summary 新增能源消耗-返回详情
384
+ * @param {number} id
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ energyCostAddRecordDetail(id, options) {
389
+ return __awaiter(this, void 0, void 0, function* () {
390
+ var _a, _b, _c;
391
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordDetail(id, options);
392
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
393
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostAddRecordDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
394
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
395
+ });
396
+ },
397
+ /**
398
+ *
399
+ * @summary 新增能源消耗-录入
400
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
401
+ * @param {*} [options] Override http request option.
402
+ * @throws {RequiredError}
403
+ */
404
+ energyCostAddRecordInput(energyCostAddRecordDTO, options) {
405
+ return __awaiter(this, void 0, void 0, function* () {
406
+ var _a, _b, _c;
407
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordInput(energyCostAddRecordDTO, options);
408
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
409
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostAddRecordInput']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
410
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
411
+ });
412
+ },
413
+ /**
414
+ *
415
+ * @summary 新增能源消耗-录入保存为草稿
416
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ energyCostAddRecordInputDraft(energyCostAddRecordDTO, options) {
421
+ return __awaiter(this, void 0, void 0, function* () {
422
+ var _a, _b, _c;
423
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordInputDraft(energyCostAddRecordDTO, options);
424
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
425
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostAddRecordInputDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
426
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
427
+ });
428
+ },
429
+ /**
430
+ *
431
+ * @summary 新增能源消耗-列表
432
+ * @param {number} [page]
433
+ * @param {number} [size]
434
+ * @param {string} [billNo]
435
+ * @param {string} [startTime]
436
+ * @param {string} [endTime]
437
+ * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
438
+ * @param {number} [status]
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ */
442
+ energyCostAddRecordList(page, size, billNo, startTime, endTime, energyType, status, options) {
443
+ return __awaiter(this, void 0, void 0, function* () {
444
+ var _a, _b, _c;
445
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordList(page, size, billNo, startTime, endTime, energyType, status, options);
446
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
447
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostAddRecordList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
448
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
449
+ });
450
+ },
451
+ /**
452
+ *
453
+ * @summary 新增能源费用管理设置-单条新增
454
+ * @param {EnergyCostAddSettingDTO} energyCostAddSettingDTO
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ energyCostMonthSettingAdd(energyCostAddSettingDTO, options) {
459
+ return __awaiter(this, void 0, void 0, function* () {
460
+ var _a, _b, _c;
461
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingAdd(energyCostAddSettingDTO, options);
462
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
463
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostMonthSettingAdd']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
464
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
465
+ });
466
+ },
467
+ /**
468
+ *
469
+ * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
470
+ * @param {string} [startTime]
471
+ * @param {string} [endTime]
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ energyCostMonthSettingList(startTime, endTime, options) {
476
+ return __awaiter(this, void 0, void 0, function* () {
477
+ var _a, _b, _c;
478
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingList(startTime, endTime, options);
479
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
480
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostMonthSettingList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
481
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
482
+ });
483
+ },
484
+ /**
485
+ *
486
+ * @summary 新增能源费用管理设置-单条修改
487
+ * @param {EnergyCostUpdateSettingDTO} energyCostUpdateSettingDTO
488
+ * @param {*} [options] Override http request option.
489
+ * @throws {RequiredError}
490
+ */
491
+ energyCostMonthSettingUpdate(energyCostUpdateSettingDTO, options) {
492
+ return __awaiter(this, void 0, void 0, function* () {
493
+ var _a, _b, _c;
494
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostMonthSettingUpdate(energyCostUpdateSettingDTO, options);
495
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
496
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.energyCostMonthSettingUpdate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
497
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
498
+ });
499
+ },
500
+ /**
501
+ *
502
+ * @summary 获取下拉框内容
503
+ * @param {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
504
+ * @param {*} [options] Override http request option.
505
+ * @throws {RequiredError}
506
+ */
507
+ getOptions(type, options) {
508
+ return __awaiter(this, void 0, void 0, function* () {
509
+ var _a, _b, _c;
510
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptions(type, options);
511
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
512
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostControllerApi.getOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
513
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
514
+ });
515
+ },
516
+ };
517
+ };
518
+ /**
519
+ * EnergyCostControllerApi - factory interface
520
+ * @export
521
+ */
522
+ export const EnergyCostControllerApiFactory = function (configuration, basePath, axios) {
523
+ const localVarFp = EnergyCostControllerApiFp(configuration);
524
+ return {
525
+ /**
526
+ *
527
+ * @summary 新增能源消耗-提交
528
+ * @param {EnergyCostControllerApiEnergyCostAddRecordConfirmRequest} requestParameters Request parameters.
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ energyCostAddRecordConfirm(requestParameters, options) {
533
+ return localVarFp.energyCostAddRecordConfirm(requestParameters.energyCostConfirmRecordDTO, options).then((request) => request(axios, basePath));
534
+ },
535
+ /**
536
+ *
537
+ * @summary 新增能源消耗-返回详情
538
+ * @param {EnergyCostControllerApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ */
542
+ energyCostAddRecordDetail(requestParameters, options) {
543
+ return localVarFp.energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(axios, basePath));
544
+ },
545
+ /**
546
+ *
547
+ * @summary 新增能源消耗-录入
548
+ * @param {EnergyCostControllerApiEnergyCostAddRecordInputRequest} requestParameters Request parameters.
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ energyCostAddRecordInput(requestParameters, options) {
553
+ return localVarFp.energyCostAddRecordInput(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
554
+ },
555
+ /**
556
+ *
557
+ * @summary 新增能源消耗-录入保存为草稿
558
+ * @param {EnergyCostControllerApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ energyCostAddRecordInputDraft(requestParameters, options) {
563
+ return localVarFp.energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
564
+ },
565
+ /**
566
+ *
567
+ * @summary 新增能源消耗-列表
568
+ * @param {EnergyCostControllerApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
569
+ * @param {*} [options] Override http request option.
570
+ * @throws {RequiredError}
571
+ */
572
+ energyCostAddRecordList(requestParameters = {}, options) {
573
+ return localVarFp.energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billNo, requestParameters.startTime, requestParameters.endTime, requestParameters.energyType, requestParameters.status, options).then((request) => request(axios, basePath));
574
+ },
575
+ /**
576
+ *
577
+ * @summary 新增能源费用管理设置-单条新增
578
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingAddRequest} requestParameters Request parameters.
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ energyCostMonthSettingAdd(requestParameters, options) {
583
+ return localVarFp.energyCostMonthSettingAdd(requestParameters.energyCostAddSettingDTO, options).then((request) => request(axios, basePath));
584
+ },
585
+ /**
586
+ *
587
+ * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
588
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingListRequest} requestParameters Request parameters.
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ */
592
+ energyCostMonthSettingList(requestParameters = {}, options) {
593
+ return localVarFp.energyCostMonthSettingList(requestParameters.startTime, requestParameters.endTime, options).then((request) => request(axios, basePath));
594
+ },
595
+ /**
596
+ *
597
+ * @summary 新增能源费用管理设置-单条修改
598
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest} requestParameters Request parameters.
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ */
602
+ energyCostMonthSettingUpdate(requestParameters, options) {
603
+ return localVarFp.energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(axios, basePath));
604
+ },
605
+ /**
606
+ *
607
+ * @summary 获取下拉框内容
608
+ * @param {EnergyCostControllerApiGetOptionsRequest} requestParameters Request parameters.
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ getOptions(requestParameters = {}, options) {
613
+ return localVarFp.getOptions(requestParameters.type, options).then((request) => request(axios, basePath));
614
+ },
615
+ };
616
+ };
617
+ /**
618
+ * EnergyCostControllerApi - object-oriented interface
619
+ * @export
620
+ * @class EnergyCostControllerApi
621
+ * @extends {BaseAPI}
622
+ */
623
+ export class EnergyCostControllerApi extends BaseAPI {
624
+ /**
625
+ *
626
+ * @summary 新增能源消耗-提交
627
+ * @param {EnergyCostControllerApiEnergyCostAddRecordConfirmRequest} requestParameters Request parameters.
628
+ * @param {*} [options] Override http request option.
629
+ * @throws {RequiredError}
630
+ * @memberof EnergyCostControllerApi
631
+ */
632
+ energyCostAddRecordConfirm(requestParameters, options) {
633
+ return EnergyCostControllerApiFp(this.configuration).energyCostAddRecordConfirm(requestParameters.energyCostConfirmRecordDTO, options).then((request) => request(this.axios, this.basePath));
634
+ }
635
+ /**
636
+ *
637
+ * @summary 新增能源消耗-返回详情
638
+ * @param {EnergyCostControllerApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ * @memberof EnergyCostControllerApi
642
+ */
643
+ energyCostAddRecordDetail(requestParameters, options) {
644
+ return EnergyCostControllerApiFp(this.configuration).energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
645
+ }
646
+ /**
647
+ *
648
+ * @summary 新增能源消耗-录入
649
+ * @param {EnergyCostControllerApiEnergyCostAddRecordInputRequest} requestParameters Request parameters.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ * @memberof EnergyCostControllerApi
653
+ */
654
+ energyCostAddRecordInput(requestParameters, options) {
655
+ return EnergyCostControllerApiFp(this.configuration).energyCostAddRecordInput(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
656
+ }
657
+ /**
658
+ *
659
+ * @summary 新增能源消耗-录入保存为草稿
660
+ * @param {EnergyCostControllerApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ * @memberof EnergyCostControllerApi
664
+ */
665
+ energyCostAddRecordInputDraft(requestParameters, options) {
666
+ return EnergyCostControllerApiFp(this.configuration).energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
667
+ }
668
+ /**
669
+ *
670
+ * @summary 新增能源消耗-列表
671
+ * @param {EnergyCostControllerApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ * @memberof EnergyCostControllerApi
675
+ */
676
+ energyCostAddRecordList(requestParameters = {}, options) {
677
+ return EnergyCostControllerApiFp(this.configuration).energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billNo, requestParameters.startTime, requestParameters.endTime, requestParameters.energyType, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
678
+ }
679
+ /**
680
+ *
681
+ * @summary 新增能源费用管理设置-单条新增
682
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingAddRequest} requestParameters Request parameters.
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ * @memberof EnergyCostControllerApi
686
+ */
687
+ energyCostMonthSettingAdd(requestParameters, options) {
688
+ return EnergyCostControllerApiFp(this.configuration).energyCostMonthSettingAdd(requestParameters.energyCostAddSettingDTO, options).then((request) => request(this.axios, this.basePath));
689
+ }
690
+ /**
691
+ *
692
+ * @summary 新增能源费用管理设置-列表-默认当前筛选前后一年
693
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingListRequest} requestParameters Request parameters.
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ * @memberof EnergyCostControllerApi
697
+ */
698
+ energyCostMonthSettingList(requestParameters = {}, options) {
699
+ return EnergyCostControllerApiFp(this.configuration).energyCostMonthSettingList(requestParameters.startTime, requestParameters.endTime, options).then((request) => request(this.axios, this.basePath));
700
+ }
701
+ /**
702
+ *
703
+ * @summary 新增能源费用管理设置-单条修改
704
+ * @param {EnergyCostControllerApiEnergyCostMonthSettingUpdateRequest} requestParameters Request parameters.
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ * @memberof EnergyCostControllerApi
708
+ */
709
+ energyCostMonthSettingUpdate(requestParameters, options) {
710
+ return EnergyCostControllerApiFp(this.configuration).energyCostMonthSettingUpdate(requestParameters.energyCostUpdateSettingDTO, options).then((request) => request(this.axios, this.basePath));
711
+ }
712
+ /**
713
+ *
714
+ * @summary 获取下拉框内容
715
+ * @param {EnergyCostControllerApiGetOptionsRequest} requestParameters Request parameters.
716
+ * @param {*} [options] Override http request option.
717
+ * @throws {RequiredError}
718
+ * @memberof EnergyCostControllerApi
719
+ */
720
+ getOptions(requestParameters = {}, options) {
721
+ return EnergyCostControllerApiFp(this.configuration).getOptions(requestParameters.type, options).then((request) => request(this.axios, this.basePath));
722
+ }
723
+ }
724
+ /**
725
+ * @export
726
+ */
727
+ export const EnergyCostAddRecordListEnergyTypeEnum = {
728
+ Electric: 'ELECTRIC',
729
+ Water: 'WATER'
730
+ };