@ningboyz/apis 1.1.112 → 1.1.114

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.1.112",
3
+ "version": "1.1.114",
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.1.112",
20
+ "@ningboyz/types": "1.1.114",
21
21
  "axios": "1.8.4"
22
22
  },
23
23
  "devDependencies": {}
@@ -1,10 +1,10 @@
1
1
  import type { TGams } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
- import { IGamsKokmmSelectdbQuerys } from "./type";
3
+ import { IGamsTkokmDeletedbQuerys, IGamsTkokmDetaildbQuerys, IGamsTkokmInsertdbQuerys, IGamsTkokmSelectdbQuerys, IGamsTkokmUpdatedbQuerys } from "./type";
4
4
 
5
5
  class TKokmRequest {
6
6
  private httpRequest: HttpRequest;
7
-
7
+
8
8
  constructor(httpRequest: HttpRequest) {
9
9
  this.httpRequest = httpRequest;
10
10
  }
@@ -12,9 +12,37 @@ class TKokmRequest {
12
12
  /**
13
13
  * 获取报销科目分类
14
14
  */
15
- selectdb(querys: IGamsKokmmSelectdbQuerys) {
15
+ selectdb(querys: IGamsTkokmSelectdbQuerys) {
16
16
  return this.httpRequest.post<TGams.IGamsK0kmResponse[]>("/gams/tk0km/selectdb", querys, undefined);
17
17
  }
18
+
19
+ /**
20
+ * 添加报销科目分类
21
+ */
22
+ insertdb(querys: IGamsTkokmInsertdbQuerys, params: object) {
23
+ return this.httpRequest.post<TGams.IGamsCnfgResponse[]>("/gams/tk0km/insertdb", querys, params);
24
+ }
25
+
26
+ /**
27
+ * 修改报销科目分类
28
+ */
29
+ updatedb(querys: IGamsTkokmUpdatedbQuerys, params: object) {
30
+ return this.httpRequest.post<TGams.IGamsCnfgResponse[]>("/gams/tk0km/updatedb", querys, params);
31
+ }
32
+
33
+ /**
34
+ * 删除报销科目分类
35
+ */
36
+ deletedb(querys: IGamsTkokmDeletedbQuerys, params: object) {
37
+ return this.httpRequest.post<TGams.IGamsCnfgResponse[]>("/gams/tk0km/deletedb", querys, params);
38
+ }
39
+
40
+ /**
41
+ * 获取报销科目分类详情
42
+ */
43
+ detaildb(querys: IGamsTkokmDetaildbQuerys) {
44
+ return this.httpRequest.post<TGams.IGamsCnfgResponse[]>("/gams/tk0km/detaildb", querys, undefined);
45
+ }
18
46
  }
19
47
 
20
48
  export default TKokmRequest;
@@ -87,7 +87,7 @@ export class TGamsCnfgGet4billQuerys implements IGamsCnfgGet4billQuerys {
87
87
  unitmain: number = -1;
88
88
  }
89
89
 
90
- export interface IGamsKokmmSelectdbQuerys {
90
+ export interface IGamsTkokmSelectdbQuerys {
91
91
  sourcend: number;
92
92
  sourceid: number;
93
93
  k0kmkmid: number;
@@ -95,7 +95,7 @@ export interface IGamsKokmmSelectdbQuerys {
95
95
  datalevl: number;
96
96
  }
97
97
 
98
- export class TGamsKokmmSelectdbQuerys implements IGamsKokmmSelectdbQuerys {
98
+ export class TGamsTkokmSelectdbQuerys implements IGamsTkokmSelectdbQuerys {
99
99
  sourcend: number = -1;
100
100
  sourceid: number = -1;
101
101
  k0kmkmid: number = -1;
@@ -103,3 +103,42 @@ export class TGamsKokmmSelectdbQuerys implements IGamsKokmmSelectdbQuerys {
103
103
  datalevl: number = -1;
104
104
  }
105
105
 
106
+ export interface IGamsTkokmInsertdbQuerys {
107
+ sourcend: number;
108
+ sourceid: number;
109
+ }
110
+
111
+ export class TGamsTkokmInsertdbQuerys implements IGamsTkokmInsertdbQuerys {
112
+ sourcend: number = -1;
113
+ sourceid: number = -1;
114
+ }
115
+
116
+ export interface IGamsTkokmUpdatedbQuerys {
117
+ sourcend: number;
118
+ sourceid: number;
119
+ }
120
+
121
+ export class TGamsTkokmUpdatedbQuerys implements IGamsTkokmUpdatedbQuerys {
122
+ sourcend: number = -1;
123
+ sourceid: number = -1;
124
+ }
125
+
126
+ export interface IGamsTkokmDeletedbQuerys {
127
+ sourcend: number;
128
+ sourceid: number;
129
+ }
130
+
131
+ export class TGamsTkokmDeletedbQuerys implements IGamsTkokmDeletedbQuerys {
132
+ sourcend: number = -1;
133
+ sourceid: number = -1;
134
+ }
135
+
136
+ export interface IGamsTkokmDetaildbQuerys {
137
+ sourcend: number;
138
+ sourceid: number;
139
+ }
140
+
141
+ export class TGamsTkokmDetaildbQuerys implements IGamsTkokmDetaildbQuerys {
142
+ sourcend: number = -1;
143
+ sourceid: number = -1;
144
+ }