ucservice 1.3.2 → 1.3.5

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/index.js CHANGED
@@ -62,7 +62,7 @@ export const keepHeart = function(token, sip){
62
62
  }, '', net.method);
63
63
  }
64
64
 
65
- export { initCometd, initVideo };
65
+ export { initCometd, initVideo, sha256_digest };
66
66
 
67
67
 
68
68
  export const accountOp = (sip) => {
@@ -110,6 +110,20 @@ export const accountOp = (sip) => {
110
110
  }, '', net.method);
111
111
  });
112
112
  },
113
+ updateDeptPerm: function(param){
114
+ let net = account.updateDeptDataPermission;
115
+ return new Promise((resolve, reject) => {
116
+ loadJson(server_+net.url, { ...param }, function(ret){
117
+ if(ret.code == 0) {
118
+ console.log("账号通讯录权限更新完成", ret.code);
119
+ resolve(ret);
120
+ }else{
121
+ console.log("账号通讯录权限更新失败", ret.code);
122
+ reject(ret.code);
123
+ }
124
+ }, '', net.method);
125
+ });
126
+ },
113
127
  resetPwd: function(param){
114
128
  let net = account.resetPwdNet;
115
129
  return new Promise((resolve, reject) => {
@@ -766,6 +780,19 @@ export const locationOp = (sip) => {
766
780
  }, '', net.method);
767
781
  });
768
782
  },
783
+ gisList: function(param){
784
+ let net = location.listGisTrailNet;
785
+ return new Promise((resolve, reject) => {
786
+ loadJson(server_+net.url, { ...param }, function(ret){
787
+ if(ret.code == 0) {
788
+ resolve(ret);
789
+ }else{
790
+ console.log("获取GIS定位数据失败", ret.code);
791
+ reject(ret.code);
792
+ }
793
+ }, '', net.method);
794
+ });
795
+ },
769
796
  locateDeviceByType: function(param){
770
797
  let net = location.listTypeLocationNet;
771
798
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ucservice",
3
3
  "private": false,
4
- "version": "1.3.2",
4
+ "version": "1.3.5",
5
5
  "description": "统一通信服务",
6
6
  "main": "dist/ucservice.common.js",
7
7
  "style": "ucservice.css",
@@ -314,6 +314,22 @@ let account = {
314
314
  }
315
315
  },
316
316
 
317
+ updateDeptDataPermission: { //更新账号通讯录权限
318
+ url: '/scooper-core-rest/data/system/permisions/pmDataRPermManage/updatePmDataRPerm',
319
+ requestParam: {
320
+ accId: '',
321
+ deptOrgCodes: '' //a:*代表完整的通讯录
322
+ },
323
+ responseParam: {
324
+ code: '', //返回结果状态码
325
+ message: '',
326
+ systemTime: '', //yyyy-MM-dd HH:mm:ss
327
+ data: {
328
+ obj: 0
329
+ }
330
+ }
331
+ },
332
+
317
333
  getAccountDetailNet: { //查询帐号详情
318
334
  /**
319
335
  * 根据id,validToken,accUsername获取账号信息
@@ -130,6 +130,58 @@ let location = {
130
130
  }
131
131
  },
132
132
 
133
+ listGisTrailNet: { //查询gis轨迹数据
134
+ /***
135
+ **/
136
+ url: '/scooper-app-msg/gis/queryGisTrails',
137
+ method: 'GET',
138
+ requestParam: {
139
+ startTime: '',
140
+ endTime: '',
141
+ timespan: '',
142
+ memId: '',
143
+ accId: '',
144
+ token: '',
145
+ pageNumber: 1,
146
+ pageSize: 50
147
+ },
148
+ responseParam: {
149
+ code: '', //返回结果状态码
150
+ message: '',
151
+ systemTime: '', //yyyy-MM-dd HH:mm:ss
152
+ data: {
153
+ total: '',
154
+ pageSize: '',
155
+ pageNumber: '',
156
+ list: [{
157
+ altitude: 0,
158
+ center: {longitude: 120.026576, latitude: 30.823369},
159
+ childMapId: 0,
160
+ corpId: 0,
161
+ evtLevel: 0,
162
+ extData: "",
163
+ geoHash: "wtmr770xjumy",
164
+ hasChild: false,
165
+ id: 1,
166
+ layerId: 1,
167
+ layerLogicName: "person",
168
+ mapId: 0,
169
+ name: "单兵01",
170
+ parentId: 0,
171
+ permKey: "300000.000002.002",
172
+ points: [{longitude: 0, latitude: 0}],
173
+ posStatus: "offline",
174
+ propKey: "6",
175
+ rectMax: {longitude: 120.026576, latitude: 30.823369},
176
+ rectMin: {longitude: 120.026576, latitude: 30.823369},
177
+ speed: 0,
178
+ type: "Point",
179
+ updateTime: "2022-04-22 14:21:30"
180
+ }]
181
+ }
182
+ }
183
+ },
184
+
133
185
  listTypeLocationNet: { //按类型查询设备点位信息
134
186
  /***按类型查询,类型:1.移动点位:person, 2.固定点位:fixed, 3.视频监控:camera
135
187
  **/