@ningboyz/types 1.8.10 → 1.8.12

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.8.10",
4
+ "version": "1.8.12",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -9,7 +9,7 @@ export interface IAboutConfig {
9
9
 
10
10
  export interface IBaseConfig {
11
11
  title: string;
12
- printUrl: string;
12
+ printURL: string;
13
13
  /**
14
14
  * 登录框标题
15
15
  */
@@ -33,37 +33,37 @@ export interface IBaseConfig {
33
33
  ythURL: string;
34
34
  smsURL: string;
35
35
  scczssURL: string;
36
- verification: boolean;
37
- passwordCheck: boolean;
36
+ verification: 0 | 1;
37
+ passwordCheck: 0 | 1;
38
38
  loginMsgAppId: string;
39
39
  loginMsgAppKey: string;
40
40
  loginMsgTemplateId: string;
41
41
  passwordReg: string;
42
- mobileCheck: boolean;
43
- usesCaptcha: boolean;
42
+ mobileCheck: 0 | 1;
43
+ usesCaptcha: 0 | 1;
44
44
  /**
45
45
  * 登入检测部门
46
46
  * */
47
- loginWidthDept: boolean;
47
+ loginWidthDept: 0 | 1;
48
48
  /**
49
49
  * 存放地点是否联动部门权限
50
50
  * */
51
- laidWidthDept: boolean;
51
+ laidWidthDept: 0 | 1;
52
52
  /**
53
53
  * 在业务中,选择的部门是否为用户权限中的部门
54
54
  * */
55
- get4dept: boolean;
55
+ get4dept: 0 | 1;
56
56
  /**
57
57
  * 是否需要校验签名
58
58
  * */
59
- signatureCheck: boolean;
59
+ signatureCheck: 0 | 1;
60
60
  houseURL: string;
61
61
  jscURL: string;
62
62
  initPassword: string,
63
63
  /**模块大类 */
64
64
  sysclasc: number,
65
65
  /**是否启动登录页 */
66
- isLogin: boolean,
66
+ isLogin: 0 | 1,
67
67
  /**系统截止时间 */
68
68
  endkjqj: number;
69
69
  /**字体 */
@@ -75,11 +75,11 @@ export interface IBaseConfig {
75
75
  /**字体粗细 */
76
76
  appNameFontWeight: number;
77
77
  /**是否加密 */
78
- encrypt:boolean | undefined | null;
78
+ encrypt:0 | 1 | undefined | null;
79
79
  }
80
80
 
81
81
  export interface IPathConfig {
82
- usesRotatePdf: boolean;
82
+ usesRotatePdf: 0 | 1;
83
83
  }
84
84
 
85
85
  export interface IToolDownLoadData {
@@ -0,0 +1,50 @@
1
+ export interface IResponseArray<T> {
2
+ DATASIZE: number;
3
+ ERORCODE: number;
4
+ ERORMEMO: string;
5
+ LISTDATA: Array<T>;
6
+ ONSTATUS: boolean;
7
+ DATADATE: number;
8
+ DATATIME: number;
9
+ PAGESIZE: number;
10
+ ERRORKEY: string;
11
+ TOTALCNT: number;
12
+ //创想返回参数
13
+ code: string;
14
+ msg: string;
15
+ BASE64ST: string;
16
+ }
17
+
18
+ export class TResponseArray<T> implements IResponseArray<T> {
19
+ DATASIZE: number = 0;
20
+ ERORCODE: number = 0;
21
+ ERORMEMO: string = "";
22
+ LISTDATA: Array<T> = [];
23
+ ONSTATUS: boolean = true;
24
+ DATADATE: number = 0;
25
+ DATATIME: number = 0;
26
+ PAGESIZE: number = 0;
27
+ TOTALCNT: number = 0;
28
+ ERRORKEY: string = "";
29
+ code: string = "";
30
+ msg: string = "";
31
+ BASE64ST: string = "";
32
+
33
+ constructor(ONSTATUS: boolean = true) {
34
+ this.ONSTATUS = ONSTATUS;
35
+ }
36
+
37
+ public static toTrue = <T>(LISTDATA: T[], ERORMEMO: string = "") => {
38
+ const response = new TResponseArray<T>(true);
39
+ response.ERORMEMO = ERORMEMO;
40
+ response.LISTDATA = LISTDATA;
41
+ return response;
42
+ };
43
+
44
+ public static toFalse = <T>(LISTDATA: T[], ERORMEMO: string = "") => {
45
+ const response = new TResponseArray<T>(false);
46
+ response.ERORMEMO = ERORMEMO;
47
+ response.LISTDATA = LISTDATA;
48
+ return response;
49
+ };
50
+ }
@@ -1,3 +1,4 @@
1
1
  import { IErrorResponse, TErrorResponse } from "./IErrorResponse";
2
2
  import { TResponse, IResponse } from "./IResponse";
3
- export { type IResponse, type IErrorResponse, TResponse, TErrorResponse };
3
+ import { IResponseArray, TResponseArray } from "./IResponseArray";
4
+ export { type IResponse, type IErrorResponse, type IResponseArray, TResponse, TErrorResponse , TResponseArray};
@@ -0,0 +1,67 @@
1
+ export interface IWtuiEnvrResponse {
2
+ createAt: number;
3
+ createBy: string;
4
+ dataDate: number;
5
+ dataFrom: number;
6
+ dataHide: number;
7
+ dataOrdr: number;
8
+ dataStat: number;
9
+ dataTime: number;
10
+ deleteAt: number;
11
+ deleteBy: string;
12
+ entityID: string;
13
+ envrIndx: number;
14
+ envrPara: string;
15
+ intLogo1: string;
16
+ intLogo2: string;
17
+ intText1: string;
18
+ intText2: string;
19
+ mastGUID: string;
20
+ mastName: string;
21
+ metaData: string;
22
+ name4Map: string;
23
+ outLogo1: string;
24
+ outLogo2: string;
25
+ outText1: string;
26
+ outText2: string;
27
+ queuesBy: number;
28
+ updateAt: number;
29
+ updateBy: string;
30
+ userIndx: number;
31
+ whoBuild: number;
32
+ wtuiMain: number;
33
+ }
34
+
35
+ export class TWtuiEnvrResponse implements IWtuiEnvrResponse {
36
+ createAt: number = 0;
37
+ createBy: string = "";
38
+ dataDate: number = 0;
39
+ dataFrom: number = 0;
40
+ dataHide: number = 0;
41
+ dataOrdr: number = 0;
42
+ dataStat: number = 0;
43
+ dataTime: number = 0;
44
+ deleteAt: number = 0;
45
+ deleteBy: string = "";
46
+ entityID: string = "";
47
+ envrIndx: number = 0;
48
+ envrPara: string = "";
49
+ intLogo1: string = "";
50
+ intLogo2: string = "";
51
+ intText1: string = "";
52
+ intText2: string = "";
53
+ mastGUID: string = "";
54
+ mastName: string = "";
55
+ metaData: string = "";
56
+ name4Map: string = "";
57
+ outLogo1: string = "";
58
+ outLogo2: string = "";
59
+ outText1: string = "";
60
+ outText2: string = "";
61
+ queuesBy: number = 0;
62
+ updateAt: number = 0;
63
+ updateBy: string = "";
64
+ userIndx: number = 0;
65
+ whoBuild: number = 0;
66
+ wtuiMain: number = 0;
67
+ }
package/src/wtui/index.ts CHANGED
@@ -16,6 +16,7 @@ import { IWtuiColWidthResponse, TWtuiColWidthResponse } from "./IWtuiColWidthRes
16
16
  import { IWtuiOperateResponse, TWtuiOperateResponse } from "./IWtuiOperateResponse";
17
17
  import { IWtuiRootResponse, TWtuiRootResponse } from "./IWtuiRootResponse";
18
18
  import { ICalcEffect,TCalcEffect ,ICalcEffectData ,TCalcEffectData } from "./IWtuiItemCalc";
19
+ import { IWtuiEnvrResponse,TWtuiEnvrResponse } from "./IWtuiEnvrResponse";
19
20
 
20
21
  export {
21
22
  type IDictEffect,
@@ -39,6 +40,7 @@ export {
39
40
  type IWtuiZoneResponse, // 位置调整 ‌:ml-citation{ref="1,2" data="citationList"}
40
41
  type IWtuiOperateResponse,
41
42
  type IWtuiRootResponse,
43
+ type IWtuiEnvrResponse,
42
44
  TCalcEffectData,
43
45
  TCalcEffect,
44
46
  TDictEffect,
@@ -59,6 +61,7 @@ export {
59
61
  TWtuiZoneResponse, // 位置调整 ‌:ml-citation{ref="1,2" data="citationList"}
60
62
  TWtuiOperateResponse,
61
63
  TWtuiRootResponse,
64
+ TWtuiEnvrResponse,
62
65
  type TTodoStat,
63
66
  TODO_STAT_COLOR_RED,
64
67
  TODO_STAT_COLOR_ORANGE,