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

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