@ningboyz/apis 1.8.95 → 1.8.96
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 -2
- package/packages/core/user.ts +23 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.96",
|
|
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.8.
|
|
20
|
+
"@ningboyz/types": "1.8.96",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/types.ts
CHANGED
|
@@ -1704,8 +1704,28 @@ export class TCoreSysstatusSelectdbQuerys implements ICoreSysstatusSelectdbQuery
|
|
|
1704
1704
|
queuesby: string = "";
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
|
-
export interface ICoreUnitParentidUploaddbQuerys {
|
|
1707
|
+
export interface ICoreUnitParentidUploaddbQuerys {}
|
|
1708
|
+
|
|
1709
|
+
export class TCoreUnitParentidUploaddbQuerys implements ICoreUnitParentidUploaddbQuerys {}
|
|
1710
|
+
|
|
1711
|
+
export interface ICoreUserBindSelectdbQuerys {
|
|
1712
|
+
usermain: number;
|
|
1713
|
+
thirdapp?: string;
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
export class TCoreUserBindSelectdbQuerys implements ICoreUserBindSelectdbQuerys {
|
|
1717
|
+
usermain: number = -1;
|
|
1718
|
+
thirdapp?: string;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
export interface ICoreUserBindSaveitdbQuerys {
|
|
1722
|
+
usermain: number;
|
|
1723
|
+
verifyid: string;
|
|
1724
|
+
thirdapp: string;
|
|
1708
1725
|
}
|
|
1709
1726
|
|
|
1710
|
-
export class
|
|
1727
|
+
export class TCoreUserBindSaveitdbQuerys implements ICoreUserBindSaveitdbQuerys {
|
|
1728
|
+
usermain: number = -1;
|
|
1729
|
+
verifyid: string = "";
|
|
1730
|
+
thirdapp: string = "";
|
|
1711
1731
|
}
|
package/packages/core/user.ts
CHANGED
|
@@ -101,7 +101,9 @@ import {
|
|
|
101
101
|
ICoreUserDeletedbCardQuerys,
|
|
102
102
|
ICoreUserUpdatedbCardQuerys,
|
|
103
103
|
ICoreUserBindCaQuerys,
|
|
104
|
-
ICoreUserUnbindCaQuerys
|
|
104
|
+
ICoreUserUnbindCaQuerys,
|
|
105
|
+
ICoreUserBindSelectdbQuerys,
|
|
106
|
+
ICoreUserBindSaveitdbQuerys
|
|
105
107
|
} from "./types";
|
|
106
108
|
|
|
107
109
|
class UserRequest {
|
|
@@ -1030,6 +1032,26 @@ class UserRequest {
|
|
|
1030
1032
|
unbindCa(querys: ICoreUserUnbindCaQuerys, params: object) {
|
|
1031
1033
|
return this.httpRequest.post<string>("/gapi/core/tuser/userbind/deleted3", querys, params);
|
|
1032
1034
|
}
|
|
1035
|
+
|
|
1036
|
+
/** 查询用户绑定设备,usermain 为待查询用户的 userIndx。 */
|
|
1037
|
+
userbindSelectdb(querys: ICoreUserBindSelectdbQuerys, params: object = []) {
|
|
1038
|
+
return this.httpRequest.post<TCore.ICoreUserBindResponse[]>("/gapi/core/tuser/userbind/selectdb", querys, params);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/** 批量解绑设备,params 为含 userbind JSON 数组字段的 FormData。 */
|
|
1042
|
+
userbindDeleted2(querys: IEmptyQuerys, params: object) {
|
|
1043
|
+
return this.httpRequest.post<string>("/gapi/core/tuser/userbind/deleted2", querys, params);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/** 根据验证标识和应用类型新增或更新所选用户的绑定。 */
|
|
1047
|
+
userbindSaveitdb(querys: ICoreUserBindSaveitdbQuerys) {
|
|
1048
|
+
return this.httpRequest.post<string>("/gapi/core/tuser/userbind/saveitdb", querys);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**解绑设备 */
|
|
1052
|
+
unbindDevice(querys: IEmptyQuerys, params: object) {
|
|
1053
|
+
return this.httpRequest.post<string>("/gapi/core/tuser/userbind/deletedb", querys, params);
|
|
1054
|
+
}
|
|
1033
1055
|
}
|
|
1034
1056
|
|
|
1035
1057
|
export default UserRequest;
|