@ningboyz/types 1.6.7 → 1.6.8

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.6.7",
4
+ "version": "1.6.8",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,3 +1,6 @@
1
+ import _ from "lodash";
2
+ import { IWzpzUserBodyResponse } from "./IWzpzUserBodyResponse";
3
+
1
4
  export interface IWzpzTypeResponse {
2
5
  key: string;
3
6
  title: string;
@@ -39,7 +42,17 @@ export interface IWzpzTypeResponse {
39
42
  itemCome: number;
40
43
  fromType: number;
41
44
  multiVal: number;
45
+ hasGrade: number;
46
+ colWidth: number;
47
+ attrCode: string;
48
+ typePara: string;
49
+ /** 物资分类 */
50
+ k0kmKmid: number;
51
+ k0kmKmmc: string;
52
+ /** 性别 */
53
+ inGender: number;
42
54
  children: IWzpzTypeResponse[];
55
+ userBody: IWzpzUserBodyResponse[];
43
56
  }
44
57
 
45
58
  export class TWzpzTypeResponse implements IWzpzTypeResponse {
@@ -83,5 +96,19 @@ export class TWzpzTypeResponse implements IWzpzTypeResponse {
83
96
  itemCome: number = 0;
84
97
  fromType: number = 0;
85
98
  multiVal: number = 0;
99
+ k0kmKmid: number = 0;
100
+ k0kmKmmc: string = "";
101
+ inGender: number = 0;
102
+ hasGrade: number = 0;
103
+ colWidth: number = 0;
104
+ attrCode: string = "";
105
+ typePara: string = "";
106
+ userBody: IWzpzUserBodyResponse[] = [];
86
107
  children: IWzpzTypeResponse[] = [];
108
+
109
+ constructor(data: Partial<IWzpzTypeResponse> = {}) {
110
+ if (data) {
111
+ _.merge(this, _.pick(data, Object.keys(this)));
112
+ }
113
+ }
87
114
  }
package/src/wzpz/index.ts CHANGED
@@ -18,6 +18,7 @@ export {
18
18
  type IWzpzTypeResponse,
19
19
  type IWzWithParaResponse,
20
20
  type IWzpzUserBodyResponse,
21
+
21
22
  TWzpzCnfgResponse,
22
23
  TWzpzK0kmResponse,
23
24
  TWzpzItemResponse,