ucservice 1.0.0
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 +1073 -0
- package/package.json +37 -0
- package/src/common-request.js +147 -0
- package/src/config.js +13 -0
- package/src/css/scooper.video.css +209 -0
- package/src/lib/cometd.js +3286 -0
- package/src/lib/janus.js +3413 -0
- package/src/lib/sha256.js +250 -0
- package/src/net_url/account_net_url.js +449 -0
- package/src/net_url/aduio_net_url.js +337 -0
- package/src/net_url/aduio_video_net_url.js +187 -0
- package/src/net_url/dept_ry_url.js +467 -0
- package/src/net_url/dept_url.js +455 -0
- package/src/net_url/location_url.js +188 -0
- package/src/net_url/meet_url.js +271 -0
- package/src/net_url/message_url.js +432 -0
- package/src/net_url/record_url.js +183 -0
- package/src/net_url/video_net_url.js +79 -0
- package/src/scooper.video.js +3083 -0
- package/vue.config.js +32 -0
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A JavaScript implementation of the SHA256 hash function.
|
|
3
|
+
*
|
|
4
|
+
* FILE: sha256.js
|
|
5
|
+
* VERSION: 0.8
|
|
6
|
+
* AUTHOR: Christoph Bichlmeier <informatik@zombiearena.de>
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This version is not tested thoroughly!
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2003, Christoph Bichlmeier
|
|
11
|
+
* All rights reserved.
|
|
12
|
+
*
|
|
13
|
+
* Redistribution and use in source and binary forms, with or without
|
|
14
|
+
* modification, are permitted provided that the following conditions
|
|
15
|
+
* are met:
|
|
16
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
17
|
+
* notice, this list of conditions and the following disclaimer.
|
|
18
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
19
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
20
|
+
* documentation and/or other materials provided with the distribution.
|
|
21
|
+
* 3. Neither the name of the copyright holder nor the names of contributors
|
|
22
|
+
* may be used to endorse or promote products derived from this software
|
|
23
|
+
* without specific prior written permission.
|
|
24
|
+
*
|
|
25
|
+
* ======================================================================
|
|
26
|
+
*
|
|
27
|
+
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS
|
|
28
|
+
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
29
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
30
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
|
|
31
|
+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
32
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
33
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
|
34
|
+
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
35
|
+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
|
36
|
+
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
37
|
+
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/* SHA256 logical functions */
|
|
41
|
+
function rotateRight(n,x) {
|
|
42
|
+
return ((x >>> n) | (x << (32 - n)));
|
|
43
|
+
}
|
|
44
|
+
function choice(x,y,z) {
|
|
45
|
+
return ((x & y) ^ (~x & z));
|
|
46
|
+
}
|
|
47
|
+
function majority(x,y,z) {
|
|
48
|
+
return ((x & y) ^ (x & z) ^ (y & z));
|
|
49
|
+
}
|
|
50
|
+
function sha256_Sigma0(x) {
|
|
51
|
+
return (rotateRight(2, x) ^ rotateRight(13, x) ^ rotateRight(22, x));
|
|
52
|
+
}
|
|
53
|
+
function sha256_Sigma1(x) {
|
|
54
|
+
return (rotateRight(6, x) ^ rotateRight(11, x) ^ rotateRight(25, x));
|
|
55
|
+
}
|
|
56
|
+
function sha256_sigma0(x) {
|
|
57
|
+
return (rotateRight(7, x) ^ rotateRight(18, x) ^ (x >>> 3));
|
|
58
|
+
}
|
|
59
|
+
function sha256_sigma1(x) {
|
|
60
|
+
return (rotateRight(17, x) ^ rotateRight(19, x) ^ (x >>> 10));
|
|
61
|
+
}
|
|
62
|
+
function sha256_expand(W, j) {
|
|
63
|
+
return (W[j&0x0f] += sha256_sigma1(W[(j+14)&0x0f]) + W[(j+9)&0x0f] +
|
|
64
|
+
sha256_sigma0(W[(j+1)&0x0f]));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Hash constant words K: */
|
|
68
|
+
var K256 = new Array(
|
|
69
|
+
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
|
|
70
|
+
0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
|
|
71
|
+
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
|
|
72
|
+
0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
|
|
73
|
+
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
|
|
74
|
+
0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
|
|
75
|
+
0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
|
|
76
|
+
0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
|
|
77
|
+
0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
|
|
78
|
+
0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
|
|
79
|
+
0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
|
|
80
|
+
0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
|
|
81
|
+
0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
|
|
82
|
+
0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
|
|
83
|
+
0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
|
|
84
|
+
0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
/* global arrays */
|
|
88
|
+
var ihash, count, buffer;
|
|
89
|
+
var sha256_hex_digits = "0123456789abcdef";
|
|
90
|
+
|
|
91
|
+
/* Add 32-bit integers with 16-bit operations (bug in some JS-interpreters:
|
|
92
|
+
overflow) */
|
|
93
|
+
function safe_add(x, y)
|
|
94
|
+
{
|
|
95
|
+
var lsw = (x & 0xffff) + (y & 0xffff);
|
|
96
|
+
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
|
97
|
+
return (msw << 16) | (lsw & 0xffff);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Initialise the SHA256 computation */
|
|
101
|
+
function sha256_init() {
|
|
102
|
+
ihash = new Array(8);
|
|
103
|
+
count = new Array(2);
|
|
104
|
+
buffer = new Array(64);
|
|
105
|
+
count[0] = count[1] = 0;
|
|
106
|
+
ihash[0] = 0x6a09e667;
|
|
107
|
+
ihash[1] = 0xbb67ae85;
|
|
108
|
+
ihash[2] = 0x3c6ef372;
|
|
109
|
+
ihash[3] = 0xa54ff53a;
|
|
110
|
+
ihash[4] = 0x510e527f;
|
|
111
|
+
ihash[5] = 0x9b05688c;
|
|
112
|
+
ihash[6] = 0x1f83d9ab;
|
|
113
|
+
ihash[7] = 0x5be0cd19;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Transform a 512-bit message block */
|
|
117
|
+
function sha256_transform() {
|
|
118
|
+
var a, b, c, d, e, f, g, h, T1, T2;
|
|
119
|
+
var W = new Array(16);
|
|
120
|
+
|
|
121
|
+
/* Initialize registers with the previous intermediate value */
|
|
122
|
+
a = ihash[0];
|
|
123
|
+
b = ihash[1];
|
|
124
|
+
c = ihash[2];
|
|
125
|
+
d = ihash[3];
|
|
126
|
+
e = ihash[4];
|
|
127
|
+
f = ihash[5];
|
|
128
|
+
g = ihash[6];
|
|
129
|
+
h = ihash[7];
|
|
130
|
+
|
|
131
|
+
/* make 32-bit words */
|
|
132
|
+
for(var i=0; i<16; i++)
|
|
133
|
+
W[i] = ((buffer[(i<<2)+3]) | (buffer[(i<<2)+2] << 8) | (buffer[(i<<2)+1]
|
|
134
|
+
<< 16) | (buffer[i<<2] << 24));
|
|
135
|
+
|
|
136
|
+
for(var j=0; j<64; j++) {
|
|
137
|
+
T1 = h + sha256_Sigma1(e) + choice(e, f, g) + K256[j];
|
|
138
|
+
if(j < 16) T1 += W[j];
|
|
139
|
+
else T1 += sha256_expand(W, j);
|
|
140
|
+
T2 = sha256_Sigma0(a) + majority(a, b, c);
|
|
141
|
+
h = g;
|
|
142
|
+
g = f;
|
|
143
|
+
f = e;
|
|
144
|
+
e = safe_add(d, T1);
|
|
145
|
+
d = c;
|
|
146
|
+
c = b;
|
|
147
|
+
b = a;
|
|
148
|
+
a = safe_add(T1, T2);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Compute the current intermediate hash value */
|
|
152
|
+
ihash[0] += a;
|
|
153
|
+
ihash[1] += b;
|
|
154
|
+
ihash[2] += c;
|
|
155
|
+
ihash[3] += d;
|
|
156
|
+
ihash[4] += e;
|
|
157
|
+
ihash[5] += f;
|
|
158
|
+
ihash[6] += g;
|
|
159
|
+
ihash[7] += h;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* Read the next chunk of data and update the SHA256 computation */
|
|
163
|
+
function sha256_update(data, inputLen) {
|
|
164
|
+
var i, index, curpos = 0;
|
|
165
|
+
/* Compute number of bytes mod 64 */
|
|
166
|
+
index = ((count[0] >> 3) & 0x3f);
|
|
167
|
+
var remainder = (inputLen & 0x3f);
|
|
168
|
+
|
|
169
|
+
/* Update number of bits */
|
|
170
|
+
if ((count[0] += (inputLen << 3)) < (inputLen << 3)) count[1]++;
|
|
171
|
+
count[1] += (inputLen >> 29);
|
|
172
|
+
|
|
173
|
+
/* Transform as many times as possible */
|
|
174
|
+
for(i=0; i+63<inputLen; i+=64) {
|
|
175
|
+
for(var j=index; j<64; j++)
|
|
176
|
+
buffer[j] = data.charCodeAt(curpos++);
|
|
177
|
+
sha256_transform();
|
|
178
|
+
index = 0;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/* Buffer remaining input */
|
|
182
|
+
for(var j=0; j<remainder; j++)
|
|
183
|
+
buffer[j] = data.charCodeAt(curpos++);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* Finish the computation by operations such as padding */
|
|
187
|
+
function sha256_final() {
|
|
188
|
+
var index = ((count[0] >> 3) & 0x3f);
|
|
189
|
+
buffer[index++] = 0x80;
|
|
190
|
+
if(index <= 56) {
|
|
191
|
+
for(var i=index; i<56; i++)
|
|
192
|
+
buffer[i] = 0;
|
|
193
|
+
} else {
|
|
194
|
+
for(var i=index; i<64; i++)
|
|
195
|
+
buffer[i] = 0;
|
|
196
|
+
sha256_transform();
|
|
197
|
+
for(var i=0; i<56; i++)
|
|
198
|
+
buffer[i] = 0;
|
|
199
|
+
}
|
|
200
|
+
buffer[56] = (count[1] >>> 24) & 0xff;
|
|
201
|
+
buffer[57] = (count[1] >>> 16) & 0xff;
|
|
202
|
+
buffer[58] = (count[1] >>> 8) & 0xff;
|
|
203
|
+
buffer[59] = count[1] & 0xff;
|
|
204
|
+
buffer[60] = (count[0] >>> 24) & 0xff;
|
|
205
|
+
buffer[61] = (count[0] >>> 16) & 0xff;
|
|
206
|
+
buffer[62] = (count[0] >>> 8) & 0xff;
|
|
207
|
+
buffer[63] = count[0] & 0xff;
|
|
208
|
+
sha256_transform();
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* Split the internal hash values into an array of bytes */
|
|
212
|
+
function sha256_encode_bytes() {
|
|
213
|
+
var j=0;
|
|
214
|
+
var output = new Array(32);
|
|
215
|
+
for(var i=0; i<8; i++) {
|
|
216
|
+
output[j++] = ((ihash[i] >>> 24) & 0xff);
|
|
217
|
+
output[j++] = ((ihash[i] >>> 16) & 0xff);
|
|
218
|
+
output[j++] = ((ihash[i] >>> 8) & 0xff);
|
|
219
|
+
output[j++] = (ihash[i] & 0xff);
|
|
220
|
+
}
|
|
221
|
+
return output;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* Get the internal hash as a hex string */
|
|
225
|
+
function sha256_encode_hex() {
|
|
226
|
+
var output = new String();
|
|
227
|
+
for(var i=0; i<8; i++) {
|
|
228
|
+
for(var j=28; j>=0; j-=4)
|
|
229
|
+
output += sha256_hex_digits.charAt((ihash[i] >>> j) & 0x0f);
|
|
230
|
+
}
|
|
231
|
+
return output;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Main function: returns a hex string representing the SHA256 value of the
|
|
235
|
+
given data */
|
|
236
|
+
export default function sha256_digest(data) {
|
|
237
|
+
sha256_init();
|
|
238
|
+
sha256_update(data, data.length);
|
|
239
|
+
sha256_final();
|
|
240
|
+
return sha256_encode_hex();
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* test if the JS-interpreter is working properly */
|
|
244
|
+
function sha256_self_test()
|
|
245
|
+
{
|
|
246
|
+
return sha256_digest("message digest") ==
|
|
247
|
+
"f7846f55cf23e14eebeab5b4e1550cad5b509e3348fbc4efa3a1413d393cb650";
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
let account = {
|
|
2
|
+
loginNet: { //登录接口
|
|
3
|
+
url: '/scooper-core-rest/data/system/authManage/loginTo',
|
|
4
|
+
requestParam: {
|
|
5
|
+
accUsername: '',
|
|
6
|
+
accPassword: ''
|
|
7
|
+
},
|
|
8
|
+
responseParam: {
|
|
9
|
+
code: '', //返回结果状态码
|
|
10
|
+
message: '',
|
|
11
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
12
|
+
data: '' //token
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
heartBeatNet: { //账号心跳保持接口, 长轮询调用该接口保持与服务端的连接,每15s发送一次该消息,如果60s内没有收到该消息,服务端主动注销该用户
|
|
17
|
+
url: '/scooper-core-rest/data/system/authManage/heartbeat',
|
|
18
|
+
requestParam: {
|
|
19
|
+
token: ''
|
|
20
|
+
},
|
|
21
|
+
responseParam: {
|
|
22
|
+
code: '', //返回结果状态码
|
|
23
|
+
message: '',
|
|
24
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
25
|
+
data: ''
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
logoutNet: { //登出接口
|
|
30
|
+
url: '/scooper-core-rest/data/system/authManage/logout',
|
|
31
|
+
requestParam: {
|
|
32
|
+
token: ''
|
|
33
|
+
},
|
|
34
|
+
responseParam: {
|
|
35
|
+
code: '', //返回结果状态码
|
|
36
|
+
message: '',
|
|
37
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
38
|
+
data: ''
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
accountMqttNet: { //MQTT订阅方式获取账号连接状态改变通知 cometd
|
|
43
|
+
topic: '/notify/auth/connect',
|
|
44
|
+
responseParam: {
|
|
45
|
+
id: '', //0 数据id
|
|
46
|
+
type: '', //connectStatus
|
|
47
|
+
source: '', //scooper-core
|
|
48
|
+
data: {
|
|
49
|
+
user: '',
|
|
50
|
+
token: '',
|
|
51
|
+
status: '' //0:退出登录 1:登录成功
|
|
52
|
+
} //通知消息体
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
accountHttpNet: { //账号连接状态改变HTTP推送通知
|
|
57
|
+
url: '/notify/auth/connect',
|
|
58
|
+
method: 'POST',
|
|
59
|
+
requestParam: {
|
|
60
|
+
user: '',
|
|
61
|
+
type: 'connectStatus',
|
|
62
|
+
status: '' //0: 退出登录 1:登录成功
|
|
63
|
+
},
|
|
64
|
+
responseParam: {
|
|
65
|
+
code: ''
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
saveAccountNet: { //新增帐号
|
|
70
|
+
/**
|
|
71
|
+
* 新增账号,该接口只支持简单的账号信息填写和关联一个部门成员,如有其它业务需要,可以通过我司的通讯录配置网页进行编辑添加
|
|
72
|
+
*/
|
|
73
|
+
url: '/scooper-core-rest/data/system/accountManage/saveAccount',
|
|
74
|
+
method: 'POST',
|
|
75
|
+
requestParam: {
|
|
76
|
+
token: '',
|
|
77
|
+
accUsername: '',
|
|
78
|
+
accPassword: '',
|
|
79
|
+
accShowname: '', //帐号显示名称
|
|
80
|
+
accType: '', //帐号类型,该字段已弃用 0-管理员; 1-一般用户; 2-调度操作员
|
|
81
|
+
memId: '' //通讯录成员ID (帐号关联成员)
|
|
82
|
+
},
|
|
83
|
+
responseParam: {
|
|
84
|
+
code: '', //返回结果状态码
|
|
85
|
+
message: '',
|
|
86
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
87
|
+
data: '' //返回插入成功的ID
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
updateAccountNet: { //更新帐号
|
|
92
|
+
/**
|
|
93
|
+
* 根据token和id更新帐号信息
|
|
94
|
+
*/
|
|
95
|
+
url: '/scooper-core-rest/data/system/accountManage/updateAccount',
|
|
96
|
+
method: 'POST',
|
|
97
|
+
requestParam: {
|
|
98
|
+
id: '',
|
|
99
|
+
token: '',
|
|
100
|
+
accUsername: '',
|
|
101
|
+
accPassword: '',
|
|
102
|
+
accShowname: '', //帐号显示名称
|
|
103
|
+
accType: '', //帐号类型,该字段已弃用 0-管理员; 1-一般用户; 2-调度操作员
|
|
104
|
+
memId: '' //通讯录成员ID (帐号关联成员)
|
|
105
|
+
},
|
|
106
|
+
responseParam: {
|
|
107
|
+
code: '', //返回结果状态码
|
|
108
|
+
message: '',
|
|
109
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
110
|
+
data: '' //返回更新成功的ID
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
deleteAccountNet: { //删除帐号
|
|
115
|
+
url: '/scooper-core-rest/data/system/accountManage/deleteAccount',
|
|
116
|
+
method: 'POST',
|
|
117
|
+
requestParam: {
|
|
118
|
+
ids: '', //编号 多个以","分割
|
|
119
|
+
token: ''
|
|
120
|
+
},
|
|
121
|
+
responseParam: {
|
|
122
|
+
code: '', //返回结果状态码
|
|
123
|
+
message: '',
|
|
124
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
125
|
+
data: {}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
resetPwdNet: { //密码重置
|
|
130
|
+
url: '/scooper-core-rest/data/system/accountManage/resetPwd',
|
|
131
|
+
method: 'POST',
|
|
132
|
+
requestParam: {
|
|
133
|
+
id: '', //帐号标识 id / accUserName 必须选择一个参数
|
|
134
|
+
token: '',
|
|
135
|
+
accUsername: '', //用户名
|
|
136
|
+
origPwd: '', //原密码,传递了原密码会对原密码校验,不通过则无法重置密码
|
|
137
|
+
newPwd: '' //新密码
|
|
138
|
+
},
|
|
139
|
+
responseParam: {
|
|
140
|
+
code: '', //返回结果状态码
|
|
141
|
+
message: '',
|
|
142
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
143
|
+
data: {}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
resetSelfPwdNet: { //账号自身密码重置
|
|
148
|
+
/**
|
|
149
|
+
* 根据账号token,更改自身密码
|
|
150
|
+
*/
|
|
151
|
+
url: '/data/system/accountManage/resetSelfPwd',
|
|
152
|
+
method: 'POST',
|
|
153
|
+
requestParam: {
|
|
154
|
+
token: '',
|
|
155
|
+
origPwd: '', //原密码,传递了原密码会对原密码校验,不通过则无法重置密码
|
|
156
|
+
newPwd: '' //新密码
|
|
157
|
+
},
|
|
158
|
+
responseParam: {
|
|
159
|
+
code: '', //返回结果状态码
|
|
160
|
+
message: '',
|
|
161
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
162
|
+
data: {}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
|
|
166
|
+
listAccountNet: { //查询帐号列表
|
|
167
|
+
url: '/scooper-core-rest/data/system/accountManage/listAccount',
|
|
168
|
+
requestParam: {
|
|
169
|
+
id: '',
|
|
170
|
+
token: '',
|
|
171
|
+
accUsername: '',
|
|
172
|
+
accShowname: '', //帐号显示名称
|
|
173
|
+
accType: '', //帐号类型,该字段已弃用 0-管理员; 1-一般用户; 2-调度操作员
|
|
174
|
+
validToken: '', //有效token
|
|
175
|
+
invalidTimeStart: '' //登录失效开始日期
|
|
176
|
+
},
|
|
177
|
+
responseParam: {
|
|
178
|
+
code: '', //返回结果状态码
|
|
179
|
+
message: '',
|
|
180
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
181
|
+
data: [{
|
|
182
|
+
id: '', //帐号标识
|
|
183
|
+
groupId: '', //账号组
|
|
184
|
+
accUsername: '',
|
|
185
|
+
accPassword: '',
|
|
186
|
+
accShowname: '', //帐号显示名称
|
|
187
|
+
accType: '', //帐号类型 0-管理员;1-一般用户;2-调度操作员
|
|
188
|
+
scopeDept: '', //管辖的部门,保留字段
|
|
189
|
+
scopeVideo: '', //管辖的视频,保留字段
|
|
190
|
+
validToken: '', //有效token
|
|
191
|
+
isActive: '', //是否激活
|
|
192
|
+
modifyTime: '',
|
|
193
|
+
createTime: '',
|
|
194
|
+
useSbc: '', //是否启用边界网关0-否|1-是
|
|
195
|
+
single: '', //更新时是否只更新账号信息
|
|
196
|
+
jkSbc: '' //捷控关联的帐号(sip帐号)
|
|
197
|
+
}]
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
queryAccountNet: { //分页查询帐号列表
|
|
202
|
+
url: '/scooper-core-rest/data/system/accountManage/queryAccount',
|
|
203
|
+
requestParam: {
|
|
204
|
+
currentPage: '',
|
|
205
|
+
token: '',
|
|
206
|
+
pageSize: '',
|
|
207
|
+
id: '',
|
|
208
|
+
accUsername: '',
|
|
209
|
+
accShowname: '', //帐号显示名称
|
|
210
|
+
accType: '', //帐号类型,该字段已弃用 0-管理员; 1-一般用户; 2-调度操作员
|
|
211
|
+
validToken: '', //有效token
|
|
212
|
+
invalidTimeStart: '' //登录失效开始日期
|
|
213
|
+
},
|
|
214
|
+
responseParam: {
|
|
215
|
+
code: '', //返回结果状态码
|
|
216
|
+
message: '',
|
|
217
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
218
|
+
data: {
|
|
219
|
+
pageNum: '',
|
|
220
|
+
pageSize: '', //每页的数量
|
|
221
|
+
size: '', //当前页的数量
|
|
222
|
+
startRow: '', //当前页面第一个元素在数据库中的行号
|
|
223
|
+
endRow: '', //当前页面最后一个元素在数据库中的行号
|
|
224
|
+
total: '',
|
|
225
|
+
pages: '',
|
|
226
|
+
modifyPwTime: '',
|
|
227
|
+
firstPage: '',
|
|
228
|
+
perPage: '',
|
|
229
|
+
nextPage: '',
|
|
230
|
+
lastPage: '',
|
|
231
|
+
isFirstPage: '',
|
|
232
|
+
isLastPage: '',
|
|
233
|
+
hasPreviousPage: '',
|
|
234
|
+
hasNextPage: '',
|
|
235
|
+
navigatePage: '', //导航页码数
|
|
236
|
+
navigatePageNums: '', //所有导航页号
|
|
237
|
+
list: [{
|
|
238
|
+
id: '', //帐号标识
|
|
239
|
+
groupId: '', //账号组
|
|
240
|
+
accUsername: '',
|
|
241
|
+
accPassword: '',
|
|
242
|
+
accShowname: '', //帐号显示名称
|
|
243
|
+
accType: '', //帐号类型 0-管理员;1-一般用户;2-调度操作员
|
|
244
|
+
scopeDept: '', //管辖的部门,保留字段
|
|
245
|
+
scopeVideo: '', //管辖的视频,保留字段
|
|
246
|
+
validToken: '', //有效token
|
|
247
|
+
isActive: '', //是否激活
|
|
248
|
+
modifyTime: '',
|
|
249
|
+
createTime: '',
|
|
250
|
+
useSbc: '', //是否启用边界网关0-否|1-是
|
|
251
|
+
single: '', //更新时是否只更新账号信息
|
|
252
|
+
jkSbc: '' //捷控关联的帐号(sip帐号)
|
|
253
|
+
}]
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
getAccountLinkMemberNet: { //查询帐号关联部门成员信息
|
|
259
|
+
/**
|
|
260
|
+
* 根据id,validToken,accUsername获取账号关联部门成员信息
|
|
261
|
+
*/
|
|
262
|
+
url: '/scooper-core-rest/data/system/accountManage/getAccountLinkMember',
|
|
263
|
+
requestParam: {
|
|
264
|
+
token: '',
|
|
265
|
+
accUsername: '',
|
|
266
|
+
id: '',
|
|
267
|
+
validToken: ''
|
|
268
|
+
},
|
|
269
|
+
responseParam: {
|
|
270
|
+
code: '', //返回结果状态码
|
|
271
|
+
message: '',
|
|
272
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
273
|
+
data: {
|
|
274
|
+
id: '', //帐号标识
|
|
275
|
+
groupId: '', //账号组
|
|
276
|
+
accUsername: '',
|
|
277
|
+
accPassword: '',
|
|
278
|
+
accShowname: '', //帐号显示名称
|
|
279
|
+
accType: '', //帐号类型 0-管理员;1-一般用户;2-调度操作员
|
|
280
|
+
scopeDept: '', //管辖的部门,保留字段
|
|
281
|
+
scopeVideo: '', //管辖的视频,保留字段
|
|
282
|
+
validToken: '', //有效token
|
|
283
|
+
isActive: '', //是否激活
|
|
284
|
+
modifyTime: '',
|
|
285
|
+
createTime: '',
|
|
286
|
+
useSbc: '', //是否启用边界网关0-否|1-是
|
|
287
|
+
single: '', //更新时是否只更新账号信息
|
|
288
|
+
jkSbc: '', //捷控关联的帐号(sip帐号)
|
|
289
|
+
memId: '', // 成员ID
|
|
290
|
+
memName: '', // 成员姓名
|
|
291
|
+
deptId: '', // 部门编号
|
|
292
|
+
deptName: '', // 部门名称
|
|
293
|
+
orgCode: '', // 组织编码
|
|
294
|
+
sex: '', // 性别
|
|
295
|
+
memTel: '', // 成员号码
|
|
296
|
+
memMobile: '' // 成员手机号
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
|
|
301
|
+
getAccountDetailNet: { //查询帐号详情
|
|
302
|
+
/**
|
|
303
|
+
* 根据id,validToken,accUsername获取账号信息
|
|
304
|
+
*/
|
|
305
|
+
url: '/scooper-core-rest/data/system/accountManage/getAccountDetail',
|
|
306
|
+
requestParam: {
|
|
307
|
+
token: '',
|
|
308
|
+
accUsername: '',
|
|
309
|
+
id: '',
|
|
310
|
+
validToken: ''
|
|
311
|
+
},
|
|
312
|
+
responseParam: {
|
|
313
|
+
code: '', //返回结果状态码
|
|
314
|
+
message: '',
|
|
315
|
+
systemTime: '', //yyyy-MM-dd HH:mm:ss
|
|
316
|
+
data: {
|
|
317
|
+
id: '', //帐号标识
|
|
318
|
+
groupId: '', //账号组
|
|
319
|
+
accUsername: '',
|
|
320
|
+
accPassword: '',
|
|
321
|
+
accShowname: '', //帐号显示名称
|
|
322
|
+
accType: '', //帐号类型 0-管理员;1-一般用户;2-调度操作员
|
|
323
|
+
scopeDept: '', //管辖的部门,保留字段
|
|
324
|
+
scopeVideo: '', //管辖的视频,保留字段
|
|
325
|
+
validToken: '', //有效token
|
|
326
|
+
isActive: '', //是否激活
|
|
327
|
+
modifyTime: '',
|
|
328
|
+
createTime: '',
|
|
329
|
+
invalidTime: '', //失效时间
|
|
330
|
+
accessTime: '', //登录系统时间
|
|
331
|
+
useSbc: '', //是否启用边界网关0-否|1-是
|
|
332
|
+
modifyPwdTime: '', //
|
|
333
|
+
realDispUsername: '', //真实的调度帐号名
|
|
334
|
+
businessConfigList: { //业务配置信息
|
|
335
|
+
id: '', //业务配置信息标识
|
|
336
|
+
accId: '', // 帐号标识
|
|
337
|
+
type: '', // 帐号类型
|
|
338
|
+
actived: '', // 是否启用
|
|
339
|
+
lastOnline: '', //最后在线时间(应用按固定频率更新该值)
|
|
340
|
+
modifyTime: '', // 最后修改时间
|
|
341
|
+
ext: '' //应用附加数据(保留)
|
|
342
|
+
},
|
|
343
|
+
single: '', //更新时是否只更新账号信息
|
|
344
|
+
jkSbc: '', //捷控关联帐号的sbc是否使用边界网关 0-否; 1-是
|
|
345
|
+
PmDataList: { //数据权限列表
|
|
346
|
+
accId: '', // 帐号id
|
|
347
|
+
deptOrgCode: '', // 部门的orgCode
|
|
348
|
+
isActive: '', // 是否激活
|
|
349
|
+
deptName: '' // 部门名称
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* MQTT订阅
|
|
358
|
+
*/
|
|
359
|
+
accountAddMQNet: function(){ //新增帐号通知
|
|
360
|
+
return {
|
|
361
|
+
topic: '/scooper_core/dataChange/account',
|
|
362
|
+
responseParam: {
|
|
363
|
+
id: '',
|
|
364
|
+
type: 'add', //消息类别
|
|
365
|
+
source: 'scooper-core-ds', //消息来源
|
|
366
|
+
data: { //通知的具体消息
|
|
367
|
+
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
|
|
373
|
+
accountUpdateMQNet: function(){ //更新帐号通知
|
|
374
|
+
return {
|
|
375
|
+
topic: '/scooper_core/dataChange/account',
|
|
376
|
+
responseParam: {
|
|
377
|
+
id: '',
|
|
378
|
+
type: 'update', //消息类别
|
|
379
|
+
source: 'scooper-core-ds', //消息来源
|
|
380
|
+
data: { //通知的具体消息
|
|
381
|
+
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
|
|
387
|
+
accountDeleteMQNet: function(){ //删除帐号通知
|
|
388
|
+
return {
|
|
389
|
+
topic: '/scooper_core/dataChange/account',
|
|
390
|
+
responseParam: {
|
|
391
|
+
id: '',
|
|
392
|
+
type: 'delete', //消息类别
|
|
393
|
+
source: 'scooper-core-ds', //消息来源
|
|
394
|
+
data: { //通知的具体消息
|
|
395
|
+
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* HTTP推送
|
|
404
|
+
*/
|
|
405
|
+
accountAddHttpNet: function(){
|
|
406
|
+
return { //新增帐号通知HTTP推送通知
|
|
407
|
+
url: '/data/dataChange/account/add',
|
|
408
|
+
method: 'POST',
|
|
409
|
+
requestParam: {
|
|
410
|
+
id: '' //新增账号ID
|
|
411
|
+
},
|
|
412
|
+
responseParam: {
|
|
413
|
+
code: '' //返回结果状态码
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
|
|
418
|
+
accountUpdateHttpNet: function(){
|
|
419
|
+
/**
|
|
420
|
+
* 根据token和id更新帐号信息
|
|
421
|
+
*/
|
|
422
|
+
return { //更新帐号通知HTTP推送通知
|
|
423
|
+
url: '/data/dataChange/account/update',
|
|
424
|
+
method: 'POST',
|
|
425
|
+
requestParam: {
|
|
426
|
+
id: '' //更新账号ID
|
|
427
|
+
},
|
|
428
|
+
responseParam: {
|
|
429
|
+
code: '' //返回结果状态码
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
|
|
434
|
+
accountDeleteHttpNet: function(){
|
|
435
|
+
return { //删除帐号通知HTTP推送通知
|
|
436
|
+
url: '/data/dataChange/account/delete',
|
|
437
|
+
method: 'POST',
|
|
438
|
+
requestParam: {
|
|
439
|
+
ids: '' //编号 多个以","分割
|
|
440
|
+
},
|
|
441
|
+
responseParam: {
|
|
442
|
+
code: '' //返回结果状态码
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export default account;
|
|
449
|
+
|