@ningboyz/apis 1.6.135 → 1.6.137

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.6.135",
3
+ "version": "1.6.137",
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.6.135",
20
+ "@ningboyz/types": "1.6.137",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
@@ -1,6 +1,7 @@
1
1
  import type { TCore } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import {
4
+ ICoreDeptDatalevlUploaddbdbQuerys,
4
5
  ICoreDeptDeletedbQuerys,
5
6
  ICoreDeptDeptBindSelectdbQuerys,
6
7
  ICoreDeptDeptBindUploadd2Querys,
@@ -78,6 +79,26 @@ class DeptRequest {
78
79
  return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/deletedb", querys, params);
79
80
  }
80
81
 
82
+ /**
83
+ * 调整层级级次
84
+ * @param querys
85
+ * @param params
86
+ * @returns
87
+ */
88
+ datalevlUploaddb(querys: ICoreDeptDatalevlUploaddbdbQuerys, params: object) {
89
+ return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/datalevl/uploaddb", querys, params);
90
+ }
91
+
92
+ /**
93
+ * 创建默认部门
94
+ * @param querys
95
+ * @param params
96
+ * @returns
97
+ */
98
+ createdb() {
99
+ return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tdept/createdb", undefined, undefined);
100
+ }
101
+
81
102
  /**
82
103
  * 判断使用部门是否关联资产卡片
83
104
  * @param params
@@ -66,6 +66,10 @@ export class TCoreDeptDeletedbQuerys implements ICoreDeptDeletedbQuerys {
66
66
  unitmain: number = -1;
67
67
  }
68
68
 
69
+ export interface ICoreDeptDatalevlUploaddbdbQuerys {}
70
+
71
+ export class TCoreDeptDatalevlUploaddbdbQuerys implements ICoreDeptDatalevlUploaddbdbQuerys {}
72
+
69
73
  export interface ICoreDeptUploadd2Querys {
70
74
  /** 单位标识 */
71
75
  unitmain: number;
@@ -950,7 +954,6 @@ export class TCoreDddwUploaddbQuerys implements ICoreDddwUploaddbQuerys {
950
954
  ispublic: number = -1;
951
955
  }
952
956
 
953
-
954
957
  export interface ICoreDddwUploadd2Querys {
955
958
  dictname: string;
956
959
  }
@@ -959,7 +962,6 @@ export class TCoreDddwUploadd2Querys implements ICoreDddwUploadd2Querys {
959
962
  dictname: string = "";
960
963
  }
961
964
 
962
-
963
965
  export interface ICoreDddwUploadd3Querys {
964
966
  dictname: string;
965
967
  }
@@ -2,8 +2,10 @@ import { createRequest, IAxiosConfig } from "../axios";
2
2
  import DataRequest from "./data";
3
3
  import ItemRequest from "./item";
4
4
  import PageRequest from "./page";
5
+ import MianRequest from "./main";
5
6
 
6
7
  class WldyRequest {
8
+ public main: MianRequest;
7
9
  public page: PageRequest;
8
10
  public data: DataRequest;
9
11
  public item: ItemRequest;
@@ -13,6 +15,7 @@ class WldyRequest {
13
15
  this.page = new PageRequest(request);
14
16
  this.data = new DataRequest(request);
15
17
  this.item = new ItemRequest(request);
18
+ this.main = new MianRequest(request);
16
19
  }
17
20
  }
18
21
 
@@ -0,0 +1,21 @@
1
+ import type { TWldy } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { IWldyMainSelectdbQuerys } from "./types";
4
+
5
+ class MainRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取打印终端列表
13
+ * @param querys
14
+ * @returns
15
+ */
16
+ selectdb(querys: IWldyMainSelectdbQuerys) {
17
+ return this.httpRequest.post<TWldy.IWldyMainResponse[]>("/gapi/wldy/tmain/selectdb", querys, undefined);
18
+ }
19
+ }
20
+
21
+ export default MainRequest;
@@ -1,3 +1,8 @@
1
+ /** ========== main ========== */
2
+ export interface IWldyMainSelectdbQuerys {}
3
+
4
+ export class TWldyMainSelectdbQuerys implements IWldyMainSelectdbQuerys {}
5
+
1
6
  /** ========== data ========== */
2
7
  export interface IWldyDataSelectdbQuerys {
3
8
  wldypage: number;