@ningboyz/types 1.3.101 → 1.3.103

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.3.101",
4
+ "version": "1.3.103",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -1,4 +1,5 @@
1
1
  import _ from "lodash";
2
+ import {TFlowDataResponse} from "../flow";
2
3
 
3
4
  export interface IHznjNotiBillResponse {
4
5
  whoBuild: number;
@@ -89,6 +90,7 @@ export interface IHznjNotiBillResponse {
89
90
  fromNotiMemo: string;
90
91
  cpbzText: string;
91
92
  zbyqText: string;
93
+ deptName: string;
92
94
 
93
95
  coverURL: string;
94
96
  touchURL: string;
@@ -176,6 +178,7 @@ export class THznjNotiBillResponse implements IHznjNotiBillResponse {
176
178
  fromNotiMemo: string = "";
177
179
  cpbzText: string = "";
178
180
  zbyqText: string = "";
181
+ deptName: string = "";
179
182
 
180
183
  coverURL: string = "";
181
184
  touchURL: string = "";
@@ -197,4 +200,29 @@ export class THznjNotiBillResponse implements IHznjNotiBillResponse {
197
200
  _.merge(this, _.pick(data, Object.keys(this)));
198
201
  }
199
202
  }
203
+
204
+ static toFlowData(data: IHznjNotiBillResponse): TFlowDataResponse {
205
+ const result = new TFlowDataResponse();
206
+ result.whoBuild = data.whoBuild;
207
+ result.userIndx = data.userIndx;
208
+ result.flowMain = data.flowMain;
209
+ result.flowNode = data.flowNode;
210
+ result.notified = "";
211
+ result.entityID = data.entityID;
212
+ result.billMain = data.idEntity;
213
+ result.billCode = data.billCode;
214
+ result.billMemo = data.billMemo;
215
+ result.flowStat = data.billStat;
216
+ result.createAt = data.createAt;
217
+ result.mastName = data.mastName;
218
+ result.createBy = data.createBy;
219
+ result.unitMain = data.unitMain;
220
+ result.deptMain = data.deptMain;
221
+ result.menuUUID = data.menuUUID;
222
+ return result;
223
+ }
224
+
225
+ static toFlowDatas(list: IHznjNotiBillResponse[]): TFlowDataResponse[] {
226
+ return list.map((data) => this.toFlowData(data));
227
+ }
200
228
  }