doll active state <-> doll stream toggle

This commit is contained in:
2025-12-23 09:16:27 +08:00
parent cd71e97655
commit 6c63f2d803
8 changed files with 151 additions and 13 deletions

View File

@@ -0,0 +1,11 @@
import { Doll } from '@prisma/client';
export const UserEvents = {
ACTIVE_DOLL_CHANGED: 'user.active-doll.changed',
} as const;
export interface UserActiveDollChangedEvent {
userId: string;
dollId: string | null;
doll: Doll | null;
}