@ningboyz/apis 1.3.5 → 1.3.7
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/skdw.ts +2 -2
- package/packages/core/types.ts +24 -0
- package/packages/core/user.ts +21 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
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.7",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/skdw.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
3
|
import { IEmptyQuerys } from "../type";
|
|
4
|
-
import { ICoreSkdwDetaildbQuerys, ICoreSkdwSelectdbQuerys } from "./types";
|
|
4
|
+
import { ICoreSkdwDetaildbQuerys, ICoreSkdwSelectdbQuerys, ICoreSkdwInsertdbQuerys } from "./types";
|
|
5
5
|
|
|
6
6
|
class SkdwRequest {
|
|
7
7
|
private httpRequest: HttpRequest;
|
|
@@ -14,7 +14,7 @@ class SkdwRequest {
|
|
|
14
14
|
* @param params acnofrom:{} userfrom:{}
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
insertdb(querys:
|
|
17
|
+
insertdb(querys: ICoreSkdwInsertdbQuerys, params: object) {
|
|
18
18
|
return this.httpRequest.post<TCore.IUserAcnoResponse[]>("/core/tskdw/insertdb", querys, params);
|
|
19
19
|
}
|
|
20
20
|
|
package/packages/core/types.ts
CHANGED
|
@@ -615,6 +615,22 @@ export class TCoreUserInsertdbQuerys implements ICoreUserInsertdbQuerys {
|
|
|
615
615
|
syspartc: number = 0;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
+
export interface ICoreUserUpdatedbQuerys {
|
|
619
|
+
domodify: number;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export class TCoreUserUpdatedbQuerys implements ICoreUserUpdatedbQuerys {
|
|
623
|
+
domodify: number = 0;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export interface ICoreUserFormerlyQuerys {
|
|
627
|
+
usermain: number;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export class TCoreUserFormerlyQuerys implements ICoreUserFormerlyQuerys {
|
|
631
|
+
usermain: number = 0;
|
|
632
|
+
}
|
|
633
|
+
|
|
618
634
|
/** ========== skdw ========== */
|
|
619
635
|
export interface ICoreSkdwSelectdbQuerys {
|
|
620
636
|
datatype: number;
|
|
@@ -624,6 +640,14 @@ export class TCoreSkdwSelectdbQuerys implements ICoreSkdwSelectdbQuerys {
|
|
|
624
640
|
datatype: number = 0;
|
|
625
641
|
}
|
|
626
642
|
|
|
643
|
+
export interface ICoreSkdwInsertdbQuerys {
|
|
644
|
+
datatype: number;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
export class TCoreSkdwInsertdbQuerys implements ICoreSkdwInsertdbQuerys {
|
|
648
|
+
datatype: number = 0;
|
|
649
|
+
}
|
|
650
|
+
|
|
627
651
|
export interface ICoreSkdwDetaildbQuerys {
|
|
628
652
|
acnomain: number;
|
|
629
653
|
usermain: number;
|
package/packages/core/user.ts
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
ICoreUserCaptcha2Querys,
|
|
12
12
|
ICoreUserCheckCodeServletQuerys,
|
|
13
13
|
ICoreUserDetaildbCamelcaseQuerys,
|
|
14
|
+
ICoreUserFormerlyQuerys,
|
|
14
15
|
ICoreUserGet4DeptQuerys,
|
|
15
16
|
ICoreUserGet4LaidQuerys,
|
|
16
17
|
ICoreUserGet4PartQuerys,
|
|
@@ -23,6 +24,7 @@ import {
|
|
|
23
24
|
ICoreUserSelectdbTokenusrHeaders,
|
|
24
25
|
ICoreUserSendMessageQuerys,
|
|
25
26
|
ICoreUserSourcendSet4kjndQuerys,
|
|
27
|
+
ICoreUserUpdatedbQuerys,
|
|
26
28
|
ICoreUserUpdatemmQuerys,
|
|
27
29
|
ICoreUserUploadd2Querys,
|
|
28
30
|
ICoreUserUploadd3Querys,
|
|
@@ -75,6 +77,15 @@ class UserRequest {
|
|
|
75
77
|
return this.httpRequest.post<TCore.IUserResponse[]>(`/core/tuser/updatedb`, undefined, params);
|
|
76
78
|
}
|
|
77
79
|
|
|
80
|
+
/**
|
|
81
|
+
* 更新用户
|
|
82
|
+
* @param params
|
|
83
|
+
* @returns
|
|
84
|
+
*/
|
|
85
|
+
updatedb2(querys: ICoreUserUpdatedbQuerys, params: object) {
|
|
86
|
+
return this.httpRequest.post<TCore.IUserResponse[]>(`/core/tuser/updatedb`, querys, params);
|
|
87
|
+
}
|
|
88
|
+
|
|
78
89
|
/**
|
|
79
90
|
* 删除用户
|
|
80
91
|
* @param params
|
|
@@ -443,6 +454,16 @@ class UserRequest {
|
|
|
443
454
|
userBindDingBind(querys: IEmptyQuerys, params: object) {
|
|
444
455
|
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/userbind/dingbind", querys, params);
|
|
445
456
|
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* 查询变动记录
|
|
460
|
+
* @param querys
|
|
461
|
+
* @param params
|
|
462
|
+
* @returns
|
|
463
|
+
*/
|
|
464
|
+
formerly(querys: ICoreUserFormerlyQuerys, params: object) {
|
|
465
|
+
return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/formerly", querys, params);
|
|
466
|
+
}
|
|
446
467
|
}
|
|
447
468
|
|
|
448
469
|
export default UserRequest;
|