@ningboyz/apis 1.0.65 → 1.0.67
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/pzpt/glfa.ts +50 -0
- package/packages/pzpt/glkm.ts +50 -0
- package/packages/pzpt/index.ts +7 -3
- package/packages/pzpt/types.ts +74 -1
- package/packages/yzcg/main.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.67",
|
|
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.
|
|
20
|
+
"@ningboyz/types": "1.0.67",
|
|
21
21
|
"axios": "1.8.4"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { TPzpt } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IPzptGlfaInsertdbQuerys, IPzptGlfaSelectdbQuerys, IPzptGlfaDetaildbQuerys, IPzptGlfaUpdatedbQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class GlfaRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 添加关联方案
|
|
13
|
+
* @param params
|
|
14
|
+
*/
|
|
15
|
+
insertdb(querys: IPzptGlfaInsertdbQuerys, params: object) {
|
|
16
|
+
return this.httpRequest.post<TPzpt.IPzptGlfaResponse[]>("/gapi/pzpt/tglfa/insertdb", querys, params);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 获取关联方案列表
|
|
21
|
+
* @param querys
|
|
22
|
+
*/
|
|
23
|
+
selectdb(querys: IPzptGlfaSelectdbQuerys) {
|
|
24
|
+
return this.httpRequest.post<TPzpt.IPzptGlfaResponse[]>("/gapi/pzpt/tglfa/selectdb", querys, undefined);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 删除关联方案
|
|
28
|
+
* @param params
|
|
29
|
+
*/
|
|
30
|
+
deletedb(params: object) {
|
|
31
|
+
return this.httpRequest.post<TPzpt.IPzptGlfaResponse[]>("/gapi/pzpt/tglfa/deletedb", undefined, params);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 关联方案详情
|
|
35
|
+
* @param querys
|
|
36
|
+
*/
|
|
37
|
+
detaildb(querys: IPzptGlfaDetaildbQuerys) {
|
|
38
|
+
return this.httpRequest.post<TPzpt.IPzptGlfaResponse[]>("/gapi/pzpt/tglfa/detaildb", querys, undefined);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 关联方案更新
|
|
42
|
+
* @param querys
|
|
43
|
+
* @param params
|
|
44
|
+
*/
|
|
45
|
+
updatedb(querys: IPzptGlfaUpdatedbQuerys, params: object) {
|
|
46
|
+
return this.httpRequest.post<TPzpt.IPzptGlfaResponse[]>("/gapi/pzpt/tglfa/updatedb", querys, params);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default GlfaRequest;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { TPzpt } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IPzptGlkmInsertdbQuerys, IPzptGlkmSelectdbQuerys, IPzptGlkmDetaildbQuerys, IPzptGlkmUpdatedbQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class GlfaRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 添加关联科目
|
|
13
|
+
* @param params
|
|
14
|
+
*/
|
|
15
|
+
insertdb(querys: IPzptGlkmInsertdbQuerys, params: object) {
|
|
16
|
+
return this.httpRequest.post<TPzpt.IPzptGlkmResponse[]>("/gapi/pzpt/tglkm/insertdb", querys, params);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 获取关联科目列表
|
|
21
|
+
* @param querys
|
|
22
|
+
*/
|
|
23
|
+
selectdb(querys: IPzptGlkmSelectdbQuerys) {
|
|
24
|
+
return this.httpRequest.post<TPzpt.IPzptGlkmResponse[]>("/gapi/pzpt/tglkm/selectdb", querys, undefined);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 删除关联科目
|
|
28
|
+
* @param params
|
|
29
|
+
*/
|
|
30
|
+
deletedb(params: object) {
|
|
31
|
+
return this.httpRequest.post<TPzpt.IPzptGlkmResponse[]>("/gapi/pzpt/tglkm/deletedb", undefined, params);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 关联科目详情
|
|
35
|
+
* @param querys
|
|
36
|
+
*/
|
|
37
|
+
detaildb(querys: IPzptGlkmDetaildbQuerys) {
|
|
38
|
+
return this.httpRequest.post<TPzpt.IPzptGlkmResponse[]>("/gapi/pzpt/tglkm/detaildb", querys, undefined);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 关联科目更新
|
|
42
|
+
* @param querys
|
|
43
|
+
* @param params
|
|
44
|
+
*/
|
|
45
|
+
updatedb(querys: IPzptGlkmUpdatedbQuerys, params: object) {
|
|
46
|
+
return this.httpRequest.post<TPzpt.IPzptGlkmResponse[]>("/gapi/pzpt/tglkm/updatedb", querys, params);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export default GlfaRequest;
|
package/packages/pzpt/index.ts
CHANGED
|
@@ -7,7 +7,8 @@ import K0kmRequest from "./k0km";
|
|
|
7
7
|
import KbkmRequest from "./kbkm";
|
|
8
8
|
import YqkmRequest from "./yqkm";
|
|
9
9
|
import YqkbRequest from "./yqkb";
|
|
10
|
-
|
|
10
|
+
import GlfaRequest from "./glfa";
|
|
11
|
+
import GlkmRequest from "./glkm";
|
|
11
12
|
class PzptRequest {
|
|
12
13
|
public cnfg: CnfgRequest;
|
|
13
14
|
public k8km: K8kmRequest;
|
|
@@ -17,7 +18,8 @@ class PzptRequest {
|
|
|
17
18
|
public kbkm: KbkmRequest;
|
|
18
19
|
public yqkm: YqkmRequest;
|
|
19
20
|
public yqkb: YqkbRequest;
|
|
20
|
-
|
|
21
|
+
public glfa: GlfaRequest;
|
|
22
|
+
public glkm: GlkmRequest;
|
|
21
23
|
constructor(config: IAxiosConfig) {
|
|
22
24
|
const request = createRequest(config);
|
|
23
25
|
this.cnfg = new CnfgRequest(request);
|
|
@@ -28,8 +30,10 @@ class PzptRequest {
|
|
|
28
30
|
this.kbkm = new KbkmRequest(request);
|
|
29
31
|
this.yqkm = new YqkmRequest(request);
|
|
30
32
|
this.yqkb = new YqkbRequest(request);
|
|
33
|
+
this.glfa = new GlfaRequest(request);
|
|
34
|
+
this.glkm = new GlkmRequest(request);
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
export default PzptRequest;
|
|
35
|
-
export * from "./types"
|
|
39
|
+
export * from "./types";
|
package/packages/pzpt/types.ts
CHANGED
|
@@ -240,7 +240,80 @@ export class TPzptYqkbCreatedbQuerys implements IPzptYqkbCreatedbQuerys {
|
|
|
240
240
|
sourcend: number = -1;
|
|
241
241
|
p2pzkjqj: number = -1;
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
/** ========== glfa ========== */
|
|
244
|
+
export interface IPzptGlfaInsertdbQuerys {
|
|
245
|
+
sourcend: number;
|
|
246
|
+
sourceid: number;
|
|
247
|
+
}
|
|
248
|
+
export class TPzptGlfaInsertdbQuerys implements IPzptGlfaInsertdbQuerys {
|
|
249
|
+
sourcend: number = -1;
|
|
250
|
+
sourceid: number = -1;
|
|
251
|
+
}
|
|
252
|
+
export interface IPzptGlfaSelectdbQuerys {
|
|
253
|
+
sourcend: number;
|
|
254
|
+
sourceid: number;
|
|
255
|
+
}
|
|
256
|
+
export class TPzptGlfaSelectdbQuerys implements IPzptGlfaSelectdbQuerys {
|
|
257
|
+
sourcend: number = -1;
|
|
258
|
+
sourceid: number = -1;
|
|
259
|
+
}
|
|
260
|
+
export interface IPzptGlfaDetaildbQuerys {
|
|
261
|
+
sourcend: number;
|
|
262
|
+
sourceid: number;
|
|
263
|
+
glfamain: number;
|
|
264
|
+
}
|
|
265
|
+
export class TPzptGlfaDetaildbQuerys implements IPzptGlfaDetaildbQuerys {
|
|
266
|
+
sourcend: number = -1;
|
|
267
|
+
sourceid: number = -1;
|
|
268
|
+
glfamain: number = -1;
|
|
269
|
+
}
|
|
270
|
+
export interface IPzptGlfaUpdatedbQuerys {
|
|
271
|
+
sourcend: number;
|
|
272
|
+
sourceid: number;
|
|
273
|
+
}
|
|
274
|
+
export class TPzptGlfaUpdatedbQuerys implements IPzptGlfaUpdatedbQuerys {
|
|
275
|
+
sourcend: number = -1;
|
|
276
|
+
sourceid: number = -1;
|
|
277
|
+
}
|
|
278
|
+
/** ========== glkm ========== */
|
|
279
|
+
export interface IPzptGlkmInsertdbQuerys {
|
|
280
|
+
sourcend: number;
|
|
281
|
+
sourceid: number;
|
|
282
|
+
}
|
|
283
|
+
export class TPzptGlkmInsertdbQuerys implements IPzptGlkmInsertdbQuerys {
|
|
284
|
+
sourcend: number = -1;
|
|
285
|
+
sourceid: number = -1;
|
|
286
|
+
}
|
|
287
|
+
export interface IPzptGlkmSelectdbQuerys {
|
|
288
|
+
sourcend: number;
|
|
289
|
+
sourceid: number;
|
|
290
|
+
glfamain: number;
|
|
291
|
+
}
|
|
292
|
+
export class TPzptGlkmSelectdbQuerys implements IPzptGlkmSelectdbQuerys {
|
|
293
|
+
sourcend: number = -1;
|
|
294
|
+
sourceid: number = -1;
|
|
295
|
+
glfamain: number = -1;
|
|
296
|
+
}
|
|
297
|
+
export interface IPzptGlkmDetaildbQuerys {
|
|
298
|
+
sourcend: number;
|
|
299
|
+
sourceid: number;
|
|
300
|
+
glfamain: number;
|
|
301
|
+
glkmmain: number;
|
|
302
|
+
}
|
|
303
|
+
export class TPzptGlkmDetaildbQuerys implements IPzptGlkmDetaildbQuerys {
|
|
304
|
+
sourcend: number = -1;
|
|
305
|
+
sourceid: number = -1;
|
|
306
|
+
glfamain: number = -1;
|
|
307
|
+
glkmmain: number = -1;
|
|
308
|
+
}
|
|
309
|
+
export interface IPzptGlkmUpdatedbQuerys {
|
|
310
|
+
sourcend: number;
|
|
311
|
+
sourceid: number;
|
|
312
|
+
}
|
|
313
|
+
export class TPzptGlkmUpdatedbQuerys implements IPzptGlkmUpdatedbQuerys {
|
|
314
|
+
sourcend: number = -1;
|
|
315
|
+
sourceid: number = -1;
|
|
316
|
+
}
|
|
244
317
|
/** ========== yqkm ========== */
|
|
245
318
|
export interface IPzptYqkmSelctddQuerys {
|
|
246
319
|
sourcend: number;
|
package/packages/yzcg/main.ts
CHANGED
|
@@ -42,7 +42,7 @@ class ParaRequest {
|
|
|
42
42
|
* 获取采购申请详情
|
|
43
43
|
*/
|
|
44
44
|
detaildb(querys: TYzcgMainDetaildbQuerys, params: object) {
|
|
45
|
-
return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/detaildb",
|
|
45
|
+
return this.httpRequest.post<TYzcg.IYzcgMainResponse[]>("/gapi/yzcg/tmain/detaildb", querys, params);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|