@ningboyz/apis 1.4.173 → 1.4.175

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.4.173",
3
+ "version": "1.4.175",
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.173",
20
+ "@ningboyz/types": "1.4.175",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
@@ -441,6 +441,15 @@ export class TCoreUnitDeletePathQuerys implements ICoreUnitDeletePathQuerys {
441
441
  cnfgmain: number = -1;
442
442
  }
443
443
 
444
+ export interface ICoreUnitUploadd5Querys {
445
+ unitmain: number;
446
+ overload: number;
447
+ }
448
+ export class TCoreUnitUploadd5Querys implements ICoreUnitUploadd5Querys {
449
+ unitmain: number=-1;
450
+ overload: number=-1;
451
+ }
452
+
444
453
  export interface ICoreUnitDetaildbQuerys {
445
454
  unitmain: number;
446
455
  }
@@ -1,7 +1,7 @@
1
1
  import { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import { IEmptyQuerys, IParams } from "../type";
4
- import { ICoreUnitDeletePathQuerys, ICoreUnitDetaildbQuerys, ICoreUnitGet4UnitQuerys, ICoreUnitSelectdbQuerys, ICoreUnitUploadPathQuerys, ICoreUnitUploadQuerys } from "./types";
4
+ import { ICoreUnitDeletePathQuerys, ICoreUnitDetaildbQuerys, ICoreUnitGet4UnitQuerys, ICoreUnitSelectdbQuerys, ICoreUnitUploadd5Querys, ICoreUnitUploadPathQuerys, ICoreUnitUploadQuerys } from "./types";
5
5
 
6
6
  class UnitRequest {
7
7
  private httpRequest: HttpRequest;
@@ -126,6 +126,16 @@ class UnitRequest {
126
126
  deletedp(querys: ICoreUnitDeletePathQuerys, params: object) {
127
127
  return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/unitpath/deletedb", querys, params);
128
128
  }
129
+
130
+ /**
131
+ * 关联浙政钉
132
+ * @param querys
133
+ * @param params
134
+ * @returns
135
+ */
136
+ uploadd5(querys: ICoreUnitUploadd5Querys, params: object) {
137
+ return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tunit/listload/uploaddb", querys, params);
138
+ }
129
139
  }
130
140
 
131
141
  export default UnitRequest;
@@ -3,7 +3,6 @@ import type { HttpRequest } from "../axios";
3
3
  import { IEmptyQuerys } from "../type";
4
4
  import { ILoadNsdwSelectd2Querys, ILoadNsdwSyncnsryQuerys } from "./types";
5
5
 
6
-
7
6
  class NsdwRequest {
8
7
  private httpRequest: HttpRequest;
9
8
  constructor(httpRequest: HttpRequest) {
@@ -26,26 +25,26 @@ class NsdwRequest {
26
25
  * @returns
27
26
  */
28
27
  selectd2(querys: ILoadNsdwSelectd2Querys) {
29
- return this.httpRequest.post<TLoad.TLoadNsdwResponse[]>("/gapi/load/nsdw/selectd2", querys);
28
+ return this.httpRequest.post<TLoad.TLoadNsdwResponse[]>("/gapi/tload/nsdw/selectd2", querys);
30
29
  }
31
30
 
32
- /**
33
- * 同步浙政钉单位
34
- * @param params
35
- * @returns
36
- */
31
+ /**
32
+ * 同步浙政钉单位
33
+ * @param params
34
+ * @returns
35
+ */
37
36
  syncnsdw(querys: IEmptyQuerys) {
38
37
  return this.httpRequest.post<TLoad.TLoadNsdwResponse[]>("/gapi/load/nsdw/syncdb", querys);
39
38
  }
40
39
 
41
- /**
42
- * 同步浙政钉人员
43
- * @param params
44
- * @returns
45
- */
40
+ /**
41
+ * 同步浙政钉人员
42
+ * @param params
43
+ * @returns
44
+ */
46
45
  syncnsry(querys: ILoadNsdwSyncnsryQuerys) {
47
46
  return this.httpRequest.post<TLoad.TLoadNsdwResponse[]>("/gapi/load/nsry/syncdb", querys);
48
47
  }
49
48
  }
50
49
 
51
- export default NsdwRequest;
50
+ export default NsdwRequest;