@ningboyz/apis 1.3.52 → 1.3.54
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/package.json +2 -2
- package/packages/core/types.ts +22 -0
- package/packages/core/user.ts +32 -1
- package/pnpm-lock.yaml +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.54",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "宁波甬政请求库",
|
|
6
6
|
"author": "nbyt-syq",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@ningboyz/types": "1.3.
|
|
20
|
+
"@ningboyz/types": "1.3.54",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/types.ts
CHANGED
|
@@ -473,6 +473,18 @@ export class TCoreUserSendMessageQuerys implements ICoreUserSendMessageQuerys {
|
|
|
473
473
|
sysname: string = "";
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
+
export interface ICoreUserSendMessag2Querys {
|
|
477
|
+
whobuild: number;
|
|
478
|
+
userindx: number;
|
|
479
|
+
sysname: string;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export class TCoreUserSendMessag2Querys implements ICoreUserSendMessag2Querys {
|
|
483
|
+
whobuild: number = -1;
|
|
484
|
+
userindx: number = -1;
|
|
485
|
+
sysname: string = "";
|
|
486
|
+
}
|
|
487
|
+
|
|
476
488
|
export interface ICoreUserCheckCodeServletQuerys {
|
|
477
489
|
whobuild: number;
|
|
478
490
|
userindx: number;
|
|
@@ -519,6 +531,16 @@ export class TCoreUserMobileidUpdatedbQuerys implements ICoreUserMobileidUpdated
|
|
|
519
531
|
userindx: number = -1;
|
|
520
532
|
}
|
|
521
533
|
|
|
534
|
+
export interface ICoreUserMobileidUpdated2Querys {
|
|
535
|
+
whobuild: number;
|
|
536
|
+
userindx: number;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export class TCoreUserMobileidUpdated2Querys implements ICoreUserMobileidUpdated2Querys {
|
|
540
|
+
whobuild: number = -1;
|
|
541
|
+
userindx: number = -1;
|
|
542
|
+
}
|
|
543
|
+
|
|
522
544
|
export interface ICoreUserSourcendSet4kjndQuerys {
|
|
523
545
|
sourcend: number;
|
|
524
546
|
}
|
package/packages/core/user.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TCore, TWlzf, TWtui } from "@ningboyz/types";
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
import type { HttpRequest } from "../axios";
|
|
4
|
+
import { IEmptyQuerys } from "../type";
|
|
4
5
|
import {
|
|
5
6
|
ICoreDel4deptQuerys,
|
|
6
7
|
ICoreDel4laidQuerys,
|
|
@@ -18,10 +19,12 @@ import {
|
|
|
18
19
|
ICoreUserGet4WlzfQuerys,
|
|
19
20
|
ICoreUserInitpswdQuerys,
|
|
20
21
|
ICoreUserInsertdbQuerys,
|
|
22
|
+
ICoreUserMobileidUpdated2Querys,
|
|
21
23
|
ICoreUserMobileidUpdatedbQuerys,
|
|
22
24
|
ICoreUserScanloginQuerys,
|
|
23
25
|
ICoreUserSelectdbCamelcaseQuerys,
|
|
24
26
|
ICoreUserSelectdbTokenusrHeaders,
|
|
27
|
+
ICoreUserSendMessag2Querys,
|
|
25
28
|
ICoreUserSendMessageQuerys,
|
|
26
29
|
ICoreUserSourcendSet4kjndQuerys,
|
|
27
30
|
ICoreUserUpdatedbQuerys,
|
|
@@ -32,7 +35,6 @@ import {
|
|
|
32
35
|
ICoreUserVerifydbAuthcodeQuerys,
|
|
33
36
|
ICoreUserVerifydbDingdingQuerys
|
|
34
37
|
} from "./types";
|
|
35
|
-
import { IEmptyQuerys } from "../type";
|
|
36
38
|
|
|
37
39
|
class UserRequest {
|
|
38
40
|
private httpRequest: HttpRequest;
|
|
@@ -260,6 +262,15 @@ class UserRequest {
|
|
|
260
262
|
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/verifydb/camelcase", undefined, params);
|
|
261
263
|
}
|
|
262
264
|
|
|
265
|
+
/**
|
|
266
|
+
* 登录
|
|
267
|
+
* @param params
|
|
268
|
+
* @returns
|
|
269
|
+
*/
|
|
270
|
+
verifydbCamelcas2(params: object) {
|
|
271
|
+
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/verifydb/camelcas2", undefined, params);
|
|
272
|
+
}
|
|
273
|
+
|
|
263
274
|
/**
|
|
264
275
|
* 发送短信验证码
|
|
265
276
|
* @param querys
|
|
@@ -270,6 +281,16 @@ class UserRequest {
|
|
|
270
281
|
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/sendmessage", querys, params);
|
|
271
282
|
}
|
|
272
283
|
|
|
284
|
+
/**
|
|
285
|
+
* 发送短信验证码
|
|
286
|
+
* @param querys
|
|
287
|
+
* @param params
|
|
288
|
+
* @returns
|
|
289
|
+
*/
|
|
290
|
+
sendMessag2(querys: ICoreUserSendMessag2Querys, params: object) {
|
|
291
|
+
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/sendmessag2", querys, params);
|
|
292
|
+
}
|
|
293
|
+
|
|
273
294
|
/**
|
|
274
295
|
* 解锁用户
|
|
275
296
|
* @param params
|
|
@@ -319,6 +340,16 @@ class UserRequest {
|
|
|
319
340
|
return this.httpRequest.post<string>("/core/tuser/mobileid/updatedb", querys, params);
|
|
320
341
|
}
|
|
321
342
|
|
|
343
|
+
/**
|
|
344
|
+
* 更新用户信息(未登录修改手机号)
|
|
345
|
+
* @param querys
|
|
346
|
+
* @param params
|
|
347
|
+
* @returns
|
|
348
|
+
*/
|
|
349
|
+
mobileidUpdated2(querys: ICoreUserMobileidUpdated2Querys, params: object) {
|
|
350
|
+
return this.httpRequest.post<string>("/core/tuser/mobileid/updated2", querys, params);
|
|
351
|
+
}
|
|
352
|
+
|
|
322
353
|
/**
|
|
323
354
|
* 设置年度
|
|
324
355
|
* @param querys
|
package/pnpm-lock.yaml
CHANGED
|
@@ -9,8 +9,8 @@ importers:
|
|
|
9
9
|
.:
|
|
10
10
|
dependencies:
|
|
11
11
|
'@ningboyz/types':
|
|
12
|
-
specifier: 1.
|
|
13
|
-
version: 1.
|
|
12
|
+
specifier: 1.3.53
|
|
13
|
+
version: 1.3.53
|
|
14
14
|
axios:
|
|
15
15
|
specifier: 1.8.4
|
|
16
16
|
version: 1.8.4
|
|
@@ -27,8 +27,8 @@ packages:
|
|
|
27
27
|
'@aximario/json-tree@2.2.4':
|
|
28
28
|
resolution: {integrity: sha512-XGMJ+zuVQ0CRizo1d3ZTUKEvrTqKYbm2a00T6DnRFR36mzV6mexLUKRIk6repj3JKgLrj3iwW8aUFrOS4P7CEA==}
|
|
29
29
|
|
|
30
|
-
'@ningboyz/types@1.
|
|
31
|
-
resolution: {integrity: sha512-
|
|
30
|
+
'@ningboyz/types@1.3.53':
|
|
31
|
+
resolution: {integrity: sha512-97gbhbXbfbjLgc3Tvk2Nq65T7U0ZWJPnvfxxlazj2pFyhOWFfawbC4DYtrDss8UdJ50yjiTVMSz2una69iHYyw==}
|
|
32
32
|
|
|
33
33
|
'@types/lodash@4.17.20':
|
|
34
34
|
resolution: {integrity: sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==}
|
|
@@ -133,7 +133,7 @@ snapshots:
|
|
|
133
133
|
|
|
134
134
|
'@aximario/json-tree@2.2.4': {}
|
|
135
135
|
|
|
136
|
-
'@ningboyz/types@1.
|
|
136
|
+
'@ningboyz/types@1.3.53':
|
|
137
137
|
dependencies:
|
|
138
138
|
'@aximario/json-tree': 2.2.4
|
|
139
139
|
lodash: 4.17.21
|