@ningboyz/types 1.1.37 → 1.1.38

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
- "version": "1.1.37",
3
+ "version": "1.1.38",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -3,6 +3,7 @@ import type { IBaseResponse } from "../base/IBaseResponse";
3
3
  import { TBaseResponse } from "../base/IBaseResponse";
4
4
  import _ from "lodash";
5
5
  import { TCore } from "../../index.ts";
6
+ import {IDeptResponse} from "./IDeptResponse.ts";
6
7
 
7
8
  export interface ILaidResponse extends IBaseResponse<ILaidResponse> {
8
9
  whoBuild: number;
@@ -51,6 +52,10 @@ export interface ILaidResponse extends IBaseResponse<ILaidResponse> {
51
52
  isPublic: number;
52
53
  isCommon: number; // #1:公务仓;0:普通存放地点
53
54
  sysclasc: number; // , 模块大类
55
+ /**
56
+ * 部门权限
57
+ * */
58
+ listDept: IDeptResponse[];
54
59
  }
55
60
 
56
61
  export class TLaidResponse extends TBaseResponse<ILaidResponse> implements ILaidResponse {
@@ -100,6 +105,7 @@ export class TLaidResponse extends TBaseResponse<ILaidResponse> implements ILaid
100
105
  isPublic: number = 0;
101
106
  sysclasc: number = 0;
102
107
  isCommon: number = 0;
108
+ listDept: IDeptResponse[] = [];
103
109
 
104
110
  public static toTree(listLaid: ILaidResponse[]) {
105
111
  return construct(listLaid, { id: "laidIndx", pid: "parentID", children: "children" }) as ILaidResponse[];