@ningboyz/apis 1.0.170 → 1.0.172

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.0.170",
3
+ "version": "1.0.172",
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.0.170",
20
+ "@ningboyz/types": "1.0.172",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -64,6 +64,20 @@ class DictRequest {
64
64
  selectdy(params: object) {
65
65
  return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/selectdy", undefined, params);
66
66
  }
67
+
68
+ /**
69
+ * 还原字典信息
70
+ */
71
+ uploadit(querys: ICoreDictDetaildbQuerys, params: object) {
72
+ return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/uploadit", querys, params);
73
+ }
74
+
75
+ /**
76
+ * 排序字典信息
77
+ */
78
+ queuesdb(querys: ICoreDictDetaildbQuerys, params: object) {
79
+ return this.httpRequest.post<TCore.IDictResponse[]>("/core/tdict/queuesdb", querys, params);
80
+ }
67
81
  }
68
82
 
69
83
  export default DictRequest;
@@ -114,6 +114,13 @@ class SysmenuRequest {
114
114
  uploadit(querys: ICoreSysmenuWithCoreInsertdbQuerys, params: object) {
115
115
  return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/uploadit", querys, params);
116
116
  }
117
+
118
+ /**
119
+ * 排序所有菜单
120
+ */
121
+ queuesdb(querys: ICoreSysmenuWithCoreDetaildbQuerys, params: object) {
122
+ return this.httpRequest.post<TCore.ISysMenuWithCoreResponse[]>("/core/tsysmenu/withcore/queuesdb", querys, params);
123
+ }
117
124
  }
118
125
 
119
126
  export default SysmenuRequest;
@@ -15,7 +15,6 @@ class TypeRequest {
15
15
  return this.httpRequest.post<TCore.ITypeResponse[]>("/core/ttype/selectdb", querys, undefined);
16
16
  }
17
17
 
18
-
19
18
  /**
20
19
  * 获取字典类型列表
21
20
  */
@@ -63,6 +62,13 @@ class TypeRequest {
63
62
  return this.httpRequest.post<TCore.ITypeResponse[]>("/core/ttype/uploadit", querys, params);
64
63
  }
65
64
 
65
+ /**
66
+ * 排序字典类型
67
+ */
68
+ queuesdb(querys: ICoreTypeQuerys, params: object) {
69
+ return this.httpRequest.post<TCore.ITypeResponse[]>("/core/ttype/queuesdb", querys, params);
70
+ }
71
+
66
72
  /**
67
73
  * 查找工资栏目---字典类型
68
74
  */
@@ -1,14 +1,17 @@
1
1
  import { createRequest, IAxiosConfig } from "../axios";
2
2
  import CnfgRequest from "./cnfg";
3
3
  import TtypeRequest from "./ttype";
4
+ import TItemRequest from "./titem";
4
5
 
5
6
  class GamsRequest {
6
7
  public cnfg: CnfgRequest;
7
8
  public ttype: TtypeRequest;
9
+ public titem: TItemRequest;
8
10
  constructor(config: IAxiosConfig) {
9
11
  const request = createRequest(config);
10
12
  this.cnfg = new CnfgRequest(request);
11
13
  this.ttype = new TtypeRequest(request);
14
+ this.titem = new TItemRequest(request);
12
15
  }
13
16
  }
14
17
 
@@ -0,0 +1,40 @@
1
+ import type { TGams } from "@ningboyz/types";
2
+ import type { HttpRequest } from "../axios";
3
+ import { IGamsItemSelectdbQuerys, IGamsItemInsertdbQuerys } from "./type";
4
+
5
+ class TItemRequest {
6
+ private httpRequest: HttpRequest;
7
+ constructor(httpRequest: HttpRequest) {
8
+ this.httpRequest = httpRequest;
9
+ }
10
+
11
+ /**
12
+ * 获取标准项目
13
+ */
14
+ selectdb(querys: IGamsItemSelectdbQuerys) {
15
+ return this.httpRequest.post<TGams.IGamsItemResponse[]>("/gams/titem/selectdb", querys, undefined);
16
+ }
17
+
18
+ /**
19
+ * 添加标准项目
20
+ */
21
+ insertdb(querys: IGamsItemInsertdbQuerys, params: object) {
22
+ return this.httpRequest.post<TGams.IGamsItemResponse[]>("/gams/titem/insertdb", querys, params);
23
+ }
24
+
25
+ /**
26
+ * 修改标准项目
27
+ */
28
+ updatedb(querys: IGamsItemInsertdbQuerys, params: object) {
29
+ return this.httpRequest.post<TGams.IGamsItemResponse[]>("/gams/titem/updatedb", querys, params);
30
+ }
31
+
32
+ /**
33
+ * 删除标准项目
34
+ */
35
+ deletedb(querys: IGamsItemInsertdbQuerys, params: object) {
36
+ return this.httpRequest.post<TGams.IGamsItemResponse[]>("/gams/titem/deletedb", querys, params);
37
+ }
38
+ }
39
+
40
+ export default TItemRequest;
@@ -47,3 +47,27 @@ export class TGamsTtypeInsertdbQuerys implements IGamsTtypeInsertdbQuerys {
47
47
  sourcend: number = -1;
48
48
  sourceid: number = -1;
49
49
  }
50
+
51
+ export interface IGamsItemSelectdbQuerys {
52
+ sourcend: number;
53
+ sourceid: number;
54
+ typemain: number;
55
+ typename: string;
56
+ }
57
+
58
+ export class TGamsItemSelectdbQuerys implements IGamsItemSelectdbQuerys {
59
+ sourcend: number = -1;
60
+ sourceid: number = -1;
61
+ typemain: number = -1;
62
+ typename: string = "";
63
+ }
64
+
65
+ export interface IGamsItemInsertdbQuerys {
66
+ sourcend: number;
67
+ sourceid: number;
68
+ }
69
+
70
+ export class TGamsItemInsertdbQuerys implements IGamsItemInsertdbQuerys {
71
+ sourcend: number = -1;
72
+ sourceid: number = -1;
73
+ }
@@ -30,7 +30,6 @@ class ParaRequest {
30
30
  return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/updatedb", querys, params);
31
31
  }
32
32
 
33
-
34
33
  /**
35
34
  * 删除预算指标
36
35
  */