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

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 (51) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/api.ts +1 -0
  3. package/apis/energy-cost-controller-api.ts +158 -474
  4. package/apis/energy-cost-record-controller-api.ts +686 -0
  5. package/dist/api.d.ts +1 -0
  6. package/dist/api.js +1 -0
  7. package/dist/apis/energy-cost-controller-api.d.ts +111 -282
  8. package/dist/apis/energy-cost-controller-api.js +111 -337
  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 +1 -0
  12. package/dist/esm/api.js +1 -0
  13. package/dist/esm/apis/energy-cost-controller-api.d.ts +111 -282
  14. package/dist/esm/apis/energy-cost-controller-api.js +110 -336
  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-month-setting-list-summary-standards-vo.d.ts +96 -0
  18. package/dist/esm/models/energy-cost-month-setting-list-summary-standards-vo.js +23 -0
  19. package/dist/esm/models/energy-cost-month-setting-list-vo.d.ts +30 -25
  20. package/dist/esm/models/energy-cost-month-setting-list-vo.js +4 -1
  21. package/dist/esm/models/energy-cost-setting-summy-add-dto.d.ts +41 -0
  22. package/dist/esm/models/energy-cost-setting-summy-add-dto.js +17 -0
  23. package/dist/esm/models/energy-cost-setting-summy-update-dto.d.ts +47 -0
  24. package/dist/esm/models/energy-cost-setting-summy-update-dto.js +17 -0
  25. package/dist/esm/models/index.d.ts +4 -0
  26. package/dist/esm/models/index.js +4 -0
  27. package/dist/esm/models/ipage-energy-cost-record-info-vo.d.ts +3 -3
  28. package/dist/esm/models/json-result-list-energy-cost-month-setting-list-summary-standards-vo.d.ts +62 -0
  29. package/dist/esm/models/json-result-list-energy-cost-month-setting-list-summary-standards-vo.js +14 -0
  30. package/dist/models/energy-cost-month-setting-list-summary-standards-vo.d.ts +96 -0
  31. package/dist/models/energy-cost-month-setting-list-summary-standards-vo.js +26 -0
  32. package/dist/models/energy-cost-month-setting-list-vo.d.ts +30 -25
  33. package/dist/models/energy-cost-month-setting-list-vo.js +5 -0
  34. package/dist/models/energy-cost-setting-summy-add-dto.d.ts +41 -0
  35. package/dist/models/energy-cost-setting-summy-add-dto.js +20 -0
  36. package/dist/models/energy-cost-setting-summy-update-dto.d.ts +47 -0
  37. package/dist/models/energy-cost-setting-summy-update-dto.js +20 -0
  38. package/dist/models/index.d.ts +4 -0
  39. package/dist/models/index.js +4 -0
  40. package/dist/models/ipage-energy-cost-record-info-vo.d.ts +3 -3
  41. package/dist/models/json-result-list-energy-cost-month-setting-list-summary-standards-vo.d.ts +62 -0
  42. package/dist/models/json-result-list-energy-cost-month-setting-list-summary-standards-vo.js +15 -0
  43. package/models/energy-cost-month-setting-list-summary-standards-vo.ts +106 -0
  44. package/models/energy-cost-month-setting-list-vo.ts +33 -25
  45. package/models/energy-cost-setting-summy-add-dto.ts +50 -0
  46. package/models/energy-cost-setting-summy-update-dto.ts +56 -0
  47. package/models/index.ts +4 -0
  48. package/models/ipage-energy-cost-record-info-vo.ts +3 -3
  49. package/models/json-result-list-energy-cost-month-setting-list-summary-standards-vo.ts +72 -0
  50. package/ossutil.log +1056 -1050
  51. package/package.json +1 -1
@@ -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
+ };
@@ -0,0 +1,96 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * 能源费用管理-月度设置列表-汇总列表
14
+ * @export
15
+ * @interface EnergyCostMonthSettingListSummaryStandardsVO
16
+ */
17
+ export interface EnergyCostMonthSettingListSummaryStandardsVO {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
22
+ */
23
+ 'id'?: number;
24
+ /**
25
+ * 园区id
26
+ * @type {number}
27
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
28
+ */
29
+ 'parkId'?: number;
30
+ /**
31
+ * 能源类型
32
+ * @type {string}
33
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
34
+ */
35
+ 'energyType'?: EnergyCostMonthSettingListSummaryStandardsVOEnergyTypeEnum;
36
+ /**
37
+ * 能源类型单位
38
+ * @type {string}
39
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
40
+ */
41
+ 'energyTypeUnit'?: string;
42
+ /**
43
+ * 使用场景
44
+ * @type {string}
45
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
46
+ */
47
+ 'usageScenariosType'?: EnergyCostMonthSettingListSummaryStandardsVOUsageScenariosTypeEnum;
48
+ /**
49
+ * 标准值
50
+ * @type {number}
51
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
52
+ */
53
+ 'standardValue'?: number;
54
+ /**
55
+ * 年月
56
+ * @type {string}
57
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
58
+ */
59
+ 'yearMonths'?: string;
60
+ /**
61
+ * 年
62
+ * @type {string}
63
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
64
+ */
65
+ 'year'?: string;
66
+ /**
67
+ * 月
68
+ * @type {string}
69
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
70
+ */
71
+ 'month'?: string;
72
+ /**
73
+ * 创建时间
74
+ * @type {string}
75
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
76
+ */
77
+ 'createTime'?: string;
78
+ /**
79
+ * 更新时间
80
+ * @type {string}
81
+ * @memberof EnergyCostMonthSettingListSummaryStandardsVO
82
+ */
83
+ 'updateTime'?: string;
84
+ }
85
+ export declare const EnergyCostMonthSettingListSummaryStandardsVOEnergyTypeEnum: {
86
+ readonly Electric: "ELECTRIC";
87
+ readonly Water: "WATER";
88
+ };
89
+ export type EnergyCostMonthSettingListSummaryStandardsVOEnergyTypeEnum = typeof EnergyCostMonthSettingListSummaryStandardsVOEnergyTypeEnum[keyof typeof EnergyCostMonthSettingListSummaryStandardsVOEnergyTypeEnum];
90
+ export declare const EnergyCostMonthSettingListSummaryStandardsVOUsageScenariosTypeEnum: {
91
+ readonly ColdStorage: "COLD_STORAGE";
92
+ readonly SmartWarehouse: "SMART_WAREHOUSE";
93
+ readonly LeasingTenant: "LEASING_TENANT";
94
+ readonly PrivateConventionalWarehouse: "PRIVATE_CONVENTIONAL_WAREHOUSE";
95
+ };
96
+ export type EnergyCostMonthSettingListSummaryStandardsVOUsageScenariosTypeEnum = typeof EnergyCostMonthSettingListSummaryStandardsVOUsageScenariosTypeEnum[keyof typeof EnergyCostMonthSettingListSummaryStandardsVOUsageScenariosTypeEnum];
@@ -0,0 +1,23 @@
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 EnergyCostMonthSettingListSummaryStandardsVOEnergyTypeEnum = {
15
+ Electric: 'ELECTRIC',
16
+ Water: 'WATER'
17
+ };
18
+ export const EnergyCostMonthSettingListSummaryStandardsVOUsageScenariosTypeEnum = {
19
+ ColdStorage: 'COLD_STORAGE',
20
+ SmartWarehouse: 'SMART_WAREHOUSE',
21
+ LeasingTenant: 'LEASING_TENANT',
22
+ PrivateConventionalWarehouse: 'PRIVATE_CONVENTIONAL_WAREHOUSE'
23
+ };