ソースを参照

feat(types): 修改log属性

zhangweicheng 4 年 前
コミット
53f80117ab
2 ファイル変更2 行追加2 行削除
  1. 1 1
      types/src/interface/base.ts
  2. 1 1
      types/src/interface/editLog.ts

+ 1 - 1
types/src/interface/base.ts

@@ -225,7 +225,7 @@ export interface ISetData<T = any, F = any, R = any> {
   filter?: F; // 查询条件
   update?: Partial<T>; // 和update类型对应,
   documents?: T[]; // add 类型对应,批量插入
-  odocs?: any[]; // 存放撤销的原始数据?
+  oDocs?: any[]; // 存放撤销的原始数据?
   result?: R; // 特殊的返回结果
 }
 

+ 1 - 1
types/src/interface/editLog.ts

@@ -7,7 +7,7 @@ export interface IEditLog<T = any> {
   action: ActionType; // 动作,增删改等
   update?: Partial<T>; // 和update类型对应,
   documents?: T[]; // add 类型对应,批量插入
-  odocs?: any[]; // 存放删除时的数据
+  oDocs?: any[]; // 存放删除时的数据
   actionName?: ActionName; // 除了增删改查,还会有更复杂的操作,用这个来区分
   userID: string; // 用户
   createdTime: number; // 生成时间