chore(server): move domain interfaces (#8124)

move domain interfaces
This commit is contained in:
Daniel Dietzler 2024-03-20 21:42:58 +01:00 committed by GitHub
parent 2dcce03352
commit 84f7ca855a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
150 changed files with 436 additions and 447 deletions

View file

@ -0,0 +1,12 @@
import { SharedLinkEntity } from 'src/infra/entities/shared-link.entity';
export const ISharedLinkRepository = 'ISharedLinkRepository';
export interface ISharedLinkRepository {
getAll(userId: string): Promise<SharedLinkEntity[]>;
get(userId: string, id: string): Promise<SharedLinkEntity | null>;
getByKey(key: Buffer): Promise<SharedLinkEntity | null>;
create(entity: Partial<SharedLinkEntity>): Promise<SharedLinkEntity>;
update(entity: Partial<SharedLinkEntity>): Promise<SharedLinkEntity>;
remove(entity: SharedLinkEntity): Promise<void>;
}