type Pki = { id: string[] | string; }; interface BaseArrOptios { /** 会在发起请求时传递给请求函数第二个参数的值 */ type: Type; rid: (ids: string | string[], type: Type, _this: BaseArr) => Promise; /** 创建数据 */ c?: (e: T, type: Type, _this: BaseArr) => Promise; /** 修改数据 */ u?: (e: UpdateParam, type: Type, _this: BaseArr) => Promise; /** 查找数据,与rid不同的是,这是复杂条件查找 */ r: ((e: FQ, type: Type, _this: BaseArr) => Promise); /** 删除数据 */ d?: (e: FQ, type: Type, _this: BaseArr) => Promise; onChanged?: cbk; } interface CacheBaseArr { p: boolean; r: string[]; rc: Array<(res: T[]) => void>; d: string[]; dc: Array<(res: any) => void>; } type FormatParam = T | T[] | Page;