@ningboyz/types 1.0.113 → 1.0.115
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TCron, TCore } from "../../index.ts";
|
|
2
2
|
import _ from "lodash";
|
|
3
3
|
|
|
4
4
|
export interface ICronMainResponse {
|
|
@@ -44,7 +44,9 @@ export interface ICronMainResponse {
|
|
|
44
44
|
notePara: string;
|
|
45
45
|
noteType: number;
|
|
46
46
|
noteTypeText: string;
|
|
47
|
-
|
|
47
|
+
/** 角色信息 */
|
|
48
|
+
notiPart: TCore.IPartResponse[];
|
|
49
|
+
/** 角色名称 */
|
|
48
50
|
notiPartText: string;
|
|
49
51
|
notiText: string;
|
|
50
52
|
notiUser: number[];
|
|
@@ -118,7 +120,7 @@ export class TCronMainResponse implements ICronMainResponse {
|
|
|
118
120
|
notePara: string = "";
|
|
119
121
|
noteType: number = 0;
|
|
120
122
|
noteTypeText: string = "";
|
|
121
|
-
notiPart:
|
|
123
|
+
notiPart: TCore.IPartResponse[] = [];
|
|
122
124
|
notiPartText: string = "";
|
|
123
125
|
notiText: string = "";
|
|
124
126
|
notiUser: number[] = [];
|
|
@@ -153,19 +155,15 @@ export class TCronMainResponse implements ICronMainResponse {
|
|
|
153
155
|
}
|
|
154
156
|
}
|
|
155
157
|
|
|
156
|
-
static toFlowDatas(notis: TCronMainResponse[]):
|
|
158
|
+
static toFlowDatas(notis: TCronMainResponse[]): TCron.ICronMainResponse[] {
|
|
157
159
|
return notis.map((u) => this.toFlowData(u));
|
|
158
160
|
}
|
|
159
161
|
|
|
160
|
-
static toFlowData(aNoti: TCronMainResponse):
|
|
161
|
-
const result = new
|
|
162
|
+
static toFlowData(aNoti: TCronMainResponse): TCron.ICronMainResponse {
|
|
163
|
+
const result = new TCron.TCronMainResponse();
|
|
162
164
|
result.whoBuild = aNoti.whoBuild;
|
|
163
165
|
result.userIndx = aNoti.userIndx;
|
|
164
166
|
result.entityID = aNoti.entityID;
|
|
165
|
-
result.billMemo = "";
|
|
166
|
-
result.billUses = "";
|
|
167
|
-
result.ysxmText = "";
|
|
168
|
-
result.outMoney = 0;
|
|
169
167
|
result.createAt = aNoti.createAt;
|
|
170
168
|
result.mastName = aNoti.mastName;
|
|
171
169
|
result.createBy = aNoti.createBy;
|