mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
parent
2dcce03352
commit
84f7ca855a
150 changed files with 436 additions and 447 deletions
12
server/src/interfaces/shared-link.repository.ts
Normal file
12
server/src/interfaces/shared-link.repository.ts
Normal 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>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue