@gizone/rrs-client 4.2.9-alpha.539 → 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.
- package/.openapi-generator/FILES +2 -1
- package/api.ts +2 -1
- package/apis/energy-cost-controller-api.ts +678 -0
- package/apis/energy-cost-record-controller-api.ts +686 -0
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/apis/energy-cost-controller-api.d.ts +371 -0
- package/dist/apis/energy-cost-controller-api.js +525 -0
- package/dist/apis/energy-cost-record-controller-api.d.ts +377 -0
- package/dist/apis/energy-cost-record-controller-api.js +523 -0
- package/dist/esm/api.d.ts +2 -1
- package/dist/esm/api.js +2 -1
- package/dist/esm/apis/energy-cost-controller-api.d.ts +371 -0
- package/dist/esm/apis/energy-cost-controller-api.js +518 -0
- package/dist/esm/apis/energy-cost-record-controller-api.d.ts +377 -0
- package/dist/esm/apis/energy-cost-record-controller-api.js +516 -0
- package/dist/esm/models/ipage-energy-cost-record-info-vo.d.ts +6 -6
- package/dist/esm/models/sys-user.d.ts +4 -4
- package/dist/models/ipage-energy-cost-record-info-vo.d.ts +6 -6
- package/dist/models/sys-user.d.ts +4 -4
- package/models/ipage-energy-cost-record-info-vo.ts +6 -6
- package/models/sys-user.ts +4 -4
- package/ossutil.log +1056 -1056
- package/package.json +1 -1
- package/apis/default-api.ts +0 -1302
- package/dist/apis/default-api.d.ts +0 -707
- package/dist/apis/default-api.js +0 -979
- package/dist/esm/apis/default-api.d.ts +0 -707
- package/dist/esm/apis/default-api.js +0 -972
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.EnergyCostAddRecordListEnergyTypeEnum = exports.EnergyCostRecordControllerApi = exports.EnergyCostRecordControllerApiFactory = exports.EnergyCostRecordControllerApiFp = exports.EnergyCostRecordControllerApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* EnergyCostRecordControllerApi - axios parameter creator
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
const EnergyCostRecordControllerApiAxiosParamCreator = function (configuration) {
|
|
37
|
+
return {
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @summary 新增能源消耗-返回详情
|
|
41
|
+
* @param {number} id
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
energyCostAddRecordDetail: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
46
|
+
// verify required parameter 'id' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('energyCostAddRecordDetail', 'id', id);
|
|
48
|
+
const localVarPath = `/gizone/energy/cost/record/detail/{id}`
|
|
49
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
50
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
52
|
+
let baseOptions;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
}
|
|
56
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
57
|
+
const localVarHeaderParameter = {};
|
|
58
|
+
const localVarQueryParameter = {};
|
|
59
|
+
// authentication tokenScheme required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
return {
|
|
66
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @summary 新增能源消耗-录入保存为草稿
|
|
73
|
+
* @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
energyCostAddRecordInputDraft: (energyCostAddRecordDTO_1, ...args_1) => __awaiter(this, [energyCostAddRecordDTO_1, ...args_1], void 0, function* (energyCostAddRecordDTO, options = {}) {
|
|
78
|
+
// verify required parameter 'energyCostAddRecordDTO' is not null or undefined
|
|
79
|
+
(0, common_1.assertParamExists)('energyCostAddRecordInputDraft', 'energyCostAddRecordDTO', energyCostAddRecordDTO);
|
|
80
|
+
const localVarPath = `/gizone/energy/cost/record/input/draft`;
|
|
81
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
82
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
83
|
+
let baseOptions;
|
|
84
|
+
if (configuration) {
|
|
85
|
+
baseOptions = configuration.baseOptions;
|
|
86
|
+
}
|
|
87
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
88
|
+
const localVarHeaderParameter = {};
|
|
89
|
+
const localVarQueryParameter = {};
|
|
90
|
+
// authentication tokenScheme required
|
|
91
|
+
// http bearer authentication required
|
|
92
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
93
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
94
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
95
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
97
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostAddRecordDTO, localVarRequestOptions, configuration);
|
|
98
|
+
return {
|
|
99
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
}),
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary 新增能源消耗-列表
|
|
106
|
+
* @param {number} [page]
|
|
107
|
+
* @param {number} [size]
|
|
108
|
+
* @param {string} [billCode]
|
|
109
|
+
* @param {string} [startTime]
|
|
110
|
+
* @param {string} [endTime]
|
|
111
|
+
* @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
|
|
112
|
+
* @param {number} [status]
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
*/
|
|
116
|
+
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 = {}) {
|
|
117
|
+
const localVarPath = `/gizone/energy/cost/record/list`;
|
|
118
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
119
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
|
+
let baseOptions;
|
|
121
|
+
if (configuration) {
|
|
122
|
+
baseOptions = configuration.baseOptions;
|
|
123
|
+
}
|
|
124
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
125
|
+
const localVarHeaderParameter = {};
|
|
126
|
+
const localVarQueryParameter = {};
|
|
127
|
+
// authentication tokenScheme required
|
|
128
|
+
// http bearer authentication required
|
|
129
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
130
|
+
if (page !== undefined) {
|
|
131
|
+
localVarQueryParameter['page'] = page;
|
|
132
|
+
}
|
|
133
|
+
if (size !== undefined) {
|
|
134
|
+
localVarQueryParameter['size'] = size;
|
|
135
|
+
}
|
|
136
|
+
if (billCode !== undefined) {
|
|
137
|
+
localVarQueryParameter['billCode'] = billCode;
|
|
138
|
+
}
|
|
139
|
+
if (startTime !== undefined) {
|
|
140
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
141
|
+
}
|
|
142
|
+
if (endTime !== undefined) {
|
|
143
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
144
|
+
}
|
|
145
|
+
if (energyType !== undefined) {
|
|
146
|
+
localVarQueryParameter['energyType'] = energyType;
|
|
147
|
+
}
|
|
148
|
+
if (status !== undefined) {
|
|
149
|
+
localVarQueryParameter['status'] = status;
|
|
150
|
+
}
|
|
151
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
154
|
+
return {
|
|
155
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions,
|
|
157
|
+
};
|
|
158
|
+
}),
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @summary 新增能源消耗-next
|
|
162
|
+
* @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
energyCostAddRecordNext: (energyCostAddRecordDTO_1, ...args_1) => __awaiter(this, [energyCostAddRecordDTO_1, ...args_1], void 0, function* (energyCostAddRecordDTO, options = {}) {
|
|
167
|
+
// verify required parameter 'energyCostAddRecordDTO' is not null or undefined
|
|
168
|
+
(0, common_1.assertParamExists)('energyCostAddRecordNext', 'energyCostAddRecordDTO', energyCostAddRecordDTO);
|
|
169
|
+
const localVarPath = `/gizone/energy/cost/record/next`;
|
|
170
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
171
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
172
|
+
let baseOptions;
|
|
173
|
+
if (configuration) {
|
|
174
|
+
baseOptions = configuration.baseOptions;
|
|
175
|
+
}
|
|
176
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
177
|
+
const localVarHeaderParameter = {};
|
|
178
|
+
const localVarQueryParameter = {};
|
|
179
|
+
// authentication tokenScheme required
|
|
180
|
+
// http bearer authentication required
|
|
181
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
182
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
183
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
186
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostAddRecordDTO, localVarRequestOptions, configuration);
|
|
187
|
+
return {
|
|
188
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
189
|
+
options: localVarRequestOptions,
|
|
190
|
+
};
|
|
191
|
+
}),
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @summary 新增能源消耗-提交
|
|
195
|
+
* @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
energyCostAddRecordSubmit: (energyCostAddRecordDTO_1, ...args_1) => __awaiter(this, [energyCostAddRecordDTO_1, ...args_1], void 0, function* (energyCostAddRecordDTO, options = {}) {
|
|
200
|
+
// verify required parameter 'energyCostAddRecordDTO' is not null or undefined
|
|
201
|
+
(0, common_1.assertParamExists)('energyCostAddRecordSubmit', 'energyCostAddRecordDTO', energyCostAddRecordDTO);
|
|
202
|
+
const localVarPath = `/gizone/energy/cost/record/submit`;
|
|
203
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
204
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
205
|
+
let baseOptions;
|
|
206
|
+
if (configuration) {
|
|
207
|
+
baseOptions = configuration.baseOptions;
|
|
208
|
+
}
|
|
209
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
210
|
+
const localVarHeaderParameter = {};
|
|
211
|
+
const localVarQueryParameter = {};
|
|
212
|
+
// authentication tokenScheme required
|
|
213
|
+
// http bearer authentication required
|
|
214
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
215
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
216
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
217
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
219
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(energyCostAddRecordDTO, localVarRequestOptions, configuration);
|
|
220
|
+
return {
|
|
221
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
222
|
+
options: localVarRequestOptions,
|
|
223
|
+
};
|
|
224
|
+
}),
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @summary 获取下拉框内容
|
|
228
|
+
* @param {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
getOptions: (type_1, ...args_1) => __awaiter(this, [type_1, ...args_1], void 0, function* (type, options = {}) {
|
|
233
|
+
const localVarPath = `/gizone/energy/cost/record/getOptions`;
|
|
234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
235
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
236
|
+
let baseOptions;
|
|
237
|
+
if (configuration) {
|
|
238
|
+
baseOptions = configuration.baseOptions;
|
|
239
|
+
}
|
|
240
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
241
|
+
const localVarHeaderParameter = {};
|
|
242
|
+
const localVarQueryParameter = {};
|
|
243
|
+
// authentication tokenScheme required
|
|
244
|
+
// http bearer authentication required
|
|
245
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
246
|
+
if (type !== undefined) {
|
|
247
|
+
localVarQueryParameter['type'] = type;
|
|
248
|
+
}
|
|
249
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
251
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
252
|
+
return {
|
|
253
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
254
|
+
options: localVarRequestOptions,
|
|
255
|
+
};
|
|
256
|
+
}),
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
exports.EnergyCostRecordControllerApiAxiosParamCreator = EnergyCostRecordControllerApiAxiosParamCreator;
|
|
260
|
+
/**
|
|
261
|
+
* EnergyCostRecordControllerApi - functional programming interface
|
|
262
|
+
* @export
|
|
263
|
+
*/
|
|
264
|
+
const EnergyCostRecordControllerApiFp = function (configuration) {
|
|
265
|
+
const localVarAxiosParamCreator = (0, exports.EnergyCostRecordControllerApiAxiosParamCreator)(configuration);
|
|
266
|
+
return {
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @summary 新增能源消耗-返回详情
|
|
270
|
+
* @param {number} id
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
energyCostAddRecordDetail(id, options) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
var _a, _b, _c;
|
|
277
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordDetail(id, options);
|
|
278
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
279
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordDetail']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
280
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
281
|
+
});
|
|
282
|
+
},
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @summary 新增能源消耗-录入保存为草稿
|
|
286
|
+
* @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
energyCostAddRecordInputDraft(energyCostAddRecordDTO, options) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
var _a, _b, _c;
|
|
293
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordInputDraft(energyCostAddRecordDTO, options);
|
|
294
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
295
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordInputDraft']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
296
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
297
|
+
});
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
* @summary 新增能源消耗-列表
|
|
302
|
+
* @param {number} [page]
|
|
303
|
+
* @param {number} [size]
|
|
304
|
+
* @param {string} [billCode]
|
|
305
|
+
* @param {string} [startTime]
|
|
306
|
+
* @param {string} [endTime]
|
|
307
|
+
* @param {EnergyCostAddRecordListEnergyTypeEnum} [energyType]
|
|
308
|
+
* @param {number} [status]
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
energyCostAddRecordList(page, size, billCode, startTime, endTime, energyType, status, options) {
|
|
313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
314
|
+
var _a, _b, _c;
|
|
315
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordList(page, size, billCode, startTime, endTime, energyType, status, options);
|
|
316
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
317
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
318
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
319
|
+
});
|
|
320
|
+
},
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @summary 新增能源消耗-next
|
|
324
|
+
* @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
energyCostAddRecordNext(energyCostAddRecordDTO, options) {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
var _a, _b, _c;
|
|
331
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordNext(energyCostAddRecordDTO, options);
|
|
332
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
333
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordNext']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
334
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
335
|
+
});
|
|
336
|
+
},
|
|
337
|
+
/**
|
|
338
|
+
*
|
|
339
|
+
* @summary 新增能源消耗-提交
|
|
340
|
+
* @param {EnergyCostAddRecordDTO} energyCostAddRecordDTO
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
energyCostAddRecordSubmit(energyCostAddRecordDTO, options) {
|
|
345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
346
|
+
var _a, _b, _c;
|
|
347
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.energyCostAddRecordSubmit(energyCostAddRecordDTO, options);
|
|
348
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
349
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostRecordControllerApi.energyCostAddRecordSubmit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
350
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
351
|
+
});
|
|
352
|
+
},
|
|
353
|
+
/**
|
|
354
|
+
*
|
|
355
|
+
* @summary 获取下拉框内容
|
|
356
|
+
* @param {string} [type] 能源类型<energyType> 账单来源(类型电)<billSourceElectric> 账单来源(类型水)<billSourceWater> 单价类型 <pricingTypeEnum>
|
|
357
|
+
* @param {*} [options] Override http request option.
|
|
358
|
+
* @throws {RequiredError}
|
|
359
|
+
*/
|
|
360
|
+
getOptions(type, options) {
|
|
361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
362
|
+
var _a, _b, _c;
|
|
363
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptions(type, options);
|
|
364
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
365
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnergyCostRecordControllerApi.getOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
366
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
367
|
+
});
|
|
368
|
+
},
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
exports.EnergyCostRecordControllerApiFp = EnergyCostRecordControllerApiFp;
|
|
372
|
+
/**
|
|
373
|
+
* EnergyCostRecordControllerApi - factory interface
|
|
374
|
+
* @export
|
|
375
|
+
*/
|
|
376
|
+
const EnergyCostRecordControllerApiFactory = function (configuration, basePath, axios) {
|
|
377
|
+
const localVarFp = (0, exports.EnergyCostRecordControllerApiFp)(configuration);
|
|
378
|
+
return {
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @summary 新增能源消耗-返回详情
|
|
382
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
*/
|
|
386
|
+
energyCostAddRecordDetail(requestParameters, options) {
|
|
387
|
+
return localVarFp.energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
388
|
+
},
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @summary 新增能源消耗-录入保存为草稿
|
|
392
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
energyCostAddRecordInputDraft(requestParameters, options) {
|
|
397
|
+
return localVarFp.energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
|
|
398
|
+
},
|
|
399
|
+
/**
|
|
400
|
+
*
|
|
401
|
+
* @summary 新增能源消耗-列表
|
|
402
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
energyCostAddRecordList(requestParameters = {}, options) {
|
|
407
|
+
return localVarFp.energyCostAddRecordList(requestParameters.page, requestParameters.size, requestParameters.billCode, requestParameters.startTime, requestParameters.endTime, requestParameters.energyType, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
408
|
+
},
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @summary 新增能源消耗-next
|
|
412
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordNextRequest} requestParameters Request parameters.
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
*/
|
|
416
|
+
energyCostAddRecordNext(requestParameters, options) {
|
|
417
|
+
return localVarFp.energyCostAddRecordNext(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
|
|
418
|
+
},
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @summary 新增能源消耗-提交
|
|
422
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordSubmitRequest} requestParameters Request parameters.
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
energyCostAddRecordSubmit(requestParameters, options) {
|
|
427
|
+
return localVarFp.energyCostAddRecordSubmit(requestParameters.energyCostAddRecordDTO, options).then((request) => request(axios, basePath));
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
*
|
|
431
|
+
* @summary 获取下拉框内容
|
|
432
|
+
* @param {EnergyCostRecordControllerApiGetOptionsRequest} requestParameters Request parameters.
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
getOptions(requestParameters = {}, options) {
|
|
437
|
+
return localVarFp.getOptions(requestParameters.type, options).then((request) => request(axios, basePath));
|
|
438
|
+
},
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
exports.EnergyCostRecordControllerApiFactory = EnergyCostRecordControllerApiFactory;
|
|
442
|
+
/**
|
|
443
|
+
* EnergyCostRecordControllerApi - object-oriented interface
|
|
444
|
+
* @export
|
|
445
|
+
* @class EnergyCostRecordControllerApi
|
|
446
|
+
* @extends {BaseAPI}
|
|
447
|
+
*/
|
|
448
|
+
class EnergyCostRecordControllerApi extends base_1.BaseAPI {
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @summary 新增能源消耗-返回详情
|
|
452
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordDetailRequest} requestParameters Request parameters.
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
* @memberof EnergyCostRecordControllerApi
|
|
456
|
+
*/
|
|
457
|
+
energyCostAddRecordDetail(requestParameters, options) {
|
|
458
|
+
return (0, exports.EnergyCostRecordControllerApiFp)(this.configuration).energyCostAddRecordDetail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
*
|
|
462
|
+
* @summary 新增能源消耗-录入保存为草稿
|
|
463
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordInputDraftRequest} requestParameters Request parameters.
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
* @memberof EnergyCostRecordControllerApi
|
|
467
|
+
*/
|
|
468
|
+
energyCostAddRecordInputDraft(requestParameters, options) {
|
|
469
|
+
return (0, exports.EnergyCostRecordControllerApiFp)(this.configuration).energyCostAddRecordInputDraft(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* @summary 新增能源消耗-列表
|
|
474
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordListRequest} requestParameters Request parameters.
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
* @memberof EnergyCostRecordControllerApi
|
|
478
|
+
*/
|
|
479
|
+
energyCostAddRecordList(requestParameters = {}, options) {
|
|
480
|
+
return (0, exports.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));
|
|
481
|
+
}
|
|
482
|
+
/**
|
|
483
|
+
*
|
|
484
|
+
* @summary 新增能源消耗-next
|
|
485
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordNextRequest} requestParameters Request parameters.
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
* @memberof EnergyCostRecordControllerApi
|
|
489
|
+
*/
|
|
490
|
+
energyCostAddRecordNext(requestParameters, options) {
|
|
491
|
+
return (0, exports.EnergyCostRecordControllerApiFp)(this.configuration).energyCostAddRecordNext(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
*
|
|
495
|
+
* @summary 新增能源消耗-提交
|
|
496
|
+
* @param {EnergyCostRecordControllerApiEnergyCostAddRecordSubmitRequest} requestParameters Request parameters.
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
* @memberof EnergyCostRecordControllerApi
|
|
500
|
+
*/
|
|
501
|
+
energyCostAddRecordSubmit(requestParameters, options) {
|
|
502
|
+
return (0, exports.EnergyCostRecordControllerApiFp)(this.configuration).energyCostAddRecordSubmit(requestParameters.energyCostAddRecordDTO, options).then((request) => request(this.axios, this.basePath));
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
*
|
|
506
|
+
* @summary 获取下拉框内容
|
|
507
|
+
* @param {EnergyCostRecordControllerApiGetOptionsRequest} requestParameters Request parameters.
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
* @memberof EnergyCostRecordControllerApi
|
|
511
|
+
*/
|
|
512
|
+
getOptions(requestParameters = {}, options) {
|
|
513
|
+
return (0, exports.EnergyCostRecordControllerApiFp)(this.configuration).getOptions(requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
exports.EnergyCostRecordControllerApi = EnergyCostRecordControllerApi;
|
|
517
|
+
/**
|
|
518
|
+
* @export
|
|
519
|
+
*/
|
|
520
|
+
exports.EnergyCostAddRecordListEnergyTypeEnum = {
|
|
521
|
+
Electric: 'ELECTRIC',
|
|
522
|
+
Water: 'WATER'
|
|
523
|
+
};
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export * from './apis/default-api';
|
|
13
12
|
export * from './apis/access-api';
|
|
14
13
|
export * from './apis/app-auth-api';
|
|
15
14
|
export * from './apis/auth-api';
|
|
@@ -19,6 +18,8 @@ export * from './apis/common-api';
|
|
|
19
18
|
export * from './apis/dashboard-api';
|
|
20
19
|
export * from './apis/device-api';
|
|
21
20
|
export * from './apis/disaster-warning-standard-api';
|
|
21
|
+
export * from './apis/energy-cost-controller-api';
|
|
22
|
+
export * from './apis/energy-cost-record-controller-api';
|
|
22
23
|
export * from './apis/equipment-api';
|
|
23
24
|
export * from './apis/excel-language-controller-api';
|
|
24
25
|
export * from './apis/hwork-api';
|
package/dist/esm/api.js
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
export * from './apis/default-api';
|
|
15
14
|
export * from './apis/access-api';
|
|
16
15
|
export * from './apis/app-auth-api';
|
|
17
16
|
export * from './apis/auth-api';
|
|
@@ -21,6 +20,8 @@ export * from './apis/common-api';
|
|
|
21
20
|
export * from './apis/dashboard-api';
|
|
22
21
|
export * from './apis/device-api';
|
|
23
22
|
export * from './apis/disaster-warning-standard-api';
|
|
23
|
+
export * from './apis/energy-cost-controller-api';
|
|
24
|
+
export * from './apis/energy-cost-record-controller-api';
|
|
24
25
|
export * from './apis/equipment-api';
|
|
25
26
|
export * from './apis/excel-language-controller-api';
|
|
26
27
|
export * from './apis/hwork-api';
|