1
|
1
|
import { buildUUID } from '/@/utils/uuid';
|
2
|
2
|
|
|
3
|
+//模拟阿里云属性服务事件服务端格式
|
3
|
4
|
export const mockData = {
|
4
|
5
|
_ppk: {},
|
5
|
6
|
events: [
|
6
|
7
|
{
|
7
|
|
- createTs: 1666344382193,
|
|
8
|
+ createTs: 1666596472189,
|
8
|
9
|
custom: true,
|
9
|
|
- description: '33',
|
10
|
|
- eventName: '事件1',
|
11
|
|
- eventType: 'ALERT_EVENT_TYPE',
|
12
|
|
- identifier: 'i1',
|
|
10
|
+ description: '监播动作结果上报事件',
|
|
11
|
+ eventName: '监播动作结果上报事件',
|
|
12
|
+ eventType: 'INFO_EVENT_TYPE',
|
|
13
|
+ identifier: 'MonitorActionEvent',
|
13
|
14
|
outputData: [
|
14
|
15
|
{
|
15
|
16
|
id: buildUUID(),
|
16
|
17
|
custom: true,
|
17
|
18
|
dataSpecs: {
|
18
|
19
|
dataType: 'INT',
|
19
|
|
- max: '20',
|
20
|
|
- min: '10',
|
21
|
|
- step: '3',
|
22
|
|
- unit: 'W/㎡',
|
23
|
|
- unitName: '太阳总辐射',
|
|
20
|
+ max: '1024',
|
|
21
|
+ min: '-1024',
|
|
22
|
+ precise: 0,
|
|
23
|
+ step: '1',
|
|
24
|
+ unit: '',
|
|
25
|
+ unitName: '无',
|
24
|
26
|
},
|
25
|
27
|
dataType: 'INT',
|
26
|
28
|
direction: 'PARAM_OUTPUT',
|
27
|
|
- identifier: 'i1',
|
28
|
|
- name: '参数1',
|
|
29
|
+ identifier: 'ActionType',
|
|
30
|
+ name: '监播操作类型',
|
29
|
31
|
paraOrder: 0,
|
30
|
32
|
},
|
|
33
|
+ {
|
|
34
|
+ id: buildUUID(),
|
|
35
|
+ custom: true,
|
|
36
|
+ dataSpecs: {
|
|
37
|
+ dataType: 'TEXT',
|
|
38
|
+ length: 1024,
|
|
39
|
+ },
|
|
40
|
+ dataType: 'TEXT',
|
|
41
|
+ direction: 'PARAM_OUTPUT',
|
|
42
|
+ identifier: 'FileKey',
|
|
43
|
+ name: '上传文件ossKey',
|
|
44
|
+ paraOrder: 1,
|
|
45
|
+ },
|
|
46
|
+ {
|
|
47
|
+ id: buildUUID(),
|
|
48
|
+ custom: true,
|
|
49
|
+ dataSpecsList: [
|
|
50
|
+ {
|
|
51
|
+ id: buildUUID(),
|
|
52
|
+ dataType: 'BOOL',
|
|
53
|
+ name: '1',
|
|
54
|
+ value: 0,
|
|
55
|
+ },
|
|
56
|
+ {
|
|
57
|
+ id: buildUUID(),
|
|
58
|
+ dataType: 'BOOL',
|
|
59
|
+ name: '0',
|
|
60
|
+ value: 1,
|
|
61
|
+ },
|
|
62
|
+ ],
|
|
63
|
+ dataType: 'BOOL',
|
|
64
|
+ direction: 'PARAM_OUTPUT',
|
|
65
|
+ identifier: 'Extension',
|
|
66
|
+ name: '扩展信息',
|
|
67
|
+ paraOrder: 2,
|
|
68
|
+ },
|
|
69
|
+ {
|
|
70
|
+ id: buildUUID(),
|
|
71
|
+ custom: true,
|
|
72
|
+ dataSpecsList: [
|
|
73
|
+ {
|
|
74
|
+ id: buildUUID(),
|
|
75
|
+ childDataType: 'DOUBLE',
|
|
76
|
+ childName: '峰值',
|
|
77
|
+ childSpecsDTO: {
|
|
78
|
+ dataType: 'DOUBLE',
|
|
79
|
+ max: '33',
|
|
80
|
+ min: '22',
|
|
81
|
+ step: '2',
|
|
82
|
+ unit: 'm³/s',
|
|
83
|
+ unitName: '立方米每秒',
|
|
84
|
+ },
|
|
85
|
+ custom: true,
|
|
86
|
+ dataSpecs: {
|
|
87
|
+ dataType: 'DOUBLE',
|
|
88
|
+ max: '33',
|
|
89
|
+ min: '22',
|
|
90
|
+ step: '2',
|
|
91
|
+ unit: 'm³/s',
|
|
92
|
+ unitName: '立方米每秒',
|
|
93
|
+ },
|
|
94
|
+ dataType: 'STRUCT',
|
|
95
|
+ identifier: 'bass',
|
|
96
|
+ isStd: 0,
|
|
97
|
+ name: '峰值',
|
|
98
|
+ },
|
|
99
|
+ {
|
|
100
|
+ id: buildUUID(),
|
|
101
|
+ childDataType: 'BOOL',
|
|
102
|
+ childEnumSpecsDTO: [
|
|
103
|
+ {
|
|
104
|
+ dataType: 'BOOL',
|
|
105
|
+ name: '1',
|
|
106
|
+ value: 0,
|
|
107
|
+ },
|
|
108
|
+ {
|
|
109
|
+ dataType: 'BOOL',
|
|
110
|
+ name: '0',
|
|
111
|
+ value: 1,
|
|
112
|
+ },
|
|
113
|
+ ],
|
|
114
|
+ childName: '平均速率',
|
|
115
|
+ custom: true,
|
|
116
|
+ dataSpecsList: [
|
|
117
|
+ {
|
|
118
|
+ id: buildUUID(),
|
|
119
|
+ dataType: 'BOOL',
|
|
120
|
+ name: '1',
|
|
121
|
+ value: 0,
|
|
122
|
+ },
|
|
123
|
+ {
|
|
124
|
+ id: buildUUID(),
|
|
125
|
+ dataType: 'BOOL',
|
|
126
|
+ name: '0',
|
|
127
|
+ value: 1,
|
|
128
|
+ },
|
|
129
|
+ ],
|
|
130
|
+ dataType: 'STRUCT',
|
|
131
|
+ identifier: 'average',
|
|
132
|
+ isStd: 0,
|
|
133
|
+ name: '平均速率',
|
|
134
|
+ },
|
|
135
|
+ ],
|
|
136
|
+ dataType: 'STRUCT',
|
|
137
|
+ direction: 'PARAM_OUTPUT',
|
|
138
|
+ identifier: 'ceshi',
|
|
139
|
+ name: '网速',
|
|
140
|
+ paraOrder: 3,
|
|
141
|
+ },
|
31
|
142
|
],
|
32
|
143
|
productKey: 'hsrnXEfGFDv',
|
33
|
144
|
required: false,
|
...
|
...
|
@@ -36,67 +147,123 @@ export const mockData = { |
36
|
147
|
productKey: 'hsrnXEfGFDv',
|
37
|
148
|
properties: [
|
38
|
149
|
{
|
39
|
|
- createTs: 1666259889029,
|
|
150
|
+ createTs: 1666604372638,
|
40
|
151
|
custom: true,
|
41
|
152
|
customFlag: true,
|
42
|
153
|
dataSpecsList: [
|
43
|
154
|
{
|
44
|
|
- id: buildUUID(),
|
|
155
|
+ childDataType: 'BOOL',
|
|
156
|
+ childEnumSpecsDTO: [
|
|
157
|
+ {
|
|
158
|
+ dataType: 'BOOL',
|
|
159
|
+ name: '左眼',
|
|
160
|
+ value: 0,
|
|
161
|
+ },
|
|
162
|
+ {
|
|
163
|
+ dataType: 'BOOL',
|
|
164
|
+ name: '右眼',
|
|
165
|
+ value: 1,
|
|
166
|
+ },
|
|
167
|
+ ],
|
|
168
|
+ childName: '眼睛',
|
|
169
|
+ custom: true,
|
|
170
|
+ dataSpecsList: [
|
|
171
|
+ {
|
|
172
|
+ dataType: 'BOOL',
|
|
173
|
+ name: '左眼',
|
|
174
|
+ value: 0,
|
|
175
|
+ },
|
|
176
|
+ {
|
|
177
|
+ dataType: 'BOOL',
|
|
178
|
+ name: '右眼',
|
|
179
|
+ value: 1,
|
|
180
|
+ },
|
|
181
|
+ ],
|
|
182
|
+ dataType: 'STRUCT',
|
|
183
|
+ identifier: 'Eye',
|
|
184
|
+ isStd: 0,
|
|
185
|
+ name: '眼睛',
|
|
186
|
+ },
|
|
187
|
+ {
|
45
|
188
|
childDataType: 'INT',
|
46
|
|
- childName: '测试参数1',
|
|
189
|
+ childName: '鼻子',
|
47
|
190
|
childSpecsDTO: {
|
48
|
191
|
dataType: 'INT',
|
49
|
|
- max: '30',
|
50
|
|
- min: '20',
|
51
|
|
- step: '1',
|
52
|
|
- unit: 'mm/hour',
|
53
|
|
- unitName: '降雨量',
|
|
192
|
+ max: '22',
|
|
193
|
+ min: '12',
|
|
194
|
+ step: '5',
|
|
195
|
+ unit: '只',
|
|
196
|
+ unitName: '只',
|
54
|
197
|
},
|
55
|
198
|
custom: true,
|
56
|
199
|
dataSpecs: {
|
57
|
200
|
dataType: 'INT',
|
58
|
|
- max: '30',
|
59
|
|
- min: '20',
|
60
|
|
- step: '1',
|
61
|
|
- unit: 'mm/hour',
|
62
|
|
- unitName: '降雨量',
|
|
201
|
+ max: '22',
|
|
202
|
+ min: '12',
|
|
203
|
+ step: '5',
|
|
204
|
+ unit: '只',
|
|
205
|
+ unitName: '只',
|
63
|
206
|
},
|
64
|
207
|
dataType: 'STRUCT',
|
65
|
|
- identifier: 'iden2',
|
|
208
|
+ identifier: 'Boless',
|
66
|
209
|
isStd: 0,
|
67
|
|
- name: '测试参数1',
|
|
210
|
+ name: '鼻子',
|
68
|
211
|
},
|
69
|
212
|
{
|
70
|
|
- id: buildUUID(),
|
71
|
|
- childDataType: 'INT',
|
72
|
|
- childName: '测试参数2',
|
|
213
|
+ childDataType: 'TEXT',
|
|
214
|
+ childName: '脸颊',
|
73
|
215
|
childSpecsDTO: {
|
74
|
|
- dataType: 'INT',
|
75
|
|
- max: '40',
|
76
|
|
- min: '30',
|
77
|
|
- step: '2',
|
78
|
|
- unit: 'pH',
|
79
|
|
- unitName: 'PH值',
|
|
216
|
+ dataType: 'TEXT',
|
|
217
|
+ length: 10240,
|
80
|
218
|
},
|
81
|
219
|
custom: true,
|
82
|
220
|
dataSpecs: {
|
83
|
|
- dataType: 'INT',
|
84
|
|
- max: '40',
|
85
|
|
- min: '30',
|
86
|
|
- step: '2',
|
87
|
|
- unit: 'pH',
|
88
|
|
- unitName: 'PH值',
|
|
221
|
+ dataType: 'TEXT',
|
|
222
|
+ length: 10240,
|
89
|
223
|
},
|
90
|
224
|
dataType: 'STRUCT',
|
91
|
|
- identifier: 'idne2',
|
|
225
|
+ identifier: 'Facebook',
|
92
|
226
|
isStd: 0,
|
93
|
|
- name: '测试参数2',
|
|
227
|
+ name: '脸颊',
|
|
228
|
+ },
|
|
229
|
+ {
|
|
230
|
+ childDataType: 'BOOL',
|
|
231
|
+ childEnumSpecsDTO: [
|
|
232
|
+ {
|
|
233
|
+ dataType: 'BOOL',
|
|
234
|
+ name: '左耳',
|
|
235
|
+ value: 0,
|
|
236
|
+ },
|
|
237
|
+ {
|
|
238
|
+ dataType: 'BOOL',
|
|
239
|
+ name: '右耳',
|
|
240
|
+ value: 1,
|
|
241
|
+ },
|
|
242
|
+ ],
|
|
243
|
+ childName: '耳朵',
|
|
244
|
+ custom: true,
|
|
245
|
+ dataSpecsList: [
|
|
246
|
+ {
|
|
247
|
+ dataType: 'BOOL',
|
|
248
|
+ name: '左耳',
|
|
249
|
+ value: 0,
|
|
250
|
+ },
|
|
251
|
+ {
|
|
252
|
+ dataType: 'BOOL',
|
|
253
|
+ name: '右耳',
|
|
254
|
+ value: 1,
|
|
255
|
+ },
|
|
256
|
+ ],
|
|
257
|
+ dataType: 'STRUCT',
|
|
258
|
+ identifier: 'Eyear',
|
|
259
|
+ isStd: 0,
|
|
260
|
+ name: '耳朵',
|
94
|
261
|
},
|
95
|
262
|
],
|
96
|
263
|
dataType: 'STRUCT',
|
97
|
|
- description: '21212',
|
98
|
|
- identifier: 'iden1',
|
99
|
|
- name: '测试功能',
|
|
264
|
+ description: '用于人脸特征下发,基于人脸门禁1.0物模型\n设备级开关',
|
|
265
|
+ identifier: 'SupportFaceFeature',
|
|
266
|
+ name: '支持人脸特征下发',
|
100
|
267
|
productKey: 'hsrnXEfGFDv',
|
101
|
268
|
required: false,
|
102
|
269
|
rwFlag: 'READ_WRITE',
|
...
|
...
|
@@ -105,249 +272,329 @@ export const mockData = { |
105
|
272
|
],
|
106
|
273
|
services: [
|
107
|
274
|
{
|
108
|
|
- callType: 'ASYNC',
|
109
|
|
- createTs: 1666343456853,
|
|
275
|
+ callType: 'SYNC',
|
|
276
|
+ createTs: 1666603858325,
|
110
|
277
|
custom: true,
|
111
|
|
- description: '4343',
|
112
|
|
- identifier: 'Iide1',
|
|
278
|
+ description: '更新模型',
|
|
279
|
+ identifier: 'UpdateModel',
|
113
|
280
|
inputParams: [
|
114
|
281
|
{
|
115
|
282
|
id: buildUUID(),
|
116
|
283
|
custom: true,
|
117
|
284
|
dataSpecs: {
|
|
285
|
+ dataType: 'TEXT',
|
|
286
|
+ length: 128,
|
|
287
|
+ },
|
|
288
|
+ dataType: 'TEXT',
|
|
289
|
+ direction: 'PARAM_INPUT',
|
|
290
|
+ identifier: 'UpdateTaskID',
|
|
291
|
+ name: '更新任务ID',
|
|
292
|
+ paraOrder: 0,
|
|
293
|
+ },
|
|
294
|
+ {
|
|
295
|
+ id: buildUUID(),
|
|
296
|
+ custom: true,
|
|
297
|
+ dataSpecs: {
|
|
298
|
+ dataType: 'TEXT',
|
|
299
|
+ length: 128,
|
|
300
|
+ },
|
|
301
|
+ dataType: 'TEXT',
|
|
302
|
+ direction: 'PARAM_INPUT',
|
|
303
|
+ identifier: 'AlgorithmID',
|
|
304
|
+ name: '算法任务唯一标识',
|
|
305
|
+ paraOrder: 1,
|
|
306
|
+ },
|
|
307
|
+ {
|
|
308
|
+ id: buildUUID(),
|
|
309
|
+
|
|
310
|
+ custom: true,
|
|
311
|
+ dataSpecs: {
|
|
312
|
+ dataType: 'TEXT',
|
|
313
|
+ length: 64,
|
|
314
|
+ },
|
|
315
|
+ dataType: 'TEXT',
|
|
316
|
+ direction: 'PARAM_INPUT',
|
|
317
|
+ identifier: 'AlgorithmName',
|
|
318
|
+ name: '算法名称',
|
|
319
|
+ paraOrder: 2,
|
|
320
|
+ },
|
|
321
|
+ {
|
|
322
|
+ id: buildUUID(),
|
|
323
|
+
|
|
324
|
+ custom: true,
|
|
325
|
+ dataSpecs: {
|
118
|
326
|
dataType: 'INT',
|
119
|
|
- max: '20',
|
120
|
|
- min: '10',
|
121
|
|
- step: '2',
|
122
|
|
- unit: 'dS/m',
|
123
|
|
- unitName: '土壤EC值',
|
|
327
|
+ max: '128',
|
|
328
|
+ min: '0',
|
|
329
|
+ precise: 0,
|
|
330
|
+ step: '1',
|
|
331
|
+ unit: '',
|
|
332
|
+ unitName: '无',
|
124
|
333
|
},
|
125
|
334
|
dataType: 'INT',
|
126
|
335
|
direction: 'PARAM_INPUT',
|
127
|
|
- identifier: 'i1',
|
128
|
|
- name: '参数名字1',
|
129
|
|
- paraOrder: 0,
|
|
336
|
+ identifier: 'NumThreads',
|
|
337
|
+ name: '使用线程数',
|
|
338
|
+ paraOrder: 4,
|
|
339
|
+ },
|
|
340
|
+ {
|
|
341
|
+ id: buildUUID(),
|
|
342
|
+
|
|
343
|
+ custom: true,
|
|
344
|
+ dataSpecs: {
|
|
345
|
+ dataType: 'TEXT',
|
|
346
|
+ length: 128,
|
|
347
|
+ },
|
|
348
|
+ dataType: 'TEXT',
|
|
349
|
+ direction: 'PARAM_INPUT',
|
|
350
|
+ identifier: 'ModelID',
|
|
351
|
+ name: '模型唯一标识',
|
|
352
|
+ paraOrder: 5,
|
|
353
|
+ },
|
|
354
|
+ {
|
|
355
|
+ id: buildUUID(),
|
|
356
|
+
|
|
357
|
+ custom: true,
|
|
358
|
+ dataSpecs: {
|
|
359
|
+ dataType: 'TEXT',
|
|
360
|
+ length: 64,
|
|
361
|
+ },
|
|
362
|
+ dataType: 'TEXT',
|
|
363
|
+ direction: 'PARAM_INPUT',
|
|
364
|
+ identifier: 'ModelName',
|
|
365
|
+ name: '模型名称',
|
|
366
|
+ paraOrder: 6,
|
|
367
|
+ },
|
|
368
|
+ {
|
|
369
|
+ id: buildUUID(),
|
|
370
|
+
|
|
371
|
+ custom: true,
|
|
372
|
+ dataSpecs: {
|
|
373
|
+ dataType: 'TEXT',
|
|
374
|
+ length: 64,
|
|
375
|
+ },
|
|
376
|
+ dataType: 'TEXT',
|
|
377
|
+ direction: 'PARAM_INPUT',
|
|
378
|
+ identifier: 'ModelVersion',
|
|
379
|
+ name: '模型版本',
|
|
380
|
+ paraOrder: 7,
|
|
381
|
+ },
|
|
382
|
+ {
|
|
383
|
+ id: buildUUID(),
|
|
384
|
+
|
|
385
|
+ custom: true,
|
|
386
|
+ dataSpecs: {
|
|
387
|
+ dataType: 'TEXT',
|
|
388
|
+ length: 1024,
|
|
389
|
+ },
|
|
390
|
+ dataType: 'TEXT',
|
|
391
|
+ direction: 'PARAM_INPUT',
|
|
392
|
+ identifier: 'ModelURL',
|
|
393
|
+ name: '模型地址',
|
|
394
|
+ paraOrder: 8,
|
|
395
|
+ },
|
|
396
|
+ {
|
|
397
|
+ id: buildUUID(),
|
|
398
|
+
|
|
399
|
+ custom: true,
|
|
400
|
+ dataSpecs: {
|
|
401
|
+ dataType: 'TEXT',
|
|
402
|
+ length: 128,
|
|
403
|
+ },
|
|
404
|
+ dataType: 'TEXT',
|
|
405
|
+ direction: 'PARAM_INPUT',
|
|
406
|
+ identifier: 'ModelMD5',
|
|
407
|
+ name: '模型文件MD5',
|
|
408
|
+ paraOrder: 9,
|
|
409
|
+ },
|
|
410
|
+ {
|
|
411
|
+ id: buildUUID(),
|
|
412
|
+
|
|
413
|
+ custom: true,
|
|
414
|
+ dataSpecs: {
|
|
415
|
+ dataType: 'TEXT',
|
|
416
|
+ length: 64,
|
|
417
|
+ },
|
|
418
|
+ dataType: 'TEXT',
|
|
419
|
+ direction: 'PARAM_INPUT',
|
|
420
|
+ identifier: 'ModelPlatform',
|
|
421
|
+ name: '模型平台',
|
|
422
|
+ paraOrder: 10,
|
|
423
|
+ },
|
|
424
|
+ {
|
|
425
|
+ id: buildUUID(),
|
|
426
|
+
|
|
427
|
+ custom: true,
|
|
428
|
+ dataSpecs: {
|
|
429
|
+ dataType: 'TEXT',
|
|
430
|
+ length: 128,
|
|
431
|
+ },
|
|
432
|
+ dataType: 'TEXT',
|
|
433
|
+ direction: 'PARAM_INPUT',
|
|
434
|
+ identifier: 'ModelTaskID',
|
|
435
|
+ name: '模型生成任务ID',
|
|
436
|
+ paraOrder: 11,
|
|
437
|
+ },
|
|
438
|
+ {
|
|
439
|
+ id: buildUUID(),
|
|
440
|
+
|
|
441
|
+ custom: true,
|
|
442
|
+ dataSpecs: {
|
|
443
|
+ dataType: 'TEXT',
|
|
444
|
+ length: 64,
|
|
445
|
+ },
|
|
446
|
+ dataType: 'TEXT',
|
|
447
|
+ direction: 'PARAM_INPUT',
|
|
448
|
+ identifier: 'ModelEncryptType',
|
|
449
|
+ name: '模型加密方式',
|
|
450
|
+ paraOrder: 12,
|
|
451
|
+ },
|
|
452
|
+ {
|
|
453
|
+ id: buildUUID(),
|
|
454
|
+
|
|
455
|
+ custom: true,
|
|
456
|
+ dataSpecs: {
|
|
457
|
+ dataType: 'TEXT',
|
|
458
|
+ length: 2048,
|
|
459
|
+ },
|
|
460
|
+ dataType: 'TEXT',
|
|
461
|
+ direction: 'PARAM_INPUT',
|
|
462
|
+ identifier: 'ModelExtension',
|
|
463
|
+ name: '扩展信息',
|
|
464
|
+ paraOrder: 13,
|
|
465
|
+ },
|
|
466
|
+ {
|
|
467
|
+ id: buildUUID(),
|
|
468
|
+
|
|
469
|
+ custom: true,
|
|
470
|
+ dataSpecsList: [
|
|
471
|
+ {
|
|
472
|
+ id: buildUUID(),
|
|
473
|
+
|
|
474
|
+ childDataType: 'TEXT',
|
|
475
|
+ childName: '模型结构体参数1',
|
|
476
|
+ childSpecsDTO: {
|
|
477
|
+ dataType: 'TEXT',
|
|
478
|
+ length: 10240,
|
|
479
|
+ },
|
|
480
|
+ custom: true,
|
|
481
|
+ dataSpecs: {
|
|
482
|
+ dataType: 'TEXT',
|
|
483
|
+ length: 10240,
|
|
484
|
+ },
|
|
485
|
+ dataType: 'STRUCT',
|
|
486
|
+ identifier: 'ModelParams1',
|
|
487
|
+ isStd: 0,
|
|
488
|
+ name: '模型结构体参数1',
|
|
489
|
+ },
|
|
490
|
+ {
|
|
491
|
+ id: buildUUID(),
|
|
492
|
+
|
|
493
|
+ childDataType: 'BOOL',
|
|
494
|
+ childEnumSpecsDTO: [
|
|
495
|
+ {
|
|
496
|
+ dataType: 'BOOL',
|
|
497
|
+ name: '1',
|
|
498
|
+ value: 0,
|
|
499
|
+ },
|
|
500
|
+ {
|
|
501
|
+ dataType: 'BOOL',
|
|
502
|
+ name: '0',
|
|
503
|
+ value: 1,
|
|
504
|
+ },
|
|
505
|
+ ],
|
|
506
|
+ childName: '模型结构体参数2',
|
|
507
|
+ custom: true,
|
|
508
|
+ dataSpecsList: [
|
|
509
|
+ {
|
|
510
|
+ id: buildUUID(),
|
|
511
|
+
|
|
512
|
+ dataType: 'BOOL',
|
|
513
|
+ name: '1',
|
|
514
|
+ value: 0,
|
|
515
|
+ },
|
|
516
|
+ {
|
|
517
|
+ id: buildUUID(),
|
|
518
|
+
|
|
519
|
+ dataType: 'BOOL',
|
|
520
|
+ name: '0',
|
|
521
|
+ value: 1,
|
|
522
|
+ },
|
|
523
|
+ ],
|
|
524
|
+ dataType: 'STRUCT',
|
|
525
|
+ identifier: 'ModelParams2',
|
|
526
|
+ isStd: 0,
|
|
527
|
+ name: '模型结构体参数2',
|
|
528
|
+ },
|
|
529
|
+ ],
|
|
530
|
+ dataType: 'STRUCT',
|
|
531
|
+ direction: 'PARAM_INPUT',
|
|
532
|
+ identifier: 'ModelStruct',
|
|
533
|
+ name: '模型结构体',
|
|
534
|
+ paraOrder: 3,
|
130
|
535
|
},
|
131
|
536
|
],
|
132
|
537
|
outputParams: [
|
133
|
538
|
{
|
134
|
539
|
id: buildUUID(),
|
|
540
|
+
|
|
541
|
+ custom: true,
|
|
542
|
+ dataSpecs: {
|
|
543
|
+ dataType: 'TEXT',
|
|
544
|
+ length: 10240,
|
|
545
|
+ },
|
|
546
|
+ dataType: 'TEXT',
|
|
547
|
+ direction: 'PARAM_OUTPUT',
|
|
548
|
+ identifier: 'Django',
|
|
549
|
+ name: 'django',
|
|
550
|
+ paraOrder: 0,
|
|
551
|
+ },
|
|
552
|
+ {
|
|
553
|
+ id: buildUUID(),
|
|
554
|
+
|
|
555
|
+ custom: true,
|
|
556
|
+ dataSpecsList: [
|
|
557
|
+ {
|
|
558
|
+ id: buildUUID(),
|
|
559
|
+
|
|
560
|
+ dataType: 'BOOL',
|
|
561
|
+ name: '1',
|
|
562
|
+ value: 0,
|
|
563
|
+ },
|
|
564
|
+ {
|
|
565
|
+ id: buildUUID(),
|
|
566
|
+ dataType: 'BOOL',
|
|
567
|
+ name: '0',
|
|
568
|
+ value: 1,
|
|
569
|
+ },
|
|
570
|
+ ],
|
|
571
|
+ dataType: 'BOOL',
|
|
572
|
+ direction: 'PARAM_OUTPUT',
|
|
573
|
+ identifier: 'Flask',
|
|
574
|
+ name: 'flask',
|
|
575
|
+ paraOrder: 1,
|
|
576
|
+ },
|
|
577
|
+ {
|
|
578
|
+ id: buildUUID(),
|
135
|
579
|
custom: true,
|
136
|
580
|
dataSpecs: {
|
137
|
581
|
dataType: 'INT',
|
138
|
|
- max: '20',
|
139
|
|
- min: '10',
|
|
582
|
+ max: '22',
|
|
583
|
+ min: '11',
|
140
|
584
|
step: '3',
|
141
|
|
- unit: 'pH',
|
142
|
|
- unitName: 'PH值',
|
|
585
|
+ unit: '只',
|
|
586
|
+ unitName: '只',
|
143
|
587
|
},
|
144
|
588
|
dataType: 'INT',
|
145
|
589
|
direction: 'PARAM_OUTPUT',
|
146
|
|
- identifier: 'i2',
|
147
|
|
- name: '输出参数2',
|
148
|
|
- paraOrder: 0,
|
|
590
|
+ identifier: 'Tornado',
|
|
591
|
+ name: 'tornado',
|
|
592
|
+ paraOrder: 2,
|
149
|
593
|
},
|
150
|
594
|
],
|
151
|
595
|
productKey: 'hsrnXEfGFDv',
|
152
|
596
|
required: false,
|
153
|
|
- serviceName: '服务1',
|
|
597
|
+ serviceName: '更新模型',
|
154
|
598
|
},
|
155
|
599
|
],
|
156
|
600
|
}; |
157
|
|
-
|
158
|
|
-// {
|
159
|
|
-// _ppk: {},
|
160
|
|
-// events: [],
|
161
|
|
-// productKey: 'hsrnXEfGFDv',
|
162
|
|
-// properties: [
|
163
|
|
-// {
|
164
|
|
-// createTs: 1666259889029,
|
165
|
|
-// custom: true,
|
166
|
|
-// customFlag: true,
|
167
|
|
-// dataSpecsList: [
|
168
|
|
-// {
|
169
|
|
-// id: buildUUID(),
|
170
|
|
-// childDataType: 'INT',
|
171
|
|
-// childName: '测试参数1',
|
172
|
|
-// childSpecsDTO: {
|
173
|
|
-// dataType: 'INT',
|
174
|
|
-// max: '30',
|
175
|
|
-// min: '20',
|
176
|
|
-// step: '1',
|
177
|
|
-// unit: 'mm/hour',
|
178
|
|
-// unitName: '降雨量',
|
179
|
|
-// },
|
180
|
|
-// custom: true,
|
181
|
|
-// dataSpecs: {
|
182
|
|
-// dataType: 'INT',
|
183
|
|
-// max: '30',
|
184
|
|
-// min: '20',
|
185
|
|
-// step: '1',
|
186
|
|
-// unit: 'mm/hour',
|
187
|
|
-// unitName: '降雨量',
|
188
|
|
-// },
|
189
|
|
-// dataType: 'STRUCT',
|
190
|
|
-// identifier: 'iden2',
|
191
|
|
-// isStd: 0,
|
192
|
|
-// name: '测试参数1',
|
193
|
|
-// },
|
194
|
|
-// {
|
195
|
|
-// id: buildUUID(),
|
196
|
|
-// childDataType: 'INT',
|
197
|
|
-// childName: '测试参数2',
|
198
|
|
-// childSpecsDTO: {
|
199
|
|
-// dataType: 'INT',
|
200
|
|
-// max: '40',
|
201
|
|
-// min: '30',
|
202
|
|
-// step: '2',
|
203
|
|
-// unit: 'pH',
|
204
|
|
-// unitName: 'PH值',
|
205
|
|
-// },
|
206
|
|
-// custom: true,
|
207
|
|
-// dataSpecs: {
|
208
|
|
-// dataType: 'INT',
|
209
|
|
-// max: '40',
|
210
|
|
-// min: '30',
|
211
|
|
-// step: '2',
|
212
|
|
-// unit: 'pH',
|
213
|
|
-// unitName: 'PH值',
|
214
|
|
-// },
|
215
|
|
-// dataType: 'STRUCT',
|
216
|
|
-// identifier: 'idne2',
|
217
|
|
-// isStd: 0,
|
218
|
|
-// name: '测试参数2',
|
219
|
|
-// },
|
220
|
|
-// ],
|
221
|
|
-// dataType: 'STRUCT',
|
222
|
|
-// description: '21212',
|
223
|
|
-// identifier: 'iden1',
|
224
|
|
-// name: '测试功能',
|
225
|
|
-// productKey: 'hsrnXEfGFDv',
|
226
|
|
-// required: false,
|
227
|
|
-// rwFlag: 'READ_WRITE',
|
228
|
|
-// std: false,
|
229
|
|
-// },
|
230
|
|
-// ],
|
231
|
|
-// services: [],
|
232
|
|
-// };
|
233
|
|
-
|
234
|
|
-// {
|
235
|
|
-// "_ppk": {},
|
236
|
|
-// "events": [],
|
237
|
|
-// "productKey": "hsrnXEfGFDv",
|
238
|
|
-// "properties": [
|
239
|
|
-// {
|
240
|
|
-// "createTs": 1666259889029,
|
241
|
|
-// "custom": true,
|
242
|
|
-// "customFlag": true,
|
243
|
|
-// "dataSpecsList": [
|
244
|
|
-// {
|
245
|
|
-// "childDataType": "INT",
|
246
|
|
-// "childName": "测试参数1",
|
247
|
|
-// "childSpecsDTO": {
|
248
|
|
-// "dataType": "INT",
|
249
|
|
-// "max": "30",
|
250
|
|
-// "min": "20",
|
251
|
|
-// "step": "1",
|
252
|
|
-// "unit": "mm/hour",
|
253
|
|
-// "unitName": "降雨量"
|
254
|
|
-// },
|
255
|
|
-// "custom": true,
|
256
|
|
-// "dataSpecs": {
|
257
|
|
-// "dataType": "INT",
|
258
|
|
-// "max": "30",
|
259
|
|
-// "min": "20",
|
260
|
|
-// "step": "1",
|
261
|
|
-// "unit": "mm/hour",
|
262
|
|
-// "unitName": "降雨量"
|
263
|
|
-// },
|
264
|
|
-// "dataType": "STRUCT",
|
265
|
|
-// "identifier": "iden2",
|
266
|
|
-// "isStd": 0,
|
267
|
|
-// "name": "测试参数1"
|
268
|
|
-// },
|
269
|
|
-// {
|
270
|
|
-// "childDataType": "INT",
|
271
|
|
-// "childName": "测试参数2",
|
272
|
|
-// "childSpecsDTO": {
|
273
|
|
-// "dataType": "INT",
|
274
|
|
-// "max": "40",
|
275
|
|
-// "min": "30",
|
276
|
|
-// "step": "2",
|
277
|
|
-// "unit": "pH",
|
278
|
|
-// "unitName": "PH值"
|
279
|
|
-// },
|
280
|
|
-// "custom": true,
|
281
|
|
-// "dataSpecs": {
|
282
|
|
-// "dataType": "INT",
|
283
|
|
-// "max": "40",
|
284
|
|
-// "min": "30",
|
285
|
|
-// "step": "2",
|
286
|
|
-// "unit": "pH",
|
287
|
|
-// "unitName": "PH值"
|
288
|
|
-// },
|
289
|
|
-// "dataType": "STRUCT",
|
290
|
|
-// "identifier": "idne2",
|
291
|
|
-// "isStd": 0,
|
292
|
|
-// "name": "测试参数2"
|
293
|
|
-// }
|
294
|
|
-// ],
|
295
|
|
-// "dataType": "STRUCT",
|
296
|
|
-// "description": "21212",
|
297
|
|
-// "identifier": "iden1",
|
298
|
|
-// "name": "测试功能",
|
299
|
|
-// "productKey": "hsrnXEfGFDv",
|
300
|
|
-// "required": false,
|
301
|
|
-// "rwFlag": "READ_WRITE",
|
302
|
|
-// "std": false
|
303
|
|
-// }
|
304
|
|
-// ],
|
305
|
|
-// "services": [
|
306
|
|
-// {
|
307
|
|
-// "callType": "ASYNC",
|
308
|
|
-// "createTs": 1666343456853,
|
309
|
|
-// "custom": true,
|
310
|
|
-// "description": "4343",
|
311
|
|
-// "identifier": "Iide1",
|
312
|
|
-// "inputParams": [
|
313
|
|
-// {
|
314
|
|
-// "custom": true,
|
315
|
|
-// "dataSpecs": {
|
316
|
|
-// "dataType": "INT",
|
317
|
|
-// "max": "20",
|
318
|
|
-// "min": "10",
|
319
|
|
-// "step": "2",
|
320
|
|
-// "unit": "dS/m",
|
321
|
|
-// "unitName": "土壤EC值"
|
322
|
|
-// },
|
323
|
|
-// "dataType": "INT",
|
324
|
|
-// "direction": "PARAM_INPUT",
|
325
|
|
-// "identifier": "i1",
|
326
|
|
-// "name": "参数名字1",
|
327
|
|
-// "paraOrder": 0
|
328
|
|
-// }
|
329
|
|
-// ],
|
330
|
|
-// "outputParams": [
|
331
|
|
-// {
|
332
|
|
-// "custom": true,
|
333
|
|
-// "dataSpecs": {
|
334
|
|
-// "dataType": "INT",
|
335
|
|
-// "max": "20",
|
336
|
|
-// "min": "10",
|
337
|
|
-// "step": "3",
|
338
|
|
-// "unit": "pH",
|
339
|
|
-// "unitName": "PH值"
|
340
|
|
-// },
|
341
|
|
-// "dataType": "INT",
|
342
|
|
-// "direction": "PARAM_OUTPUT",
|
343
|
|
-// "identifier": "i2",
|
344
|
|
-// "name": "输出参数2",
|
345
|
|
-// "paraOrder": 0
|
346
|
|
-// }
|
347
|
|
-// ],
|
348
|
|
-// "productKey": "hsrnXEfGFDv",
|
349
|
|
-// "required": false,
|
350
|
|
-// "serviceName": "服务1"
|
351
|
|
-// }
|
352
|
|
-// ]
|
353
|
|
-// } |
...
|
...
|
|