zhangzengfei
2023-09-12 a366f39aa6484628511eb14e38b461de087f4733
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
import request from "@/scripts/httpRequest"
import qs from "qs"
 
export const getMqtt = () => {
  return request({
    url: "/data/api-v/mqtt/conf",
    method: "get"
  })
}
 
export const saveMqtt = (data) => {
  return request({
    url: "/data/api-v/mqtt/saveConf",
    method: "post",
    data
  })
}
 
export const getWifi = () => {
  return request({
    url: "/data/api-v/wifi/conf",
    method: "get"
  })
}
 
export const saveWifi = (data) => {
  return request({
    url: "/data/api-v/wifi/saveConf",
    method: "post",
    data
  })
}
 
export const getLora = () => {
  return request({
    url: "/data/api-v/lora/conf",
    method: "get"
  })
}
 
export const saveLora = (data) => {
  return request({
    url: "/data/api-v/lora/saveConf",
    method: "post",
    data
  })
}
 
export const getDevInfo = () => {
  return request({
    url: "/data/api-v/sysset/getDevInfo",
    method: "get"
  })
}
 
export const getClockInfo = () => {
  return request({
    url: "/data/api-v/sysset/clockInfo",
    method: "get"
  })
}
 
export const getAlarmConfig = () => {
  return request({
    url: "/data/api-v/sysset/alarmServerShow",
    method: "get"
  })
}
 
export const getGB28181Config = () => {
  return request({
    url: "/data/api-v/gb28181/configShow",
    method: "get"
  })
}
 
export const saveDevInfo = (query: any) => {
  return request({
    url: "/data/api-v/sysset/saveDeviceInfo",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const saveAlarmConfig = (query: any) => {
  return request({
    url: "/data/api-v/sysset/videoLenEdit",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const saveGB28181Config = (query: any) => {
  return request({
    url: "/data/api-v/gb28181/configEdit",
    method: "post",
    data: query
  })
}
 
export const saveClockInfo = (query: any) => {
  return request({
    url: "/data/api-v/sysset/updateClock",
    method: "post",
    data: query
  })
}
 
export const testNTPserver = (query: any) => {
  return request({
    url: "/data/api-v/sysset/ntpTest",
    method: "get",
    params: query
  })
}
 
export const getSystemSummaryInfo = () => {
  return request({
    url: "/data/api-v/sysset/sysinfo",
    method: "get"
  })
}
 
export const getSysThresholds = () => {
  return request({
    url: "/data/api-v/sysset/sysThresholds",
    method: "get"
  })
}
 
export const rebootServer = () => {
  return request({
    url: "/data/api-v/sysset/reboot",
    method: "get"
  })
}
 
export const probeServer = () => {
  return request({
    url: "/img/icons/favicon-32x32.png",
    method: "get"
  })
}
 
export const getRebootTask = () => {
  return request({
    url: "/data/api-v/sysset/rebootTask",
    method: "get"
  })
}
 
export const setRebootTask = (query: any) => {
  return request({
    url: "/data/api-v/sysset/setRebootTask",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const getResourceConfig = () => {
  return request({
    url: "/data/api-v/sysset/getResourceConfig",
    method: "get"
  })
}
 
export const saveResourceConfig = (query: any) => {
  return request({
    url: "/data/api-v/sysset/saveResourceConfig",
    method: "post",
    data: query
  })
}
 
export const doUpgrade = (query: any) => {
  return request({
    url: "/data/api-v/sysset/upgrade",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const upNetCard = (query: any) => {
  return request({
    url: "/data/api-v/sysset/upNetCard",
    method: "post",
    data: qs.stringify(query)
  })
}
export const downNetCard = (query: any) => {
  return request({
    url: "/data/api-v/sysset/downNetCard",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const setServerName = (query: any) => {
  return request({
    url: "/data/api-v/sysset/setSerName",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const getWireList = (query: any) => {
  return request({
    url: "/data/api-v/sysset/getNetWorkCards",
    method: "get",
    data: query
  })
}
 
export const setKeyboardLayout = (query: any) => {
  return request({
    url: "/data/api-v/sysset/setKeyboardLayout",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const setNetWorkCard = (query: any) => {
  return request({
    url: "/data/api-v/sysset/setNetWorkCard",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const getLangs = (query: any) => {
  return request({
    url: "/data/api-v/sysset/getLangs",
    method: "get",
    data: query
  })
}
export const getLang = (query: any) => {
  return request({
    url: "/data/api-v/sysset/getLang",
    method: "get",
    data: query
  })
}
 
export const getKeyboardLayouts = (query: any) => {
  return request({
    url: "/data/api-v/sysset/getKeyboardLayouts",
    method: "get",
    data: query
  })
}
export const getCurKeyboardLayout = (query: any) => {
  return request({
    url: "/data/api-v/sysset/getDefKeyboardLayout",
    method: "get",
    data: query
  })
}
 
export const setLang = (query: any) => {
  return request({
    url: "/data/api-v/sysset/setLang",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const getNetWorkCardInfo = (query: any) => {
  return request({
    url: "/data/api-v/sysset/getNetWorkCardInfo",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const deleteDate = (query: any) => {
  return request({
    url: "/data/api-v/clearData/deleteEsData",
    method: "post",
    data: query
  })
}
 
export const deleteData = (query: any) => {
  return request({
    url: "/data/api-v/clearData/deleteData",
    method: "post",
    data: query
  })
}
 
export const freedisk = (query: any) => {
  return request({
    url: "/data/api-v/sysset/freedisk",
    method: "get",
    params: query
  })
}
 
export const getAppUpgradeNotice = (query: any) => {
  return request({
    url: "/data/api-v/app/upgrade/notice",
    method: "get",
    params: query
  })
}
 
export const fileUpload = "/data/api-v/sysset/patchUpdate"
 
export const getGb28181AreaList = (query: any) => {
  return request({
    url: "/data/api-v/gb28181/findAreaByParentId",
    method: "get",
    params: query
  })
}
 
export const newGb28181ID = (query: any) => {
  return request({
    url: "/data/api-v/gb28181/newGbId",
    method: "get",
    params: query
  })
}
 
export const checkNewVersion = () => {
  return request({
    url: "/version/check",
    method: "get"
  })
}
 
export const upgradeNewVersion = () => {
  return request({
    url: "/version/upgrade",
    method: "get"
  })
}
 
export const getUpgradeNotice = () => {
  return request({
    url: "/version/notice",
    method: "get"
  })
}
 
export const delayUpgradeNotice = (query: any) => {
  return request({
    url: "/version/notice/delay",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const delayAppNotice = (query: any) => {
  return request({
    url: "/data/api-v/app/upgrade/notice/delay",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const uploadUpgradePkg = (data: any) => {
  return request({
    url: "/version/upload/zip",
    method: "post",
    data
  })
}
 
export const rollback = (query: any) => {
  return request({
    url: "/version/rollback",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const upgradePkg = (query: any) => {
  return request({
    url: "/version/upgrade/zip",
    method: "get",
    params: query
  })
}
 
export const getSettings = () => {
  return request({
    url: "/version/settings",
    method: "get"
  })
}
 
export const updateSettings = (query: any) => {
  return request({
    url: "/version/setting/update",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const getActiveQrCode = (query: any) => {
  return request({
    url: "/version/offline/qrcode",
    method: "get",
    params: query
  })
}
 
export const getSN = (query: any) => {
  return request({
    url: "/version/sn",
    method: "get",
    params: query
  })
}
 
export const cancelAuthorization = (query: any) => {
  return request({
    url: "/version/cancelAuthorization",
    method: "post",
    data: qs.stringify(query),
    responseType: "blob"
  })
}
 
export const activateVersion = (query: any) => {
  return request({
    url: "/version/authorization",
    method: "post",
    data: qs.stringify(query)
  })
}
 
//
export const uploadKey = (data: any) => {
  return request({
    url: "/version/authorization/upload",
    method: "post",
    data
  })
}
 
export const getBakConfig = () => {
  return request({
    url: "/version/autoBak/config",
    method: "get"
  })
}
export const getSmsCode = (query: any) => {
  return request({
    url: "/version/auth/shop/smsCode",
    method: "get",
    params: query
  })
}
 
export const loginShopInSmart = (data: any) => {
  return request({
    url: "/version/auth/shop/login",
    method: "post",
    data: qs.stringify(data)
  })
}
export const activeByOrder = (data: any) => {
  return request({
    url: "/version/auth/shop/activeByOrder",
    method: "post",
    data: qs.stringify(data)
  })
}
export const getShopOrderList = (data: any) => {
  return request({
    url: "/version/auth/shop/getOrderList",
    method: "post",
    data: qs.stringify(data)
  })
}
 
export const setBakConfig = (data: any) => {
  return request({
    url: "/version/autoBak/saveConf",
    method: "post",
    data
  })
}
 
export const backupRN = (data: any) => {
  return request({
    url: "/version/autoBak/backupRN",
    method: "post",
    data
  })
}
 
export const recoverBackup = (data: any) => {
  return request({
    url: "/version/autoBak/recover",
    method: "post",
    data: qs.stringify(data)
  })
}
 
export const getBackupList = () => {
  return request({
    url: "/version/autoBak/list",
    method: "get"
  })
}
 
export const getAuthInfo = () => {
  return request({
    url: "/data/api-v/sysset/showAuthInfo",
    method: "get"
  })
}
export const getVasystemInfo = () => {
  return request({
    url: "/apps/loginData/login.json",
    method: "get"
  })
}
 
export const setAuthInfo = (data: any) => {
  return request({
    url: "/data/api-v/sysset/setAuthInfo",
    method: "post",
    data
  })
}
 
export const getRemoteServer = (data: any) => {
  return request({
    url: "/data/api-v/sysset/getRemoteServer",
    method: "post",
    data
  })
}
 
export const setRemoteServer = (data: any) => {
  return request({
    url: "/data/api-v/sysset/setRemoteServer",
    method: "post",
    data: qs.stringify(data)
  })
}
 
export const getWifiList = (query: any) => {
  return request({
    url: "/data/api-v/sysset/getWifiList",
    method: "post",
    data: qs.stringify(query)
  })
}
 
export const connectWifi = (query: any) => {
  return request({
    url: "/data/api-v/sysset/connectWifi",
    method: "post",
    data: qs.stringify(query)
  })
}