import Base from '../models/Base'; import { Where } from '../types/Websocket'; export default interface WSBaseStorage { /** * @description 保存数据 * @param table * @param data * @param namespace */ save(table: string, data: Base): Promise; find(table: string, where: Where): Promise; update(table: string, where: Where, data: any): Promise; remove(table: string, where: Where): Promise; findById(table: string, id: string, namespace?: string): Promise; }