@ningboyz/apis 1.4.61 → 1.4.63
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/dept.ts +26 -5
- package/packages/core/types.ts +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.63",
|
|
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.4.
|
|
20
|
+
"@ningboyz/types": "1.4.63",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/dept.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import type { TCore } from "@ningboyz/types";
|
|
2
2
|
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
ICoreDeptDeletedbQuerys,
|
|
5
|
+
ICoreDeptDeptBindSelectdbQuerys,
|
|
6
|
+
ICoreDeptDeptBindUploaddbQuerys,
|
|
7
|
+
ICoreDeptDetaildbQuerys,
|
|
8
|
+
ICoreDeptInsertdbQuerys,
|
|
9
|
+
ICoreDeptLiteGet4deptQuerys,
|
|
10
|
+
ICoreDeptSelectdbQuerys,
|
|
11
|
+
ICoreDeptUpdatedbQuerys,
|
|
12
|
+
ICoreDeptUploadd2Querys,
|
|
13
|
+
ICoreDeptUploadd3Querys
|
|
14
|
+
} from "./types";
|
|
4
15
|
|
|
5
16
|
class DeptRequest {
|
|
6
17
|
private httpRequest: HttpRequest;
|
|
@@ -96,13 +107,23 @@ class DeptRequest {
|
|
|
96
107
|
|
|
97
108
|
/**
|
|
98
109
|
* 部门绑定第三方数据
|
|
99
|
-
* @param querys
|
|
100
|
-
* @param params
|
|
101
|
-
* @returns
|
|
110
|
+
* @param querys
|
|
111
|
+
* @param params
|
|
112
|
+
* @returns
|
|
102
113
|
*/
|
|
103
|
-
deptBindUploaddb(querys: ICoreDeptDeptBindUploaddbQuerys, params: object){
|
|
114
|
+
deptBindUploaddb(querys: ICoreDeptDeptBindUploaddbQuerys, params: object) {
|
|
104
115
|
return this.httpRequest.post<TCore.IDeptBindResponse[]>("/core/tdept/deptbind/uploaddb", querys, params);
|
|
105
116
|
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* 获取部门绑定第三方数据
|
|
120
|
+
* @param querys
|
|
121
|
+
* @param params
|
|
122
|
+
* @returns
|
|
123
|
+
*/
|
|
124
|
+
deptBindSelectdb(querys: ICoreDeptDeptBindSelectdbQuerys, params: object) {
|
|
125
|
+
return this.httpRequest.post<TCore.IDeptBindResponse[]>("/core/tdept/deptbind/selectdb", querys, params);
|
|
126
|
+
}
|
|
106
127
|
}
|
|
107
128
|
|
|
108
129
|
export default DeptRequest;
|
package/packages/core/types.ts
CHANGED
|
@@ -802,3 +802,15 @@ export interface ICoreDeptDeptBindUploaddbQuerys {
|
|
|
802
802
|
export class TCoreDeptDeptBindUploaddbQuerys implements ICoreDeptDeptBindUploaddbQuerys {
|
|
803
803
|
matchval: string = "";
|
|
804
804
|
}
|
|
805
|
+
|
|
806
|
+
export interface ICoreDeptDeptBindSelectdbQuerys {
|
|
807
|
+
matchval: string;
|
|
808
|
+
unitmain: number;
|
|
809
|
+
deptmain: number;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
export class TCoreDeptDeptBindSelectdbQuerys implements ICoreDeptDeptBindSelectdbQuerys {
|
|
813
|
+
unitmain: number = 0;
|
|
814
|
+
deptmain: number = 0;
|
|
815
|
+
matchval: string = "";
|
|
816
|
+
}
|