@ningboyz/apis 1.8.102 → 1.8.104
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/core/types.ts +8 -2
- package/packages/core/user.ts +4 -3
- package/packages/yzpz/glfa.ts +57 -0
- package/packages/yzpz/index.ts +3 -0
- package/packages/yzpz/types.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.104",
|
|
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.104",
|
|
21
21
|
"axios": "1.8.4",
|
|
22
22
|
"lodash": "^4.17.21"
|
|
23
23
|
},
|
package/packages/core/types.ts
CHANGED
|
@@ -522,9 +522,15 @@ export class TCoreUnitDetaildbQuerys implements ICoreUnitDetaildbQuerys {
|
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
/** ========== user ========== */
|
|
525
|
-
export interface ICoreUserDetaildbQuerys {
|
|
525
|
+
export interface ICoreUserDetaildbQuerys {
|
|
526
|
+
usermain: number;
|
|
527
|
+
userexid: number;
|
|
528
|
+
}
|
|
526
529
|
|
|
527
|
-
export class TCoreUserDetaildbQuerys implements ICoreUserDetaildbQuerys {
|
|
530
|
+
export class TCoreUserDetaildbQuerys implements ICoreUserDetaildbQuerys {
|
|
531
|
+
usermain: number = -1;
|
|
532
|
+
userexid: number = -1;
|
|
533
|
+
}
|
|
528
534
|
|
|
529
535
|
export interface ICoreUserSelectd2Querys {
|
|
530
536
|
unitmain: number;
|
package/packages/core/user.ts
CHANGED
|
@@ -103,7 +103,8 @@ import {
|
|
|
103
103
|
ICoreUserBindCaQuerys,
|
|
104
104
|
ICoreUserUnbindCaQuerys,
|
|
105
105
|
ICoreUserBindSelectdbQuerys,
|
|
106
|
-
ICoreUserBindSaveitdbQuerys
|
|
106
|
+
ICoreUserBindSaveitdbQuerys,
|
|
107
|
+
ICoreUserDetaildbQuerys
|
|
107
108
|
} from "./types";
|
|
108
109
|
|
|
109
110
|
class UserRequest {
|
|
@@ -117,8 +118,8 @@ class UserRequest {
|
|
|
117
118
|
* @param params
|
|
118
119
|
* @returns
|
|
119
120
|
*/
|
|
120
|
-
detaildb(params: object) {
|
|
121
|
-
return this.httpRequest.post<TCore.IUserResponse[]>("/gapi/core/tuser/detaildb",
|
|
121
|
+
detaildb(querys: ICoreUserDetaildbQuerys, params: object) {
|
|
122
|
+
return this.httpRequest.post<TCore.IUserResponse[]>("/gapi/core/tuser/detaildb", querys, params);
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
/**
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { TYzpz } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IYzpzGlfaDetaildbQuerys } from "./types";
|
|
4
|
+
|
|
5
|
+
class CnfgRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 获取管理方案列表
|
|
13
|
+
* @param params
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
selectdb() {
|
|
17
|
+
return this.httpRequest.post<TYzpz.IYzpzGlfaResponse[]>("/gapi/yzpz/tglfa/selectdb", undefined, undefined);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 删除管理方案列表
|
|
22
|
+
* @param params
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
deletedb(params: object) {
|
|
26
|
+
return this.httpRequest.post<TYzpz.IYzpzGlfaResponse[]>("/gapi/yzpz/tglfa/deletedb", undefined, params);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 修改管理方案列表
|
|
31
|
+
* @param params
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
updatedb(params: object) {
|
|
35
|
+
return this.httpRequest.post<TYzpz.IYzpzGlfaResponse[]>("/gapi/yzpz/tglfa/updatedb", undefined, params);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* 新增管理方案列表
|
|
40
|
+
* @param params
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
insertdb(params: object) {
|
|
44
|
+
return this.httpRequest.post<TYzpz.IYzpzGlfaResponse[]>("/gapi/yzpz/tglfa/insertdb", undefined, params);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 查看管理方案列表
|
|
49
|
+
* @param params
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
detaildb(query: IYzpzGlfaDetaildbQuerys) {
|
|
53
|
+
return this.httpRequest.post<TYzpz.IYzpzGlfaResponse[]>("/gapi/yzpz/tglfa/detaildb", query, undefined);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export default CnfgRequest;
|
package/packages/yzpz/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import K0kmRequest from "./k0km";
|
|
|
5
5
|
import K8kmRequest from "./k8km";
|
|
6
6
|
import KbkmRequest from "./kbkm";
|
|
7
7
|
import TypeRequest from "./type";
|
|
8
|
+
import GlfaRequest from "./glfa";
|
|
8
9
|
|
|
9
10
|
class YzpzRequest {
|
|
10
11
|
public cnfg: CnfgRequest;
|
|
@@ -13,6 +14,7 @@ class YzpzRequest {
|
|
|
13
14
|
public item: ItemRequest;
|
|
14
15
|
public k0km: K0kmRequest;
|
|
15
16
|
public kbkm: KbkmRequest;
|
|
17
|
+
public glfa: GlfaRequest;
|
|
16
18
|
|
|
17
19
|
constructor(config: IAxiosConfig) {
|
|
18
20
|
const request = createRequest(config);
|
|
@@ -22,6 +24,7 @@ class YzpzRequest {
|
|
|
22
24
|
this.item = new ItemRequest(request);
|
|
23
25
|
this.k0km = new K0kmRequest(request);
|
|
24
26
|
this.kbkm = new KbkmRequest(request);
|
|
27
|
+
this.glfa = new GlfaRequest(request);
|
|
25
28
|
}
|
|
26
29
|
}
|
|
27
30
|
|
package/packages/yzpz/types.ts
CHANGED
|
@@ -360,3 +360,11 @@ export class TYzpzItemUploadd2Querys implements IYzpzItemUploadd2Querys {
|
|
|
360
360
|
export interface IYzpzItemQueuesdbQuerys {}
|
|
361
361
|
|
|
362
362
|
export class TYzpzItemQueuesdbQuerys implements IYzpzItemQueuesdbQuerys {}
|
|
363
|
+
|
|
364
|
+
export interface IYzpzGlfaDetaildbQuerys {
|
|
365
|
+
glfamain: number;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export class TYzpzGlfaDetaildbQuerys implements IYzpzGlfaDetaildbQuerys {
|
|
369
|
+
glfamain: number = -1;
|
|
370
|
+
}
|