@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,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
|
+
};
|
|
@@ -34,12 +34,6 @@ export interface IPageEnergyCostRecordInfoVO {
|
|
|
34
34
|
* @memberof IPageEnergyCostRecordInfoVO
|
|
35
35
|
*/
|
|
36
36
|
'records'?: Array<EnergyCostRecordInfoVO>;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {boolean}
|
|
40
|
-
* @memberof IPageEnergyCostRecordInfoVO
|
|
41
|
-
*/
|
|
42
|
-
'searchCount'?: boolean;
|
|
43
37
|
/**
|
|
44
38
|
*
|
|
45
39
|
* @type {boolean}
|
|
@@ -53,6 +47,12 @@ export interface IPageEnergyCostRecordInfoVO {
|
|
|
53
47
|
* @memberof IPageEnergyCostRecordInfoVO
|
|
54
48
|
*/
|
|
55
49
|
'pages'?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof IPageEnergyCostRecordInfoVO
|
|
54
|
+
*/
|
|
55
|
+
'searchCount'?: boolean;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {number}
|
|
@@ -377,14 +377,14 @@ export interface SysUser {
|
|
|
377
377
|
'sourceUserId'?: string;
|
|
378
378
|
/**
|
|
379
379
|
*
|
|
380
|
-
* @type {
|
|
380
|
+
* @type {number}
|
|
381
381
|
* @memberof SysUser
|
|
382
382
|
*/
|
|
383
|
-
'
|
|
383
|
+
'cuserId'?: number;
|
|
384
384
|
/**
|
|
385
385
|
*
|
|
386
|
-
* @type {
|
|
386
|
+
* @type {string}
|
|
387
387
|
* @memberof SysUser
|
|
388
388
|
*/
|
|
389
|
-
'
|
|
389
|
+
'cid'?: string;
|
|
390
390
|
}
|
|
@@ -34,12 +34,6 @@ export interface IPageEnergyCostRecordInfoVO {
|
|
|
34
34
|
* @memberof IPageEnergyCostRecordInfoVO
|
|
35
35
|
*/
|
|
36
36
|
'records'?: Array<EnergyCostRecordInfoVO>;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {boolean}
|
|
40
|
-
* @memberof IPageEnergyCostRecordInfoVO
|
|
41
|
-
*/
|
|
42
|
-
'searchCount'?: boolean;
|
|
43
37
|
/**
|
|
44
38
|
*
|
|
45
39
|
* @type {boolean}
|
|
@@ -53,6 +47,12 @@ export interface IPageEnergyCostRecordInfoVO {
|
|
|
53
47
|
* @memberof IPageEnergyCostRecordInfoVO
|
|
54
48
|
*/
|
|
55
49
|
'pages'?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof IPageEnergyCostRecordInfoVO
|
|
54
|
+
*/
|
|
55
|
+
'searchCount'?: boolean;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {number}
|
|
@@ -377,14 +377,14 @@ export interface SysUser {
|
|
|
377
377
|
'sourceUserId'?: string;
|
|
378
378
|
/**
|
|
379
379
|
*
|
|
380
|
-
* @type {
|
|
380
|
+
* @type {number}
|
|
381
381
|
* @memberof SysUser
|
|
382
382
|
*/
|
|
383
|
-
'
|
|
383
|
+
'cuserId'?: number;
|
|
384
384
|
/**
|
|
385
385
|
*
|
|
386
|
-
* @type {
|
|
386
|
+
* @type {string}
|
|
387
387
|
* @memberof SysUser
|
|
388
388
|
*/
|
|
389
|
-
'
|
|
389
|
+
'cid'?: string;
|
|
390
390
|
}
|
|
@@ -41,12 +41,6 @@ export interface IPageEnergyCostRecordInfoVO {
|
|
|
41
41
|
* @memberof IPageEnergyCostRecordInfoVO
|
|
42
42
|
*/
|
|
43
43
|
'records'?: Array<EnergyCostRecordInfoVO>;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {boolean}
|
|
47
|
-
* @memberof IPageEnergyCostRecordInfoVO
|
|
48
|
-
*/
|
|
49
|
-
'searchCount'?: boolean;
|
|
50
44
|
/**
|
|
51
45
|
*
|
|
52
46
|
* @type {boolean}
|
|
@@ -60,6 +54,12 @@ export interface IPageEnergyCostRecordInfoVO {
|
|
|
60
54
|
* @memberof IPageEnergyCostRecordInfoVO
|
|
61
55
|
*/
|
|
62
56
|
'pages'?: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof IPageEnergyCostRecordInfoVO
|
|
61
|
+
*/
|
|
62
|
+
'searchCount'?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
*
|
|
65
65
|
* @type {number}
|
package/models/sys-user.ts
CHANGED
|
@@ -388,16 +388,16 @@ export interface SysUser {
|
|
|
388
388
|
'sourceUserId'?: string;
|
|
389
389
|
/**
|
|
390
390
|
*
|
|
391
|
-
* @type {
|
|
391
|
+
* @type {number}
|
|
392
392
|
* @memberof SysUser
|
|
393
393
|
*/
|
|
394
|
-
'
|
|
394
|
+
'cuserId'?: number;
|
|
395
395
|
/**
|
|
396
396
|
*
|
|
397
|
-
* @type {
|
|
397
|
+
* @type {string}
|
|
398
398
|
* @memberof SysUser
|
|
399
399
|
*/
|
|
400
|
-
'
|
|
400
|
+
'cid'?: string;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
|