@ningboyz/types 1.4.50 → 1.4.52

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.4.50",
4
+ "version": "1.4.52",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -2,6 +2,7 @@ import { construct, destruct } from "@aximario/json-tree";
2
2
  import _ from "lodash";
3
3
  import { type IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
4
4
  import { TCore } from "../index.ts";
5
+ import { TDictResponse } from "./index.ts";
5
6
 
6
7
  export interface ITypeResponse extends IBaseResponse<ITypeResponse> {
7
8
  whoBuild: number;
@@ -47,6 +48,8 @@ export interface ITypeResponse extends IBaseResponse<ITypeResponse> {
47
48
  /** 部门 */
48
49
  deptText: string;
49
50
  keyWords: string;
51
+
52
+ listDict: TDictResponse[];
50
53
  }
51
54
 
52
55
  export class TTypeResponse extends TBaseResponse<ITypeResponse> implements ITypeResponse {
@@ -93,6 +96,8 @@ export class TTypeResponse extends TBaseResponse<ITypeResponse> implements IType
93
96
  deptText: string = "";
94
97
  keyWords: string = "";
95
98
 
99
+ listDict: TDictResponse[] = [];
100
+
96
101
  static toTree(listType: ITypeResponse[]) {
97
102
  return construct(listType, { id: "typeMain", pid: "parentID", children: "children" }) as ITypeResponse[];
98
103
  }