feat(viewer): photo viewer with zoom, navigation and deep link
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -198,6 +198,13 @@ export async function seedPhoto(
|
||||
return photoId;
|
||||
}
|
||||
|
||||
/** 直删照片域行(Task 8 e2e:模拟已分享深链的照片下线——变体行在前、主行在后;
|
||||
* MinIO 对象随 dev 前缀清理约定,不在此删)。 */
|
||||
export async function deleteSeededPhoto(photoId: string): Promise<void> {
|
||||
await prisma.photo_variants.deleteMany({ where: { photoId } });
|
||||
await prisma.photos.deleteMany({ where: { id: photoId } });
|
||||
}
|
||||
|
||||
/** 清理本文件种下的相册域行(扁平字符串外键、无 DB 级联——按子表在前手工删;
|
||||
* category_translations 只挂 categoryId,先取分类 id 再删翻译;Task 7 起照片域
|
||||
* 同理:先按相册取照片 id 删变体行,再删 photos 主行)。
|
||||
|
||||
Reference in New Issue
Block a user