mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
18 lines
479 B
TypeScript
18 lines
479 B
TypeScript
import {PersonEntry} from '../sql/enitites/PersonEntry';
|
|
import {MediaDTO} from '../../../common/entities/MediaDTO';
|
|
import {PhotoDTO} from '../../../common/entities/PhotoDTO';
|
|
|
|
export interface IPersonManager {
|
|
getAll(): Promise<PersonEntry[]>;
|
|
|
|
getSamplePhoto(name: string): Promise<PhotoDTO>;
|
|
|
|
get(name: string): Promise<PersonEntry>;
|
|
|
|
saveAll(names: string[]): Promise<void>;
|
|
|
|
keywordsToPerson(media: MediaDTO[]): Promise<void>;
|
|
|
|
updateCounts(): Promise<void>;
|
|
}
|