nayota-show-sdk 1.3.38 → 1.3.40

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/api/devices.js CHANGED
@@ -365,6 +365,14 @@ export function updateDepart(data) {
365
365
  })
366
366
  }
367
367
 
368
+ export function updateProp(data) {
369
+ return request({
370
+ url: '/devices/updateProp',
371
+ method: 'post',
372
+ data
373
+ })
374
+ }
375
+
368
376
  export default {
369
377
  list,
370
378
  create,
@@ -375,5 +383,6 @@ export default {
375
383
  getOne,
376
384
  easyList,
377
385
  getPropHistoryData,
378
- updateDepart
386
+ updateDepart,
387
+ updateProp
379
388
  }
@@ -119,7 +119,7 @@ export function deleteMany(ids) {
119
119
  }
120
120
 
121
121
  /**
122
- * 计算时间范围内的能耗数据
122
+ * 计算时间范围内的每天的能耗数据
123
123
  * @param {Object} data - 能耗计算数据
124
124
  * @param {string} [data.startDate] - 开始日期
125
125
  * @param {string} [data.endDate] - 结束日期
package/api/product.js CHANGED
@@ -446,6 +446,728 @@ function importDeviceExcel(data) {
446
446
  })
447
447
  }
448
448
 
449
+
450
+
451
+ /**
452
+ * knx设备导入
453
+ * @param {Object} data - 导入设备所需参数
454
+ * @param {array} data.gateways - knx工程转换后json数组
455
+ * @param {string} data.depart - 设备所属层级ID
456
+ * @param {string} data.control - 网关ID
457
+ * @example
458
+ * {
459
+ * gateways: [
460
+ {
461
+ "gatewayName": "网关1.1.1",
462
+ "gatewayIp": "172.16.253.101",
463
+ "devices": [
464
+ {
465
+ "deviceName": "4FA区开关",
466
+ "location": "4FA区",
467
+ "type": "S104",
468
+ "channelCount": 4,
469
+ "physicalAddress": "1.1.4",
470
+ "productId": "M-026D_H-02-1-O010F_P-S104",
471
+ "gateway": "172.16.253.101",
472
+ "channels": [
473
+ {
474
+ "channel": 1,
475
+ "channelName": "开关1",
476
+ "commandAddress": "0/0/1",
477
+ "statusAddress": "0/1/0",
478
+ "dpt": "1.001"
479
+ },
480
+ {
481
+ "channel": 2,
482
+ "channelName": "开关2",
483
+ "commandAddress": "0/0/2",
484
+ "statusAddress": "0/1/1",
485
+ "dpt": "1.001"
486
+ },
487
+ {
488
+ "channel": 3,
489
+ "channelName": "开关3",
490
+ "commandAddress": "0/0/3",
491
+ "statusAddress": "0/1/2",
492
+ "dpt": "1.001"
493
+ },
494
+ {
495
+ "channel": 4,
496
+ "channelName": "开关4",
497
+ "commandAddress": "0/0/4",
498
+ "statusAddress": "0/1/3",
499
+ "dpt": "1.001"
500
+ }
501
+ ]
502
+ },
503
+ {
504
+ "deviceName": "5FA区开关",
505
+ "location": "5FA区",
506
+ "type": "S104",
507
+ "channelCount": 4,
508
+ "physicalAddress": "1.1.5",
509
+ "productId": "M-026D_H-02-1-O010F_P-S104",
510
+ "gateway": "172.16.253.101",
511
+ "channels": [
512
+ {
513
+ "channel": 1,
514
+ "channelName": "开关1",
515
+ "commandAddress": "0/0/5",
516
+ "statusAddress": "0/1/4",
517
+ "dpt": "1.001"
518
+ },
519
+ {
520
+ "channel": 2,
521
+ "channelName": "开关2",
522
+ "commandAddress": "0/0/6",
523
+ "statusAddress": "0/1/5",
524
+ "dpt": "1.001"
525
+ },
526
+ {
527
+ "channel": 3,
528
+ "channelName": "开关3",
529
+ "commandAddress": "0/0/7",
530
+ "statusAddress": "0/1/6",
531
+ "dpt": "1.001"
532
+ },
533
+ {
534
+ "channel": 4,
535
+ "channelName": "开关4",
536
+ "commandAddress": "0/0/8",
537
+ "statusAddress": "0/1/7",
538
+ "dpt": "1.001"
539
+ }
540
+ ]
541
+ },
542
+ {
543
+ "deviceName": "6FA区开关",
544
+ "location": "6FA区",
545
+ "type": "S104",
546
+ "channelCount": 4,
547
+ "physicalAddress": "1.1.6",
548
+ "productId": "M-026D_H-02-1-O010F_P-S104",
549
+ "gateway": "172.16.253.101",
550
+ "channels": [
551
+ {
552
+ "channel": 1,
553
+ "channelName": "开关1",
554
+ "commandAddress": "0/0/9",
555
+ "statusAddress": "0/1/8",
556
+ "dpt": "1.001"
557
+ },
558
+ {
559
+ "channel": 2,
560
+ "channelName": "开关2",
561
+ "commandAddress": "0/0/10",
562
+ "statusAddress": "0/1/9",
563
+ "dpt": "1.001"
564
+ },
565
+ {
566
+ "channel": 3,
567
+ "channelName": "开关3",
568
+ "commandAddress": "0/0/11",
569
+ "statusAddress": "0/1/10",
570
+ "dpt": "1.001"
571
+ },
572
+ {
573
+ "channel": 4,
574
+ "channelName": "开关4",
575
+ "commandAddress": "0/0/12",
576
+ "statusAddress": "0/1/11",
577
+ "dpt": "1.001"
578
+ }
579
+ ]
580
+ },
581
+ {
582
+ "deviceName": "开关",
583
+ "location": "",
584
+ "type": "S108",
585
+ "channelCount": 8,
586
+ "physicalAddress": "1.1.3",
587
+ "productId": "M-026D_H-03-1-O010F_P-S108",
588
+ "gateway": "172.16.253.101",
589
+ "channels": [
590
+ {
591
+ "channel": 1,
592
+ "channelName": "开关1",
593
+ "commandAddress": "1/1/0",
594
+ "statusAddress": "1/1/8",
595
+ "dpt": "1.001"
596
+ },
597
+ {
598
+ "channel": 2,
599
+ "channelName": "开关2",
600
+ "commandAddress": "1/1/1",
601
+ "statusAddress": "1/1/9",
602
+ "dpt": "1.001"
603
+ },
604
+ {
605
+ "channel": 3,
606
+ "channelName": "开关3",
607
+ "commandAddress": "1/1/2",
608
+ "statusAddress": "1/1/10",
609
+ "dpt": "1.001"
610
+ },
611
+ {
612
+ "channel": 4,
613
+ "channelName": "开关4",
614
+ "commandAddress": "1/1/3",
615
+ "statusAddress": "1/1/11",
616
+ "dpt": "1.001"
617
+ },
618
+ {
619
+ "channel": 5,
620
+ "channelName": "开关5",
621
+ "commandAddress": "1/1/4",
622
+ "statusAddress": "1/1/12",
623
+ "dpt": "1.001"
624
+ },
625
+ {
626
+ "channel": 6,
627
+ "channelName": "开关6",
628
+ "commandAddress": "1/1/5",
629
+ "statusAddress": "1/1/13",
630
+ "dpt": "1.001"
631
+ },
632
+ {
633
+ "channel": 7,
634
+ "channelName": "开关7",
635
+ "commandAddress": "1/1/6",
636
+ "statusAddress": "1/1/14",
637
+ "dpt": "1.001"
638
+ },
639
+ {
640
+ "channel": 8,
641
+ "channelName": "开关8",
642
+ "commandAddress": "1/1/7",
643
+ "statusAddress": "1/1/15",
644
+ "dpt": "1.001"
645
+ }
646
+ ]
647
+ },
648
+ {
649
+ "deviceName": "调光模块",
650
+ "location": "未命名区域",
651
+ "type": "D106.1",
652
+ "channelCount": 6,
653
+ "physicalAddress": "1.1.7",
654
+ "productId": "M-026D_H-0106-1-O017A_P-D106.2E1",
655
+ "gateway": "172.16.253.101",
656
+ "channels": [
657
+ {
658
+ "channel": 1,
659
+ "channelName": "开关1",
660
+ "commandAddress": "1/0/0",
661
+ "statusAddress": "1/0/4",
662
+ "dpt": "1.001"
663
+ },
664
+ {
665
+ "channel": 2,
666
+ "channelName": "开关2",
667
+ "commandAddress": "1/0/1",
668
+ "statusAddress": "1/0/5",
669
+ "dpt": "1.001"
670
+ },
671
+ {
672
+ "channel": 3,
673
+ "channelName": "开关3",
674
+ "commandAddress": "1/0/2",
675
+ "statusAddress": "1/0/6",
676
+ "dpt": "1.001"
677
+ },
678
+ {
679
+ "channel": 4,
680
+ "channelName": "开关4",
681
+ "commandAddress": "1/0/3",
682
+ "statusAddress": "1/0/7",
683
+ "dpt": "1.001"
684
+ },
685
+ {
686
+ "channel": 5,
687
+ "channelName": "开关5",
688
+ "commandAddress": "1/0/8",
689
+ "statusAddress": "1/0/9",
690
+ "dpt": "1.001"
691
+ },
692
+ {
693
+ "channel": 6,
694
+ "channelName": "开关6",
695
+ "commandAddress": "1/0/10",
696
+ "statusAddress": "1/0/11",
697
+ "dpt": "1.001"
698
+ }
699
+ ]
700
+ }
701
+ ]
702
+ },
703
+ {
704
+ "gatewayName": "网关1.2.0",
705
+ "gatewayIp": "172.16.253.102",
706
+ "devices": [
707
+ {
708
+ "deviceName": "4FB区开关",
709
+ "location": "4FB区",
710
+ "type": "S104",
711
+ "channelCount": 4,
712
+ "physicalAddress": "1.2.1",
713
+ "productId": "M-026D_H-02-1-O010F_P-S104",
714
+ "gateway": "172.16.253.102",
715
+ "channels": [
716
+ {
717
+ "channel": 1,
718
+ "channelName": "开关1",
719
+ "commandAddress": "0/2/0",
720
+ "statusAddress": "0/3/0",
721
+ "dpt": "1.001"
722
+ },
723
+ {
724
+ "channel": 2,
725
+ "channelName": "开关2",
726
+ "commandAddress": "0/2/1",
727
+ "statusAddress": "0/3/1",
728
+ "dpt": "1.001"
729
+ },
730
+ {
731
+ "channel": 3,
732
+ "channelName": "开关3",
733
+ "commandAddress": "0/2/2",
734
+ "statusAddress": "0/3/2",
735
+ "dpt": "1.001"
736
+ },
737
+ {
738
+ "channel": 4,
739
+ "channelName": "开关4",
740
+ "commandAddress": "0/2/3",
741
+ "statusAddress": "0/3/3",
742
+ "dpt": "1.001"
743
+ }
744
+ ]
745
+ },
746
+ {
747
+ "deviceName": "5FB区开关",
748
+ "location": "5FB区",
749
+ "type": "S104",
750
+ "channelCount": 4,
751
+ "physicalAddress": "1.2.2",
752
+ "productId": "M-026D_H-02-1-O010F_P-S104",
753
+ "gateway": "172.16.253.102",
754
+ "channels": [
755
+ {
756
+ "channel": 1,
757
+ "channelName": "开关1",
758
+ "commandAddress": "0/2/4",
759
+ "statusAddress": "0/3/4",
760
+ "dpt": "1.001"
761
+ },
762
+ {
763
+ "channel": 2,
764
+ "channelName": "开关2",
765
+ "commandAddress": "0/2/5",
766
+ "statusAddress": "0/3/5",
767
+ "dpt": "1.001"
768
+ },
769
+ {
770
+ "channel": 3,
771
+ "channelName": "开关3",
772
+ "commandAddress": "0/2/6",
773
+ "statusAddress": "0/3/6",
774
+ "dpt": "1.001"
775
+ },
776
+ {
777
+ "channel": 4,
778
+ "channelName": "开关4",
779
+ "commandAddress": "0/2/7",
780
+ "statusAddress": "0/3/7",
781
+ "dpt": "1.001"
782
+ }
783
+ ]
784
+ },
785
+ {
786
+ "deviceName": "6FB区开关",
787
+ "location": "6FB区",
788
+ "type": "S104",
789
+ "channelCount": 4,
790
+ "physicalAddress": "1.2.3",
791
+ "productId": "M-026D_H-02-1-O010F_P-S104",
792
+ "gateway": "172.16.253.102",
793
+ "channels": [
794
+ {
795
+ "channel": 1,
796
+ "channelName": "开关1",
797
+ "commandAddress": "0/2/8",
798
+ "statusAddress": "0/3/8",
799
+ "dpt": "1.001"
800
+ },
801
+ {
802
+ "channel": 2,
803
+ "channelName": "开关2",
804
+ "commandAddress": "0/2/9",
805
+ "statusAddress": "0/3/9",
806
+ "dpt": "1.001"
807
+ },
808
+ {
809
+ "channel": 3,
810
+ "channelName": "开关3",
811
+ "commandAddress": "0/2/10",
812
+ "statusAddress": "0/3/10",
813
+ "dpt": "1.001"
814
+ },
815
+ {
816
+ "channel": 4,
817
+ "channelName": "开关4",
818
+ "commandAddress": "0/2/11",
819
+ "statusAddress": "0/3/11",
820
+ "dpt": "1.001"
821
+ }
822
+ ]
823
+ }
824
+ ]
825
+ },
826
+ {
827
+ "gatewayName": "网关1.3.0",
828
+ "gatewayIp": "172.16.253.103",
829
+ "devices": [
830
+ {
831
+ "deviceName": "4FD1模块开关",
832
+ "location": "4FD1模块",
833
+ "type": "S104",
834
+ "channelCount": 4,
835
+ "physicalAddress": "1.3.1",
836
+ "productId": "M-026D_H-02-1-O010F_P-S104",
837
+ "gateway": "172.16.253.103",
838
+ "channels": [
839
+ {
840
+ "channel": 1,
841
+ "channelName": "开关1",
842
+ "commandAddress": "0/6/0",
843
+ "statusAddress": "0/7/0",
844
+ "dpt": "1.001"
845
+ },
846
+ {
847
+ "channel": 2,
848
+ "channelName": "开关2",
849
+ "commandAddress": "0/6/1",
850
+ "statusAddress": "0/7/1",
851
+ "dpt": "1.001"
852
+ },
853
+ {
854
+ "channel": 3,
855
+ "channelName": "开关3",
856
+ "commandAddress": "0/6/2",
857
+ "statusAddress": "0/7/2",
858
+ "dpt": "1.001"
859
+ },
860
+ {
861
+ "channel": 4,
862
+ "channelName": "开关4",
863
+ "commandAddress": "0/6/3",
864
+ "statusAddress": "0/7/3",
865
+ "dpt": "1.001"
866
+ }
867
+ ]
868
+ },
869
+ {
870
+ "deviceName": "4FC区开关",
871
+ "location": "4FC区",
872
+ "type": "S104",
873
+ "channelCount": 4,
874
+ "physicalAddress": "1.3.2",
875
+ "productId": "M-026D_H-02-1-O010F_P-S104",
876
+ "gateway": "172.16.253.103",
877
+ "channels": [
878
+ {
879
+ "channel": 1,
880
+ "channelName": "开关1",
881
+ "commandAddress": "0/4/0",
882
+ "statusAddress": "0/5/0",
883
+ "dpt": "1.001"
884
+ },
885
+ {
886
+ "channel": 2,
887
+ "channelName": "开关2",
888
+ "commandAddress": "0/4/1",
889
+ "statusAddress": "0/5/1",
890
+ "dpt": "1.001"
891
+ },
892
+ {
893
+ "channel": 3,
894
+ "channelName": "开关3",
895
+ "commandAddress": "0/4/2",
896
+ "statusAddress": "0/5/2",
897
+ "dpt": "1.001"
898
+ },
899
+ {
900
+ "channel": 4,
901
+ "channelName": "开关4",
902
+ "commandAddress": "0/4/3",
903
+ "statusAddress": "0/5/3",
904
+ "dpt": "1.001"
905
+ }
906
+ ]
907
+ },
908
+ {
909
+ "deviceName": "6FC区开关",
910
+ "location": "6FC区",
911
+ "type": "S104",
912
+ "channelCount": 4,
913
+ "physicalAddress": "1.3.3",
914
+ "productId": "M-026D_H-02-1-O010F_P-S104",
915
+ "gateway": "172.16.253.103",
916
+ "channels": [
917
+ {
918
+ "channel": 1,
919
+ "channelName": "开关1",
920
+ "commandAddress": "0/4/8",
921
+ "statusAddress": "0/5/8",
922
+ "dpt": "1.001"
923
+ },
924
+ {
925
+ "channel": 2,
926
+ "channelName": "开关2",
927
+ "commandAddress": "0/4/9",
928
+ "statusAddress": "0/5/9",
929
+ "dpt": "1.001"
930
+ },
931
+ {
932
+ "channel": 3,
933
+ "channelName": "开关3",
934
+ "commandAddress": "0/4/10",
935
+ "statusAddress": "0/5/10",
936
+ "dpt": "1.001"
937
+ },
938
+ {
939
+ "channel": 4,
940
+ "channelName": "开关4",
941
+ "commandAddress": "0/4/11",
942
+ "statusAddress": "0/5/11",
943
+ "dpt": "1.001"
944
+ }
945
+ ]
946
+ },
947
+ {
948
+ "deviceName": "5FC区开关",
949
+ "location": "5FC区",
950
+ "type": "S104",
951
+ "channelCount": 4,
952
+ "physicalAddress": "1.3.4",
953
+ "productId": "M-026D_H-02-1-O010F_P-S104",
954
+ "gateway": "172.16.253.103",
955
+ "channels": [
956
+ {
957
+ "channel": 1,
958
+ "channelName": "开关1",
959
+ "commandAddress": "0/4/4",
960
+ "statusAddress": "0/5/4",
961
+ "dpt": "1.001"
962
+ },
963
+ {
964
+ "channel": 2,
965
+ "channelName": "开关2",
966
+ "commandAddress": "0/4/5",
967
+ "statusAddress": "0/5/5",
968
+ "dpt": "1.001"
969
+ },
970
+ {
971
+ "channel": 3,
972
+ "channelName": "开关3",
973
+ "commandAddress": "0/4/6",
974
+ "statusAddress": "0/5/6",
975
+ "dpt": "1.001"
976
+ },
977
+ {
978
+ "channel": 4,
979
+ "channelName": "开关4",
980
+ "commandAddress": "0/4/7",
981
+ "statusAddress": "0/5/7",
982
+ "dpt": "1.001"
983
+ }
984
+ ]
985
+ },
986
+ {
987
+ "deviceName": "4FD2模块开关",
988
+ "location": "4FD2模块",
989
+ "type": "S104",
990
+ "channelCount": 4,
991
+ "physicalAddress": "1.3.5",
992
+ "productId": "M-026D_H-02-1-O010F_P-S104",
993
+ "gateway": "172.16.253.103",
994
+ "channels": [
995
+ {
996
+ "channel": 1,
997
+ "channelName": "开关1",
998
+ "commandAddress": "0/6/4",
999
+ "statusAddress": "0/7/4",
1000
+ "dpt": "1.001"
1001
+ },
1002
+ {
1003
+ "channel": 2,
1004
+ "channelName": "开关2",
1005
+ "commandAddress": "0/6/5",
1006
+ "statusAddress": "0/7/5",
1007
+ "dpt": "1.001"
1008
+ },
1009
+ {
1010
+ "channel": 3,
1011
+ "channelName": "开关3",
1012
+ "commandAddress": "0/6/6",
1013
+ "statusAddress": "0/7/6",
1014
+ "dpt": "1.001"
1015
+ },
1016
+ {
1017
+ "channel": 4,
1018
+ "channelName": "开关4",
1019
+ "commandAddress": "0/6/7",
1020
+ "statusAddress": "0/7/7",
1021
+ "dpt": "1.001"
1022
+ }
1023
+ ]
1024
+ }
1025
+ ]
1026
+ },
1027
+ {
1028
+ "gatewayName": "网关1.4.0",
1029
+ "gatewayIp": "172.16.253.104",
1030
+ "devices": [
1031
+ {
1032
+ "deviceName": "6FD区开关",
1033
+ "location": "6FD区",
1034
+ "type": "S104",
1035
+ "channelCount": 4,
1036
+ "physicalAddress": "1.4.1",
1037
+ "productId": "M-026D_H-02-1-O010F_P-S104",
1038
+ "gateway": "172.16.253.104",
1039
+ "channels": [
1040
+ {
1041
+ "channel": 1,
1042
+ "channelName": "开关1",
1043
+ "commandAddress": "0/6/12",
1044
+ "statusAddress": "0/7/16",
1045
+ "dpt": "1.001"
1046
+ },
1047
+ {
1048
+ "channel": 2,
1049
+ "channelName": "开关2",
1050
+ "commandAddress": "0/6/13",
1051
+ "statusAddress": "0/7/17",
1052
+ "dpt": "1.001"
1053
+ },
1054
+ {
1055
+ "channel": 3,
1056
+ "channelName": "开关3",
1057
+ "commandAddress": "0/6/14",
1058
+ "statusAddress": "0/7/18",
1059
+ "dpt": "1.001"
1060
+ },
1061
+ {
1062
+ "channel": 4,
1063
+ "channelName": "开关4",
1064
+ "commandAddress": "0/6/15",
1065
+ "statusAddress": "0/7/19",
1066
+ "dpt": "1.001"
1067
+ }
1068
+ ]
1069
+ },
1070
+ {
1071
+ "deviceName": "4FE区开关",
1072
+ "location": "4FE区",
1073
+ "type": "S104",
1074
+ "channelCount": 4,
1075
+ "physicalAddress": "1.4.2",
1076
+ "productId": "M-026D_H-02-1-O010F_P-S104",
1077
+ "gateway": "172.16.253.104",
1078
+ "channels": [
1079
+ {
1080
+ "channel": 1,
1081
+ "channelName": "开关1",
1082
+ "commandAddress": "0/6/16",
1083
+ "statusAddress": "0/7/8",
1084
+ "dpt": "1.001"
1085
+ },
1086
+ {
1087
+ "channel": 2,
1088
+ "channelName": "开关2",
1089
+ "commandAddress": "0/6/17",
1090
+ "statusAddress": "0/7/9",
1091
+ "dpt": "1.001"
1092
+ },
1093
+ {
1094
+ "channel": 3,
1095
+ "channelName": "开关3",
1096
+ "commandAddress": "0/6/18",
1097
+ "statusAddress": "0/7/10",
1098
+ "dpt": "1.001"
1099
+ },
1100
+ {
1101
+ "channel": 4,
1102
+ "channelName": "开关4",
1103
+ "commandAddress": "0/6/19",
1104
+ "statusAddress": "0/7/11",
1105
+ "dpt": "1.001"
1106
+ }
1107
+ ]
1108
+ },
1109
+ {
1110
+ "deviceName": "5FD区开关",
1111
+ "location": "5FD区",
1112
+ "type": "S104",
1113
+ "channelCount": 4,
1114
+ "physicalAddress": "1.4.3",
1115
+ "productId": "M-026D_H-02-1-O010F_P-S104",
1116
+ "gateway": "172.16.253.104",
1117
+ "channels": [
1118
+ {
1119
+ "channel": 1,
1120
+ "channelName": "开关1",
1121
+ "commandAddress": "0/6/8",
1122
+ "statusAddress": "0/7/12",
1123
+ "dpt": "1.001"
1124
+ },
1125
+ {
1126
+ "channel": 2,
1127
+ "channelName": "开关2",
1128
+ "commandAddress": "0/6/9",
1129
+ "statusAddress": "0/7/13",
1130
+ "dpt": "1.001"
1131
+ },
1132
+ {
1133
+ "channel": 3,
1134
+ "channelName": "开关3",
1135
+ "commandAddress": "0/6/10",
1136
+ "statusAddress": "0/7/14",
1137
+ "dpt": "1.001"
1138
+ },
1139
+ {
1140
+ "channel": 4,
1141
+ "channelName": "开关4",
1142
+ "commandAddress": "0/6/11",
1143
+ "statusAddress": "0/7/15",
1144
+ "dpt": "1.001"
1145
+ }
1146
+ ]
1147
+ }
1148
+ ]
1149
+ }
1150
+ ],
1151
+ * depart: '67dd18a75b1ddb0008429dc0',
1152
+ * control: '67dd188faaf8df0b67b2ac0d',
1153
+ * }
1154
+ * @returns {Object} result - 返回结果
1155
+ * @returns {number} result.code - 返回码,0表示成功
1156
+ * @returns {string} result.msg - 返回信息,如"导入成功"
1157
+ * @example
1158
+ * {
1159
+ * code: 0,
1160
+ * msg: "导入成功",
1161
+ * }
1162
+ */
1163
+ function importKnxDevice(data) {
1164
+ return requestShow({
1165
+ url: `/products/importKnxDevice`,
1166
+ method: 'post',
1167
+ data
1168
+ })
1169
+ }
1170
+
449
1171
  export default {
450
1172
  createAllDevice,
451
1173
  create,
@@ -454,5 +1176,6 @@ export default {
454
1176
  updateOne,
455
1177
  deleteOne,
456
1178
  deleteMany,
457
- importDeviceExcel
1179
+ importDeviceExcel,
1180
+ importKnxDevice
458
1181
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nayota-show-sdk",
3
- "version": "1.3.38",
3
+ "version": "1.3.40",
4
4
  "description": "nayota-show-server rest-api",
5
5
  "type": "module",
6
6
  "main": "index.js",