@ningboyz/apis 1.1.69 → 1.1.71
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/.prettierrc +15 -15
- package/index.ts +90 -90
- package/package.json +24 -24
- package/packages/antv/cnfg.ts +47 -47
- package/packages/antv/index.ts +20 -20
- package/packages/antv/main.ts +54 -54
- package/packages/antv/para.ts +47 -47
- package/packages/antv/type.ts +59 -59
- package/packages/axios.ts +136 -136
- package/packages/card/form.ts +18 -18
- package/packages/card/gblb.ts +113 -113
- package/packages/card/index.ts +49 -49
- package/packages/card/main.ts +270 -270
- package/packages/card/p4pz.ts +93 -93
- package/packages/card/tdata.ts +104 -104
- package/packages/card/type.ts +792 -792
- package/packages/card/tzclbgblb.ts +36 -36
- package/packages/card/zcbd.ts +110 -110
- package/packages/card/zccf.ts +105 -105
- package/packages/card/zccz.ts +112 -112
- package/packages/card/zcdb.ts +120 -120
- package/packages/card/zclb.ts +93 -93
- package/packages/card/zczj.ts +21 -21
- package/packages/card/zczjProp.ts +21 -21
- package/packages/cnfg/index.ts +14 -14
- package/packages/cnfg/main.ts +42 -42
- package/packages/cnfg/type.ts +4 -4
- package/packages/core/dddw.ts +51 -51
- package/packages/core/dept.ts +94 -94
- package/packages/core/dict.ts +69 -69
- package/packages/core/index.ts +62 -62
- package/packages/core/laid.ts +85 -85
- package/packages/core/local.ts +29 -29
- package/packages/core/mast.ts +23 -23
- package/packages/core/part.ts +62 -62
- package/packages/core/path.ts +46 -46
- package/packages/core/sysbilltype.ts +53 -53
- package/packages/core/sysclas.ts +16 -16
- package/packages/core/sysenvr.ts +15 -15
- package/packages/core/syskjnd.ts +18 -18
- package/packages/core/sysmenu.ts +119 -119
- package/packages/core/systravel.ts +40 -40
- package/packages/core/type.ts +73 -73
- package/packages/core/types.ts +571 -563
- package/packages/core/unit.ts +75 -75
- package/packages/core/user.ts +385 -375
- package/packages/cron/index.ts +14 -14
- package/packages/cron/main.ts +55 -55
- package/packages/cron/type.ts +18 -18
- package/packages/elem/index.ts +14 -14
- package/packages/elem/main.ts +68 -68
- package/packages/elem/type.ts +7 -7
- package/packages/expd/index.ts +14 -14
- package/packages/expd/main.ts +23 -23
- package/packages/expd/type.ts +18 -18
- package/packages/flow/duty.ts +57 -57
- package/packages/flow/flow.ts +97 -97
- package/packages/flow/index.ts +25 -25
- package/packages/flow/main.ts +61 -61
- package/packages/flow/node.ts +76 -76
- package/packages/flow/type.ts +214 -214
- package/packages/flow/void.ts +64 -64
- package/packages/gams/cnfg.ts +64 -64
- package/packages/gams/index.ts +19 -19
- package/packages/gams/titem.ts +40 -40
- package/packages/gams/ttype.ts +40 -40
- package/packages/gams/type.ts +88 -88
- package/packages/grow/grow.ts +17 -17
- package/packages/grow/index.ts +14 -14
- package/packages/grow/type.ts +7 -7
- package/packages/gzjg/gzlm.ts +82 -82
- package/packages/gzjg/index.ts +16 -16
- package/packages/gzjg/main.ts +62 -62
- package/packages/gzjg/type.ts +100 -100
- package/packages/gztb/index.ts +14 -14
- package/packages/gztb/main.ts +33 -33
- package/packages/gztb/type.ts +27 -27
- package/packages/gzzd/index.ts +14 -14
- package/packages/gzzd/main.ts +82 -82
- package/packages/gzzd/type.ts +68 -68
- package/packages/hzcb/index.ts +14 -14
- package/packages/hzcb/main.ts +43 -43
- package/packages/hzcb/type.ts +20 -20
- package/packages/index.ts +26 -26
- package/packages/load/data.ts +20 -20
- package/packages/load/index.ts +23 -23
- package/packages/load/main.ts +19 -19
- package/packages/load/type.ts +30 -30
- package/packages/load/yqdw.ts +15 -15
- package/packages/load/yqkm.ts +15 -15
- package/packages/myoa/index.ts +19 -19
- package/packages/myoa/main.ts +142 -142
- package/packages/myoa/room.ts +45 -45
- package/packages/myoa/type.ts +186 -186
- package/packages/myoa/withcard.ts +114 -114
- package/packages/noti/index.ts +14 -14
- package/packages/noti/main.ts +47 -47
- package/packages/noti/type.ts +26 -26
- package/packages/ocri/index.ts +13 -13
- package/packages/ocri/path.ts +17 -17
- package/packages/ocri/type.ts +6 -6
- package/packages/pzpt/cnfg.ts +92 -92
- package/packages/pzpt/glfa.ts +59 -59
- package/packages/pzpt/glkm.ts +51 -51
- package/packages/pzpt/index.ts +47 -47
- package/packages/pzpt/item.ts +54 -54
- package/packages/pzpt/k0km.ts +41 -41
- package/packages/pzpt/k8km.ts +55 -55
- package/packages/pzpt/kbkm.ts +25 -25
- package/packages/pzpt/pzpz.ts +60 -60
- package/packages/pzpt/pzpzp6pz.ts +44 -44
- package/packages/pzpt/type.ts +50 -50
- package/packages/pzpt/types.ts +481 -481
- package/packages/pzpt/yqkb.ts +20 -20
- package/packages/pzpt/yqkm.ts +34 -34
- package/packages/tabl/index.ts +14 -14
- package/packages/tabl/main.ts +116 -116
- package/packages/tabl/type.ts +148 -148
- package/packages/task/index.ts +13 -13
- package/packages/task/main.ts +48 -48
- package/packages/task/type.ts +18 -18
- package/packages/type.ts +9 -9
- package/packages/wldy/data.ts +52 -52
- package/packages/wldy/index.ts +20 -20
- package/packages/wldy/item.ts +52 -52
- package/packages/wldy/page.ts +63 -63
- package/packages/wldy/type.ts +48 -48
- package/packages/wtui/ctrl.ts +45 -45
- package/packages/wtui/envr.ts +15 -15
- package/packages/wtui/form.ts +61 -61
- package/packages/wtui/index.ts +44 -44
- package/packages/wtui/item.ts +62 -62
- package/packages/wtui/main.ts +85 -85
- package/packages/wtui/menu.ts +37 -37
- package/packages/wtui/node.ts +55 -55
- package/packages/wtui/todo.ts +77 -77
- package/packages/wtui/type.ts +384 -384
- package/packages/wtui/user.ts +39 -39
- package/packages/wtui/view.ts +90 -90
- package/packages/wtui/zone.ts +52 -52
- package/packages/yzcg/index.ts +14 -14
- package/packages/yzcg/main.ts +49 -49
- package/packages/yzcg/type.ts +22 -22
- package/packages/yzht/index.ts +14 -14
- package/packages/yzht/main.ts +50 -44
- package/packages/yzht/type.ts +38 -32
- package/packages/zbys/detail.ts +55 -55
- package/packages/zbys/index.ts +13 -13
- package/packages/zbys/type.ts +40 -40
- package/packages/zbzd/index.ts +14 -14
- package/packages/zbzd/main.ts +48 -48
- package/packages/zbzd/type.ts +29 -29
- package/readme.md +1 -1
- package/packages/antv/type.ts~ +0 -57
- package/packages/card/index.ts~ +0 -47
- package/packages/card/tzclbsort.ts~ +0 -36
- package/packages/card/zccz.ts~ +0 -106
- package/packages/core/laid.ts~ +0 -84
- package/packages/expd/type.ts~ +0 -17
- package/packages/noti/main.ts~ +0 -47
- package/packages/noti/type.ts~ +0 -29
- package/packages/wtui/type.ts~ +0 -380
package/packages/task/index.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
-
import MainRequest from "./main";
|
|
3
|
-
|
|
4
|
-
class TablRequest {
|
|
5
|
-
public main: MainRequest;
|
|
6
|
-
|
|
7
|
-
constructor(config: IAxiosConfig) {
|
|
8
|
-
const request = createRequest(config);
|
|
9
|
-
this.main = new MainRequest(request);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default TablRequest;
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import MainRequest from "./main";
|
|
3
|
+
|
|
4
|
+
class TablRequest {
|
|
5
|
+
public main: MainRequest;
|
|
6
|
+
|
|
7
|
+
constructor(config: IAxiosConfig) {
|
|
8
|
+
const request = createRequest(config);
|
|
9
|
+
this.main = new MainRequest(request);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default TablRequest;
|
|
14
14
|
export * from "./type";
|
package/packages/task/main.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import type { TTask } from "@ningboyz/types";
|
|
2
|
-
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { ITaskMainDetaildbQuerys, ITaskMainSelectdbQuerys } from "./type";
|
|
4
|
-
import { IParams } from "../type";
|
|
5
|
-
import { IGztbMainResponse } from "@ningboyz/types/src/gztb";
|
|
6
|
-
|
|
7
|
-
class MainRequest {
|
|
8
|
-
private httpRequest: HttpRequest;
|
|
9
|
-
constructor(httpRequest: HttpRequest) {
|
|
10
|
-
this.httpRequest = httpRequest;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
selectdb(querys: ITaskMainSelectdbQuerys) {
|
|
14
|
-
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/selectdb", querys, undefined);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
detaildb(querys: ITaskMainDetaildbQuerys) {
|
|
18
|
-
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/detaildb", querys, undefined);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* 新增
|
|
22
|
-
*/
|
|
23
|
-
insertdb(params: IParams<TTask.ITaskMainResponse>) {
|
|
24
|
-
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/insertdb", undefined, params);
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* 修改
|
|
28
|
-
*/
|
|
29
|
-
updatedb(params: IParams<TTask.ITaskMainResponse>) {
|
|
30
|
-
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/updatedb", undefined, params);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* 删除
|
|
34
|
-
*/
|
|
35
|
-
deletedb(params: IParams<TTask.ITaskMainResponse[]>) {
|
|
36
|
-
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/deletedb", undefined, params);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* 获取当前用户角色范围内任务
|
|
40
|
-
*/
|
|
41
|
-
get4task() {
|
|
42
|
-
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/get4task", undefined, undefined);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export default MainRequest;
|
|
1
|
+
import type { TTask } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { ITaskMainDetaildbQuerys, ITaskMainSelectdbQuerys } from "./type";
|
|
4
|
+
import { IParams } from "../type";
|
|
5
|
+
import { IGztbMainResponse } from "@ningboyz/types/src/gztb";
|
|
6
|
+
|
|
7
|
+
class MainRequest {
|
|
8
|
+
private httpRequest: HttpRequest;
|
|
9
|
+
constructor(httpRequest: HttpRequest) {
|
|
10
|
+
this.httpRequest = httpRequest;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
selectdb(querys: ITaskMainSelectdbQuerys) {
|
|
14
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/selectdb", querys, undefined);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
detaildb(querys: ITaskMainDetaildbQuerys) {
|
|
18
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/detaildb", querys, undefined);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 新增
|
|
22
|
+
*/
|
|
23
|
+
insertdb(params: IParams<TTask.ITaskMainResponse>) {
|
|
24
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/insertdb", undefined, params);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 修改
|
|
28
|
+
*/
|
|
29
|
+
updatedb(params: IParams<TTask.ITaskMainResponse>) {
|
|
30
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/updatedb", undefined, params);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 删除
|
|
34
|
+
*/
|
|
35
|
+
deletedb(params: IParams<TTask.ITaskMainResponse[]>) {
|
|
36
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/deletedb", undefined, params);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* 获取当前用户角色范围内任务
|
|
40
|
+
*/
|
|
41
|
+
get4task() {
|
|
42
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/get4task", undefined, undefined);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default MainRequest;
|
package/packages/task/type.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/** ========== main ========== */
|
|
2
|
-
export interface ITaskMainSelectdbQuerys {
|
|
3
|
-
useronly: number;
|
|
4
|
-
gzjgmain: number;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export class TTaskMainSelectdbQuerys implements ITaskMainSelectdbQuerys {
|
|
8
|
-
useronly: number = -1;
|
|
9
|
-
gzjgmain: number = -1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface ITaskMainDetaildbQuerys {
|
|
13
|
-
taskmain: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export class TTaskMainDetaildbQuerys implements ITaskMainDetaildbQuerys {
|
|
17
|
-
taskmain: number = -1;
|
|
18
|
-
}
|
|
1
|
+
/** ========== main ========== */
|
|
2
|
+
export interface ITaskMainSelectdbQuerys {
|
|
3
|
+
useronly: number;
|
|
4
|
+
gzjgmain: number;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export class TTaskMainSelectdbQuerys implements ITaskMainSelectdbQuerys {
|
|
8
|
+
useronly: number = -1;
|
|
9
|
+
gzjgmain: number = -1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ITaskMainDetaildbQuerys {
|
|
13
|
+
taskmain: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class TTaskMainDetaildbQuerys implements ITaskMainDetaildbQuerys {
|
|
17
|
+
taskmain: number = -1;
|
|
18
|
+
}
|
package/packages/type.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 这是用来给params的类型,表示可以传入FormData也可以传入对应的数据
|
|
3
|
-
* */
|
|
4
|
-
export type IParams<T> = FormData | T
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* 空querys。为了确保以后增加querys,导致params位置后移一位不好改。可以使用这个空的querys类型
|
|
8
|
-
* */
|
|
9
|
-
export type IEmptyQuerys = {} | Omit<Record<string, string | number>, "r" | "whobuild" | "userindx">
|
|
1
|
+
/**
|
|
2
|
+
* 这是用来给params的类型,表示可以传入FormData也可以传入对应的数据
|
|
3
|
+
* */
|
|
4
|
+
export type IParams<T> = FormData | T
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 空querys。为了确保以后增加querys,导致params位置后移一位不好改。可以使用这个空的querys类型
|
|
8
|
+
* */
|
|
9
|
+
export type IEmptyQuerys = {} | Omit<Record<string, string | number>, "r" | "whobuild" | "userindx">
|
package/packages/wldy/data.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import type { TWldy } from "@ningboyz/types";
|
|
2
|
-
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IWldyDataSelectdbQuerys } from "./type";
|
|
4
|
-
|
|
5
|
-
class DataRequest {
|
|
6
|
-
private httpRequest: HttpRequest;
|
|
7
|
-
constructor(httpRequest: HttpRequest) {
|
|
8
|
-
this.httpRequest = httpRequest;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* 查询打印模板
|
|
13
|
-
* @param querys
|
|
14
|
-
*/
|
|
15
|
-
selectdb(querys: IWldyDataSelectdbQuerys) {
|
|
16
|
-
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/selectdb", querys, undefined);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 添加打印模板数据
|
|
21
|
-
* @param params
|
|
22
|
-
*/
|
|
23
|
-
insertdb(params: object) {
|
|
24
|
-
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/insertdb", undefined, params);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* 删除打印模板数据
|
|
29
|
-
* @param params
|
|
30
|
-
*/
|
|
31
|
-
deletedb(params: object) {
|
|
32
|
-
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/deletedb", undefined, params);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* 修改打印模板数据
|
|
37
|
-
* @param params
|
|
38
|
-
*/
|
|
39
|
-
updatedb(params: object) {
|
|
40
|
-
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/updatedb", undefined, params);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* 查看打印模板详情
|
|
45
|
-
* @param params
|
|
46
|
-
*/
|
|
47
|
-
detaildb(params: object) {
|
|
48
|
-
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/detaildb", undefined, params);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export default DataRequest;
|
|
1
|
+
import type { TWldy } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IWldyDataSelectdbQuerys } from "./type";
|
|
4
|
+
|
|
5
|
+
class DataRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 查询打印模板
|
|
13
|
+
* @param querys
|
|
14
|
+
*/
|
|
15
|
+
selectdb(querys: IWldyDataSelectdbQuerys) {
|
|
16
|
+
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/selectdb", querys, undefined);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 添加打印模板数据
|
|
21
|
+
* @param params
|
|
22
|
+
*/
|
|
23
|
+
insertdb(params: object) {
|
|
24
|
+
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/insertdb", undefined, params);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 删除打印模板数据
|
|
29
|
+
* @param params
|
|
30
|
+
*/
|
|
31
|
+
deletedb(params: object) {
|
|
32
|
+
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/deletedb", undefined, params);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 修改打印模板数据
|
|
37
|
+
* @param params
|
|
38
|
+
*/
|
|
39
|
+
updatedb(params: object) {
|
|
40
|
+
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/updatedb", undefined, params);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 查看打印模板详情
|
|
45
|
+
* @param params
|
|
46
|
+
*/
|
|
47
|
+
detaildb(params: object) {
|
|
48
|
+
return this.httpRequest.post<TWldy.IWldyDataResponse[]>("/gapi/wldy/tdata/detaildb", undefined, params);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default DataRequest;
|
package/packages/wldy/index.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
-
import PageRequest from "./page";
|
|
3
|
-
import DataRequest from "./data";
|
|
4
|
-
import ItemRequest from "./item";
|
|
5
|
-
|
|
6
|
-
class WldyRequest {
|
|
7
|
-
public page: PageRequest;
|
|
8
|
-
public data: DataRequest;
|
|
9
|
-
public item: ItemRequest;
|
|
10
|
-
|
|
11
|
-
constructor(config: IAxiosConfig) {
|
|
12
|
-
const request = createRequest(config);
|
|
13
|
-
this.page = new PageRequest(request);
|
|
14
|
-
this.data = new DataRequest(request);
|
|
15
|
-
this.item = new ItemRequest(request);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default WldyRequest;
|
|
20
|
-
export * from "./type"
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import PageRequest from "./page";
|
|
3
|
+
import DataRequest from "./data";
|
|
4
|
+
import ItemRequest from "./item";
|
|
5
|
+
|
|
6
|
+
class WldyRequest {
|
|
7
|
+
public page: PageRequest;
|
|
8
|
+
public data: DataRequest;
|
|
9
|
+
public item: ItemRequest;
|
|
10
|
+
|
|
11
|
+
constructor(config: IAxiosConfig) {
|
|
12
|
+
const request = createRequest(config);
|
|
13
|
+
this.page = new PageRequest(request);
|
|
14
|
+
this.data = new DataRequest(request);
|
|
15
|
+
this.item = new ItemRequest(request);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default WldyRequest;
|
|
20
|
+
export * from "./type"
|
package/packages/wldy/item.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import type { TWldy } from "@ningboyz/types";
|
|
2
|
-
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IWldyItemSelectdbQuerys } from "./type";
|
|
4
|
-
|
|
5
|
-
class ItemRequest {
|
|
6
|
-
private httpRequest: HttpRequest;
|
|
7
|
-
constructor(httpRequest: HttpRequest) {
|
|
8
|
-
this.httpRequest = httpRequest;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* 查询打印模板
|
|
13
|
-
* @param querys
|
|
14
|
-
*/
|
|
15
|
-
selectdb(querys: IWldyItemSelectdbQuerys) {
|
|
16
|
-
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/selectdb", querys, undefined);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 添加打印模板数据
|
|
21
|
-
* @param params
|
|
22
|
-
*/
|
|
23
|
-
insertdb(params: object) {
|
|
24
|
-
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/insertdb", undefined, params);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* 删除打印模板数据
|
|
29
|
-
* @param params
|
|
30
|
-
*/
|
|
31
|
-
deletedb(params: object) {
|
|
32
|
-
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/deletedb", undefined, params);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* 修改打印模板数据
|
|
37
|
-
* @param params
|
|
38
|
-
*/
|
|
39
|
-
updatedb(params: object) {
|
|
40
|
-
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/updatedb", undefined, params);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* 查看打印模板详情
|
|
45
|
-
* @param params
|
|
46
|
-
*/
|
|
47
|
-
detaildb(params: object) {
|
|
48
|
-
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/detaildb", undefined, params);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export default ItemRequest;
|
|
1
|
+
import type { TWldy } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IWldyItemSelectdbQuerys } from "./type";
|
|
4
|
+
|
|
5
|
+
class ItemRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 查询打印模板
|
|
13
|
+
* @param querys
|
|
14
|
+
*/
|
|
15
|
+
selectdb(querys: IWldyItemSelectdbQuerys) {
|
|
16
|
+
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/selectdb", querys, undefined);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 添加打印模板数据
|
|
21
|
+
* @param params
|
|
22
|
+
*/
|
|
23
|
+
insertdb(params: object) {
|
|
24
|
+
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/insertdb", undefined, params);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 删除打印模板数据
|
|
29
|
+
* @param params
|
|
30
|
+
*/
|
|
31
|
+
deletedb(params: object) {
|
|
32
|
+
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/deletedb", undefined, params);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 修改打印模板数据
|
|
37
|
+
* @param params
|
|
38
|
+
*/
|
|
39
|
+
updatedb(params: object) {
|
|
40
|
+
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/updatedb", undefined, params);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* 查看打印模板详情
|
|
45
|
+
* @param params
|
|
46
|
+
*/
|
|
47
|
+
detaildb(params: object) {
|
|
48
|
+
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/detaildb", undefined, params);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default ItemRequest;
|
package/packages/wldy/page.ts
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import type { TWldy } from "@ningboyz/types";
|
|
2
|
-
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {IWldyPageDetaildbQuerys, IWldyPageSelectd2Querys, IWldyPageSelectdbQuerys} from "./type";
|
|
4
|
-
|
|
5
|
-
class PageRequest {
|
|
6
|
-
private httpRequest: HttpRequest;
|
|
7
|
-
constructor(httpRequest: HttpRequest) {
|
|
8
|
-
this.httpRequest = httpRequest;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* 查询打印模板
|
|
13
|
-
* @param sysclasc
|
|
14
|
-
* @param useruuid
|
|
15
|
-
* @param unitmain
|
|
16
|
-
*/
|
|
17
|
-
selectdb(querys: IWldyPageSelectdbQuerys) {
|
|
18
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectdb", querys, undefined);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* 根据使用场景查询打印模板
|
|
23
|
-
* @param pageuses
|
|
24
|
-
*/
|
|
25
|
-
selectd2(querys: IWldyPageSelectd2Querys) {
|
|
26
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectd2", querys, undefined);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 添加打印模板数据
|
|
31
|
-
* @param params
|
|
32
|
-
*/
|
|
33
|
-
insertdb(params: object) {
|
|
34
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/insertdb", undefined, params);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 删除打印模板数据
|
|
39
|
-
* @param params
|
|
40
|
-
*/
|
|
41
|
-
deletedb(params: object) {
|
|
42
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/deletedb", undefined, params);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* 修改打印模板数据
|
|
47
|
-
* @param params
|
|
48
|
-
*/
|
|
49
|
-
updatedb(params: object) {
|
|
50
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/updatedb", undefined, params);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* 查看打印模板详情
|
|
55
|
-
* @param querys
|
|
56
|
-
* @param params
|
|
57
|
-
*/
|
|
58
|
-
detaildb(querys: IWldyPageDetaildbQuerys, params: object) {
|
|
59
|
-
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/detaildb", querys, params);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export default PageRequest;
|
|
1
|
+
import type { TWldy } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import {IWldyPageDetaildbQuerys, IWldyPageSelectd2Querys, IWldyPageSelectdbQuerys} from "./type";
|
|
4
|
+
|
|
5
|
+
class PageRequest {
|
|
6
|
+
private httpRequest: HttpRequest;
|
|
7
|
+
constructor(httpRequest: HttpRequest) {
|
|
8
|
+
this.httpRequest = httpRequest;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 查询打印模板
|
|
13
|
+
* @param sysclasc
|
|
14
|
+
* @param useruuid
|
|
15
|
+
* @param unitmain
|
|
16
|
+
*/
|
|
17
|
+
selectdb(querys: IWldyPageSelectdbQuerys) {
|
|
18
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectdb", querys, undefined);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 根据使用场景查询打印模板
|
|
23
|
+
* @param pageuses
|
|
24
|
+
*/
|
|
25
|
+
selectd2(querys: IWldyPageSelectd2Querys) {
|
|
26
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectd2", querys, undefined);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 添加打印模板数据
|
|
31
|
+
* @param params
|
|
32
|
+
*/
|
|
33
|
+
insertdb(params: object) {
|
|
34
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/insertdb", undefined, params);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 删除打印模板数据
|
|
39
|
+
* @param params
|
|
40
|
+
*/
|
|
41
|
+
deletedb(params: object) {
|
|
42
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/deletedb", undefined, params);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 修改打印模板数据
|
|
47
|
+
* @param params
|
|
48
|
+
*/
|
|
49
|
+
updatedb(params: object) {
|
|
50
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/updatedb", undefined, params);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 查看打印模板详情
|
|
55
|
+
* @param querys
|
|
56
|
+
* @param params
|
|
57
|
+
*/
|
|
58
|
+
detaildb(querys: IWldyPageDetaildbQuerys, params: object) {
|
|
59
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/detaildb", querys, params);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export default PageRequest;
|
package/packages/wldy/type.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
/** ========== data ========== */
|
|
2
|
-
export interface IWldyDataSelectdbQuerys {
|
|
3
|
-
wldypage: number;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export class TWldyDataSelectdbQuerys implements IWldyDataSelectdbQuerys {
|
|
7
|
-
wldypage: number = -1;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/** ========== item ========== */
|
|
11
|
-
export interface IWldyItemSelectdbQuerys {
|
|
12
|
-
wldypage: number;
|
|
13
|
-
wldydata: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export class TWldyItemSelectdbQuerys implements IWldyItemSelectdbQuerys {
|
|
17
|
-
wldypage: number = -1;
|
|
18
|
-
wldydata: number = -1;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** ========== page ========== */
|
|
22
|
-
export interface IWldyPageSelectdbQuerys {
|
|
23
|
-
sysclasc: number;
|
|
24
|
-
useruuid: string;
|
|
25
|
-
unitmain: number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export class TWldyPageSelectdbQuerys implements IWldyPageSelectdbQuerys {
|
|
29
|
-
sysclasc: number = -1;
|
|
30
|
-
useruuid: string = "";
|
|
31
|
-
unitmain: number = -1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface IWldyPageSelectd2Querys {
|
|
35
|
-
pageuses: string;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export class TWldyPageSelectd2Querys implements IWldyPageSelectd2Querys {
|
|
39
|
-
pageuses: string = "";
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface IWldyPageDetaildbQuerys {
|
|
43
|
-
wldypage: number;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export class TWldyPageDetaildbQuerys implements IWldyPageDetaildbQuerys {
|
|
47
|
-
wldypage: number = 0;
|
|
48
|
-
}
|
|
1
|
+
/** ========== data ========== */
|
|
2
|
+
export interface IWldyDataSelectdbQuerys {
|
|
3
|
+
wldypage: number;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export class TWldyDataSelectdbQuerys implements IWldyDataSelectdbQuerys {
|
|
7
|
+
wldypage: number = -1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** ========== item ========== */
|
|
11
|
+
export interface IWldyItemSelectdbQuerys {
|
|
12
|
+
wldypage: number;
|
|
13
|
+
wldydata: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export class TWldyItemSelectdbQuerys implements IWldyItemSelectdbQuerys {
|
|
17
|
+
wldypage: number = -1;
|
|
18
|
+
wldydata: number = -1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** ========== page ========== */
|
|
22
|
+
export interface IWldyPageSelectdbQuerys {
|
|
23
|
+
sysclasc: number;
|
|
24
|
+
useruuid: string;
|
|
25
|
+
unitmain: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class TWldyPageSelectdbQuerys implements IWldyPageSelectdbQuerys {
|
|
29
|
+
sysclasc: number = -1;
|
|
30
|
+
useruuid: string = "";
|
|
31
|
+
unitmain: number = -1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface IWldyPageSelectd2Querys {
|
|
35
|
+
pageuses: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class TWldyPageSelectd2Querys implements IWldyPageSelectd2Querys {
|
|
39
|
+
pageuses: string = "";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface IWldyPageDetaildbQuerys {
|
|
43
|
+
wldypage: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class TWldyPageDetaildbQuerys implements IWldyPageDetaildbQuerys {
|
|
47
|
+
wldypage: number = 0;
|
|
48
|
+
}
|