@ningboyz/types 1.7.81 → 1.7.83

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.7.81",
4
+ "version": "1.7.83",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -6,6 +6,7 @@ import { IGzzdMainResponse } from "../gzzd/IGzzdMainResponse";
6
6
  import { ITablMainResponse } from "../tabl/ITablMainResponse";
7
7
  import { ITaskMainResponse } from "../task/ITaskMainResponse";
8
8
  import { IWzpzK8kmResponse } from "../wzpz";
9
+ import _ from "lodash";
9
10
 
10
11
  export interface IGztbMainResponse {
11
12
  whoBuild: number;
@@ -132,4 +133,10 @@ export class TGztbMainResponse implements IGztbMainResponse {
132
133
  listGZZD: IGzzdMainResponse[] = [];
133
134
  readUnit: IUnitResponse[] = [];
134
135
  listWZK8: IWzpzK8kmResponse[] = [];
136
+
137
+ constructor(card: Partial<IGztbMainResponse> = {}) {
138
+ if (card) {
139
+ _.merge(this, _.pick(card, Object.keys(this)));
140
+ }
141
+ }
135
142
  }
@@ -1,10 +1,10 @@
1
1
  import { construct, destruct } from "@aximario/json-tree";
2
2
  import _ from "lodash";
3
+ import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
3
4
  import { IDeptResponse } from "../core";
4
5
  import { IYzpzItemResponse } from "./IYzpzItemResponse";
5
6
  import { IYzpzK0kmResponse } from "./IYzpzK0kmResponse";
6
7
  import { IYzpzTypeResponse } from "./IYzpzTypeResponse";
7
- import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
8
8
 
9
9
  export interface IYzpzK8kmResponse extends IBaseResponse<IYzpzK8kmResponse> {
10
10
  whoBuild: number;
@@ -58,6 +58,7 @@ export interface IYzpzK8kmResponse extends IBaseResponse<IYzpzK8kmResponse> {
58
58
  usesKmhz: number;
59
59
  usesXjhz: number;
60
60
  newAllow: number;
61
+ k8kmPara: string;
61
62
 
62
63
  k0kmKmmc: string;
63
64
  isPublic: number;
@@ -134,6 +135,7 @@ export class TYzpzK8kmResponse extends TBaseResponse<IYzpzK8kmResponse> implemen
134
135
  usesKmhz: number = 0;
135
136
  usesXjhz: number = 0;
136
137
  newAllow: number = 0;
138
+ k8kmPara: string = "";
137
139
 
138
140
  k0kmKmmc: string = "";
139
141
  isPublic: number = 0;