@ningboyz/apis 1.8.66 → 1.8.68
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/card/index.ts +3 -1
- package/packages/card/pgxx.ts +60 -0
- package/packages/card/types.ts +40 -5
- package/packages/cnfg/main.ts +10 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.68",
|
|
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.8.
|
|
20
|
+
"@ningboyz/types": "1.8.68",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/card/index.ts
CHANGED
|
@@ -17,6 +17,7 @@ import ZcpdRequest from "./zcpd";
|
|
|
17
17
|
import ZcpdBillRequest from "./zcpdbill";
|
|
18
18
|
import ZczjRequest from "./zczj";
|
|
19
19
|
import ZczjPropRequest from "./zczjProp";
|
|
20
|
+
import PgxxRequest from "./pgxx";
|
|
20
21
|
|
|
21
22
|
class CardRequest {
|
|
22
23
|
public gblb: GblbRequest;
|
|
@@ -37,6 +38,7 @@ class CardRequest {
|
|
|
37
38
|
public room: RoomRequest;
|
|
38
39
|
public zcpd: ZcpdRequest;
|
|
39
40
|
public zcpdbill: ZcpdBillRequest;
|
|
41
|
+
public pgxx: PgxxRequest;
|
|
40
42
|
|
|
41
43
|
constructor(config: IAxiosConfig) {
|
|
42
44
|
const request = createRequest(config);
|
|
@@ -58,9 +60,9 @@ class CardRequest {
|
|
|
58
60
|
this.room = new RoomRequest(request);
|
|
59
61
|
this.zcpd = new ZcpdRequest(request);
|
|
60
62
|
this.zcpdbill = new ZcpdBillRequest(request);
|
|
63
|
+
this.pgxx = new PgxxRequest(request);
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
export default CardRequest;
|
|
65
68
|
export * from "./types";
|
|
66
|
-
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { TCard } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { ICardPgxxDeletedbQuerys, ICardPgxxDetaildbQuerys, ICardPgxxInsertdbQuerys, ICardPgxxSelectdbQuerys, ICardPgxxUpdatedbQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class PgxxRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 获取评估信息列表
|
|
13
|
+
* @param querys
|
|
14
|
+
* @param params
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
selectdb(querys: ICardPgxxSelectdbQuerys, params: object) {
|
|
18
|
+
return this.httpRequest.post<TCard.ICardPgxxResponse[]>("/gapi/card/tpgxx/selectdb", querys, params);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 获取评估信息详情
|
|
23
|
+
* @param querys
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
detaildb(querys: ICardPgxxDetaildbQuerys, params: object) {
|
|
27
|
+
return this.httpRequest.post<TCard.ICardPgxxResponse[]>("/gapi/card/tpgxx/detaildb", querys, params);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 新增评估信息
|
|
32
|
+
* @param querys
|
|
33
|
+
* @param params
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
36
|
+
insertdb(querys: ICardPgxxInsertdbQuerys, params: object) {
|
|
37
|
+
return this.httpRequest.post<TCard.ICardPgxxResponse[]>(`/gapi/card/tpgxx/insertdb`, querys, params);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 修改评估信息
|
|
42
|
+
* @param querys
|
|
43
|
+
* @param params
|
|
44
|
+
* @returns
|
|
45
|
+
*/
|
|
46
|
+
updatedb(querys: ICardPgxxUpdatedbQuerys, params: object) {
|
|
47
|
+
return this.httpRequest.post<TCard.ICardPgxxResponse[]>("/gapi/card/tpgxx/updatedb", querys, params);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 删除评估信息
|
|
52
|
+
* @param params
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
deletedb(querys: ICardPgxxDeletedbQuerys, params: object) {
|
|
56
|
+
return this.httpRequest.post<TCard.ICardPgxxResponse[]>("/gapi/card/tpgxx/deletedb", querys, params);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export default PgxxRequest;
|
package/packages/card/types.ts
CHANGED
|
@@ -1064,11 +1064,9 @@ export class TCardMainDetaild3Querys implements ICardMainDetaild3Querys {
|
|
|
1064
1064
|
entityid: string = "";
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
|
-
export interface ICardMainUpdated9Querys {
|
|
1068
|
-
}
|
|
1067
|
+
export interface ICardMainUpdated9Querys {}
|
|
1069
1068
|
|
|
1070
|
-
export class TCardMainUpdated9Querys implements ICardMainUpdated9Querys {
|
|
1071
|
-
}
|
|
1069
|
+
export class TCardMainUpdated9Querys implements ICardMainUpdated9Querys {}
|
|
1072
1070
|
|
|
1073
1071
|
/** ========== hyhb ==========*/
|
|
1074
1072
|
export interface ICardHyhbSelectdbQuerys {
|
|
@@ -1237,4 +1235,41 @@ export class TCardZcpdBillSelectdbQuerys implements ICardZcpdBillSelectdbQuerys
|
|
|
1237
1235
|
zcpdmain: number = -1;
|
|
1238
1236
|
cardmain: number = -1;
|
|
1239
1237
|
cardexid: number = -1;
|
|
1240
|
-
}
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
/** ========== pgxx ==========*/
|
|
1241
|
+
export interface ICardPgxxDeletedbQuerys {}
|
|
1242
|
+
|
|
1243
|
+
export class TCardPgxxDeletedbQuerys implements ICardPgxxDeletedbQuerys {}
|
|
1244
|
+
|
|
1245
|
+
export interface ICardPgxxUpdatedbQuerys {}
|
|
1246
|
+
|
|
1247
|
+
export class TCardPgxxUpdatedbQuerys implements ICardPgxxUpdatedbQuerys {}
|
|
1248
|
+
|
|
1249
|
+
export interface ICardPgxxInsertdbQuerys {}
|
|
1250
|
+
|
|
1251
|
+
export class TCardPgxxInsertdbQuerys implements ICardPgxxInsertdbQuerys {}
|
|
1252
|
+
|
|
1253
|
+
export interface ICardPgxxSelectdbQuerys {
|
|
1254
|
+
withflow: number;
|
|
1255
|
+
useronly: number;
|
|
1256
|
+
viewonly: number;
|
|
1257
|
+
unitmain: number;
|
|
1258
|
+
queuesby: string;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
export class TCardPgxxSelectdbQuerys implements ICardPgxxSelectdbQuerys {
|
|
1262
|
+
withflow: number = -1;
|
|
1263
|
+
useronly: number = -1;
|
|
1264
|
+
viewonly: number = -1;
|
|
1265
|
+
unitmain: number = -1;
|
|
1266
|
+
queuesby: string = "";
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
export interface ICardPgxxDetaildbQuerys {
|
|
1270
|
+
pgxxmain: number;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
export class TCardPgxxDetaildbQuerys implements ICardPgxxDetaildbQuerys {
|
|
1274
|
+
pgxxmain: number = -1;
|
|
1275
|
+
}
|
package/packages/cnfg/main.ts
CHANGED
|
@@ -25,13 +25,21 @@ class MainRequest {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* 修改cnfg4val配置
|
|
29
29
|
* @param params
|
|
30
30
|
* @returns
|
|
31
31
|
*/
|
|
32
32
|
updatedb(params: object) {
|
|
33
33
|
return this.httpRequest.post<TCnfg.ICnfgMainResponse[]>("/gapi/cnfg/tmain/cnfg4val/updatedb", undefined, params);
|
|
34
|
-
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 修改配置
|
|
38
|
+
* @param params
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
updatedb2(params: object) {
|
|
42
|
+
return this.httpRequest.post<TCnfg.ICnfgMainResponse[]>("/gapi/cnfg/tmain/updatedb", undefined, params);
|
|
35
43
|
}
|
|
36
44
|
|
|
37
45
|
/**
|