tachybase_todo/packages/collections/src/repository.ts

24 lines
308 B
TypeScript
Raw Normal View History

2021-09-23 00:16:04 +08:00
import { ModelCtor, Model } from 'sequelize';
export interface IRepository {
}
export class Repository implements IRepository {
model: ModelCtor<Model>;
constructor(model: ModelCtor<Model>) {
this.model = model;
}
findAll() {}
findOne() {}
create() {}
update() {}
destroy() {}
}