@gizone/rrs-client 4.2.9-alpha.539 → 4.2.9-alpha.541

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 (63) hide show
  1. package/.openapi-generator/FILES +5 -1
  2. package/api.ts +2 -1
  3. package/apis/energy-cost-controller-api.ts +769 -0
  4. package/apis/energy-cost-record-controller-api.ts +686 -0
  5. package/dist/api.d.ts +2 -1
  6. package/dist/api.js +2 -1
  7. package/dist/apis/energy-cost-controller-api.d.ts +418 -0
  8. package/dist/apis/energy-cost-controller-api.js +595 -0
  9. package/dist/apis/energy-cost-record-controller-api.d.ts +377 -0
  10. package/dist/apis/energy-cost-record-controller-api.js +523 -0
  11. package/dist/esm/api.d.ts +2 -1
  12. package/dist/esm/api.js +2 -1
  13. package/dist/esm/apis/energy-cost-controller-api.d.ts +418 -0
  14. package/dist/esm/apis/energy-cost-controller-api.js +588 -0
  15. package/dist/esm/apis/energy-cost-record-controller-api.d.ts +377 -0
  16. package/dist/esm/apis/energy-cost-record-controller-api.js +516 -0
  17. package/dist/esm/models/energy-cost-add-record-dto.d.ts +7 -0
  18. package/dist/esm/models/energy-cost-add-setting-dto.d.ts +4 -39
  19. package/dist/esm/models/energy-cost-add-setting-dto.js +1 -10
  20. package/dist/esm/models/energy-cost-setting-delete-dto.d.ts +41 -0
  21. package/dist/esm/models/energy-cost-setting-delete-dto.js +17 -0
  22. package/dist/esm/models/energy-cost-update-setting-dto.d.ts +1 -1
  23. package/dist/esm/models/index.d.ts +3 -0
  24. package/dist/esm/models/index.js +3 -0
  25. package/dist/esm/models/ipage-energy-cost-record-info-vo.d.ts +5 -5
  26. package/dist/esm/models/item.d.ts +4 -4
  27. package/dist/esm/models/park-setting.d.ts +42 -0
  28. package/dist/esm/models/park-setting.js +17 -0
  29. package/dist/esm/models/pricing-item.d.ts +50 -0
  30. package/dist/esm/models/pricing-item.js +20 -0
  31. package/dist/esm/models/sys-user.d.ts +4 -4
  32. package/dist/models/energy-cost-add-record-dto.d.ts +7 -0
  33. package/dist/models/energy-cost-add-setting-dto.d.ts +4 -39
  34. package/dist/models/energy-cost-add-setting-dto.js +0 -11
  35. package/dist/models/energy-cost-setting-delete-dto.d.ts +41 -0
  36. package/dist/models/energy-cost-setting-delete-dto.js +20 -0
  37. package/dist/models/energy-cost-update-setting-dto.d.ts +1 -1
  38. package/dist/models/index.d.ts +3 -0
  39. package/dist/models/index.js +3 -0
  40. package/dist/models/ipage-energy-cost-record-info-vo.d.ts +5 -5
  41. package/dist/models/item.d.ts +4 -4
  42. package/dist/models/park-setting.d.ts +42 -0
  43. package/dist/models/park-setting.js +20 -0
  44. package/dist/models/pricing-item.d.ts +50 -0
  45. package/dist/models/pricing-item.js +23 -0
  46. package/dist/models/sys-user.d.ts +4 -4
  47. package/models/energy-cost-add-record-dto.ts +9 -0
  48. package/models/energy-cost-add-setting-dto.ts +6 -43
  49. package/models/energy-cost-setting-delete-dto.ts +50 -0
  50. package/models/energy-cost-update-setting-dto.ts +1 -1
  51. package/models/index.ts +3 -0
  52. package/models/ipage-energy-cost-record-info-vo.ts +5 -5
  53. package/models/item.ts +4 -4
  54. package/models/park-setting.ts +53 -0
  55. package/models/pricing-item.ts +59 -0
  56. package/models/sys-user.ts +4 -4
  57. package/ossutil.log +1056 -1056
  58. package/package.json +1 -1
  59. package/apis/default-api.ts +0 -1302
  60. package/dist/apis/default-api.d.ts +0 -707
  61. package/dist/apis/default-api.js +0 -979
  62. package/dist/esm/apis/default-api.d.ts +0 -707
  63. package/dist/esm/apis/default-api.js +0 -972
@@ -0,0 +1,516 @@
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
+ * EnergyCostRecordControllerApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const EnergyCostRecordControllerApiAxiosParamCreator = 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 {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ getOptions: (type_1, ...args_1) => __awaiter(this, [type_1, ...args_1], void 0, function* (type, options = {}) {
230
+ const localVarPath = `/gizone/energy/cost/record/getOptions`;
231
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
232
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
233
+ let baseOptions;
234
+ if (configuration) {
235
+ baseOptions = configuration.baseOptions;
236
+ }
237
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
238
+ const localVarHeaderParameter = {};
239
+ const localVarQueryParameter = {};
240
+ // authentication tokenScheme required
241
+ // http bearer authentication required
242
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
243
+ if (type !== undefined) {
244
+ localVarQueryParameter['type'] = type;
245
+ }
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
+ return {
250
+ url: toPathString(localVarUrlObj),
251
+ options: localVarRequestOptions,
252
+ };
253
+ }),
254
+ };
255
+ };
256
+ /**
257
+ * EnergyCostRecordControllerApi - functional programming interface
258
+ * @export
259
+ */
260
+ export const EnergyCostRecordControllerApiFp = function (configuration) {
261
+ const localVarAxiosParamCreator = EnergyCostRecordControllerApiAxiosParamCreator(configuration);
262
+ return {
263
+ /**
264
+ *
265
+ * @summary 新增能源消耗-返回详情
266
+ * @param {number} id
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ */
270
+ energyCostAddRecordDetail(id, options) {
271
+ return __awaiter(this, void 0, void 0, function* () {
272
+ var _a, _b, _c;
273
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordDetail(id, options);
274
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
275
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
276
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
277
+ });
278
+ },
279
+ /**
280
+ *
281
+ * @summary 新增能源消耗-录入保存为草稿
282
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ energyCostAddRecordInputDraft(energyCostAddRecordDTO, options) {
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ var _a, _b, _c;
289
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordInputDraft(energyCostAddRecordDTO, options);
290
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
291
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordInputDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
292
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
293
+ });
294
+ },
295
+ /**
296
+ *
297
+ * @summary 新增能源消耗-列表
298
+ * @param {number} [page]
299
+ * @param {number} [size]
300
+ * @param {string} [billCode]
301
+ * @param {string} [startTime]
302
+ * @param {string} [endTime]
303
+ * @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
304
+ * @param {number} [status]
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ energyCostAddRecordList(page, size, billCode, startTime, endTime, energyType, status, options) {
309
+ return __awaiter(this, void 0, void 0, function* () {
310
+ var _a, _b, _c;
311
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordList(page, size, billCode, startTime, endTime, energyType, status, options);
312
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
313
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
314
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
315
+ });
316
+ },
317
+ /**
318
+ *
319
+ * @summary 新增能源消耗-next
320
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ energyCostAddRecordNext(energyCostAddRecordDTO, options) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ var _a, _b, _c;
327
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordNext(energyCostAddRecordDTO, options);
328
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
329
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordNext']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
330
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
331
+ });
332
+ },
333
+ /**
334
+ *
335
+ * @summary 新增能源消耗-提交
336
+ * @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ energyCostAddRecordSubmit(energyCostAddRecordDTO, options) {
341
+ return __awaiter(this, void 0, void 0, function* () {
342
+ var _a, _b, _c;
343
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordSubmit(energyCostAddRecordDTO, options);
344
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
345
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordSubmit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
346
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
347
+ });
348
+ },
349
+ /**
350
+ *
351
+ * @summary 获取下拉框内容
352
+ * @param {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ getOptions(type, options) {
357
+ return __awaiter(this, void 0, void 0, function* () {
358
+ var _a, _b, _c;
359
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptions(type, options);
360
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
361
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnergyCostRecordControllerApi.getOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
362
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
363
+ });
364
+ },
365
+ };
366
+ };
367
+ /**
368
+ * EnergyCostRecordControllerApi - factory interface
369
+ * @export
370
+ */
371
+ export const EnergyCostRecordControllerApiFactory = function (configuration, basePath, axios) {
372
+ const localVarFp = EnergyCostRecordControllerApiFp(configuration);
373
+ return {
374
+ /**
375
+ *
376
+ * @summary 新增能源消耗-返回详情
377
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ */
381
+ energyCostAddRecordDetail(requestParameters, options) {
382
+ return localVarFp.energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(axios, basePath));
383
+ },
384
+ /**
385
+ *
386
+ * @summary 新增能源消耗-录入保存为草稿
387
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ energyCostAddRecordInputDraft(requestParameters, options) {
392
+ return localVarFp.energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
393
+ },
394
+ /**
395
+ *
396
+ * @summary 新增能源消耗-列表
397
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ */
401
+ energyCostAddRecordList(requestParameters = {}, options) {
402
+ return localVarFp.energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billCode, requestParameters.startTime, requestParameters.endTime, requestParameters.energyType, requestParameters.status, options).then((request) => request(axios, basePath));
403
+ },
404
+ /**
405
+ *
406
+ * @summary 新增能源消耗-next
407
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordNextRequest} requestParameters Request parameters.
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ energyCostAddRecordNext(requestParameters, options) {
412
+ return localVarFp.energyCostAddRecordNext(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
413
+ },
414
+ /**
415
+ *
416
+ * @summary 新增能源消耗-提交
417
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordSubmitRequest} requestParameters Request parameters.
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ energyCostAddRecordSubmit(requestParameters, options) {
422
+ return localVarFp.energyCostAddRecordSubmit(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
423
+ },
424
+ /**
425
+ *
426
+ * @summary 获取下拉框内容
427
+ * @param {EnergyCostRecordControllerApiGetOptionsRequest} requestParameters Request parameters.
428
+ * @param {*} [options] Override http request option.
429
+ * @throws {RequiredError}
430
+ */
431
+ getOptions(requestParameters = {}, options) {
432
+ return localVarFp.getOptions(requestParameters.type, options).then((request) => request(axios, basePath));
433
+ },
434
+ };
435
+ };
436
+ /**
437
+ * EnergyCostRecordControllerApi - object-oriented interface
438
+ * @export
439
+ * @class EnergyCostRecordControllerApi
440
+ * @extends {BaseAPI}
441
+ */
442
+ export class EnergyCostRecordControllerApi extends BaseAPI {
443
+ /**
444
+ *
445
+ * @summary 新增能源消耗-返回详情
446
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ * @memberof EnergyCostRecordControllerApi
450
+ */
451
+ energyCostAddRecordDetail(requestParameters, options) {
452
+ return EnergyCostRecordControllerApiFp(this.configuration).energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
453
+ }
454
+ /**
455
+ *
456
+ * @summary 新增能源消耗-录入保存为草稿
457
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ * @memberof EnergyCostRecordControllerApi
461
+ */
462
+ energyCostAddRecordInputDraft(requestParameters, options) {
463
+ return EnergyCostRecordControllerApiFp(this.configuration).energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
464
+ }
465
+ /**
466
+ *
467
+ * @summary 新增能源消耗-列表
468
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
469
+ * @param {*} [options] Override http request option.
470
+ * @throws {RequiredError}
471
+ * @memberof EnergyCostRecordControllerApi
472
+ */
473
+ energyCostAddRecordList(requestParameters = {}, options) {
474
+ return EnergyCostRecordControllerApiFp(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));
475
+ }
476
+ /**
477
+ *
478
+ * @summary 新增能源消耗-next
479
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordNextRequest} requestParameters Request parameters.
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ * @memberof EnergyCostRecordControllerApi
483
+ */
484
+ energyCostAddRecordNext(requestParameters, options) {
485
+ return EnergyCostRecordControllerApiFp(this.configuration).energyCostAddRecordNext(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
486
+ }
487
+ /**
488
+ *
489
+ * @summary 新增能源消耗-提交
490
+ * @param {EnergyCostRecordControllerApiEnergyCostAddRecordSubmitRequest} requestParameters Request parameters.
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ * @memberof EnergyCostRecordControllerApi
494
+ */
495
+ energyCostAddRecordSubmit(requestParameters, options) {
496
+ return EnergyCostRecordControllerApiFp(this.configuration).energyCostAddRecordSubmit(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
497
+ }
498
+ /**
499
+ *
500
+ * @summary 获取下拉框内容
501
+ * @param {EnergyCostRecordControllerApiGetOptionsRequest} requestParameters Request parameters.
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ * @memberof EnergyCostRecordControllerApi
505
+ */
506
+ getOptions(requestParameters = {}, options) {
507
+ return EnergyCostRecordControllerApiFp(this.configuration).getOptions(requestParameters.type, options).then((request) => request(this.axios, this.basePath));
508
+ }
509
+ }
510
+ /**
511
+ * @export
512
+ */
513
+ export const EnergyCostAddRecordListEnergyTypeEnum = {
514
+ Electric: 'ELECTRIC',
515
+ Water: 'WATER'
516
+ };
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { Item } from './item';
13
+ import type { PricingItem } from './pricing-item';
13
14
  /**
14
15
  * 新增能源消耗记录-新增-入参
15
16
  * @export
@@ -130,6 +131,12 @@ export interface EnergyCostAddRecordDTO {
130
131
  * @memberof EnergyCostAddRecordDTO
131
132
  */
132
133
  'scenarios'?: Array<Item>;
134
+ /**
135
+ *
136
+ * @type {Array<PricingItem>}
137
+ * @memberof EnergyCostAddRecordDTO
138
+ */
139
+ 'pricingItem'?: Array<PricingItem>;
133
140
  }
134
141
  export declare const EnergyCostAddRecordDTOEnergyTypeEnum: {
135
142
  readonly Electric: "ELECTRIC";
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ParkSetting } from './park-setting';
12
13
  /**
13
14
  * 新增能源费用管理设置-新增-入参
14
15
  * @export
@@ -16,45 +17,9 @@
16
17
  */
17
18
  export interface EnergyCostAddSettingDTO {
18
19
  /**
19
- * 园区id
20
- * @type {number}
20
+ * list
21
+ * @type {Array<ParkSetting>}
21
22
  * @memberof EnergyCostAddSettingDTO
22
23
  */
23
- 'parkId': number;
24
- /**
25
- * 能源类型
26
- * @type {string}
27
- * @memberof EnergyCostAddSettingDTO
28
- */
29
- 'energyType': EnergyCostAddSettingDTOEnergyTypeEnum;
30
- /**
31
- * 标准值
32
- * @type {number}
33
- * @memberof EnergyCostAddSettingDTO
34
- */
35
- 'standardValue': number;
36
- /**
37
- * 使用场景
38
- * @type {string}
39
- * @memberof EnergyCostAddSettingDTO
40
- */
41
- 'usageScenariosType'?: EnergyCostAddSettingDTOUsageScenariosTypeEnum;
42
- /**
43
- * 日期-年月
44
- * @type {string}
45
- * @memberof EnergyCostAddSettingDTO
46
- */
47
- 'yearMonths': string;
24
+ 'parkSettingList'?: Array<ParkSetting>;
48
25
  }
49
- export declare const EnergyCostAddSettingDTOEnergyTypeEnum: {
50
- readonly Electric: "ELECTRIC";
51
- readonly Water: "WATER";
52
- };
53
- export type EnergyCostAddSettingDTOEnergyTypeEnum = typeof EnergyCostAddSettingDTOEnergyTypeEnum[keyof typeof EnergyCostAddSettingDTOEnergyTypeEnum];
54
- export declare const EnergyCostAddSettingDTOUsageScenariosTypeEnum: {
55
- readonly ColdStorage: "COLD_STORAGE";
56
- readonly SmartWarehouse: "SMART_WAREHOUSE";
57
- readonly LeasingTenant: "LEASING_TENANT";
58
- readonly PrivateConventionalWarehouse: "PRIVATE_CONVENTIONAL_WAREHOUSE";
59
- };
60
- export type EnergyCostAddSettingDTOUsageScenariosTypeEnum = typeof EnergyCostAddSettingDTOUsageScenariosTypeEnum[keyof typeof EnergyCostAddSettingDTOUsageScenariosTypeEnum];
@@ -11,13 +11,4 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- export const EnergyCostAddSettingDTOEnergyTypeEnum = {
15
- Electric: 'ELECTRIC',
16
- Water: 'WATER'
17
- };
18
- export const EnergyCostAddSettingDTOUsageScenariosTypeEnum = {
19
- ColdStorage: 'COLD_STORAGE',
20
- SmartWarehouse: 'SMART_WAREHOUSE',
21
- LeasingTenant: 'LEASING_TENANT',
22
- PrivateConventionalWarehouse: 'PRIVATE_CONVENTIONAL_WAREHOUSE'
23
- };
14
+ export {};
@@ -0,0 +1,41 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * 新增能源费用管理设置-修改-入参
14
+ * @export
15
+ * @interface EnergyCostSettingDeleteDTO
16
+ */
17
+ export interface EnergyCostSettingDeleteDTO {
18
+ /**
19
+ * 园区id
20
+ * @type {Array<number>}
21
+ * @memberof EnergyCostSettingDeleteDTO
22
+ */
23
+ 'parkIds': Array<number>;
24
+ /**
25
+ * 能源类型
26
+ * @type {string}
27
+ * @memberof EnergyCostSettingDeleteDTO
28
+ */
29
+ 'energyType': EnergyCostSettingDeleteDTOEnergyTypeEnum;
30
+ /**
31
+ * 日期-年月
32
+ * @type {string}
33
+ * @memberof EnergyCostSettingDeleteDTO
34
+ */
35
+ 'yearMonths': string;
36
+ }
37
+ export declare const EnergyCostSettingDeleteDTOEnergyTypeEnum: {
38
+ readonly Electric: "ELECTRIC";
39
+ readonly Water: "WATER";
40
+ };
41
+ export type EnergyCostSettingDeleteDTOEnergyTypeEnum = typeof EnergyCostSettingDeleteDTOEnergyTypeEnum[keyof typeof EnergyCostSettingDeleteDTOEnergyTypeEnum];
@@ -0,0 +1,17 @@
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
+ export const EnergyCostSettingDeleteDTOEnergyTypeEnum = {
15
+ Electric: 'ELECTRIC',
16
+ Water: 'WATER'
17
+ };