Explorar o código

fix(types): setData update变更

vian %!s(int64=4) %!d(string=hai) anos
pai
achega
dfaa76d9dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      types/src/interface/base.ts

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

@@ -180,7 +180,7 @@ export interface ISetData<T = any, F = any, R = any> {
   prop?: string; // 用来指表中的数组属性名,针对如configMaterial里,一个collections 里有多个数组数据的情况
   actionName?: ActionName; // 除了增删改查,还会有更复杂的操作,用这个来区分
   filter?: F; // 查询条件
-  update?: Partial<T>; // 和update类型对应,
+  update?: T; // 和update类型对应,
   documents?: T[]; // add 类型对应,批量插入
   odocs?: any[]; // 存放撤销的原始数据?
   result?: R; // 特殊的返回结果