feat(private-room): connect moments feed
Docker Image / Build and Push Docker Image (push) Successful in 9m29s

This commit is contained in:
2026-07-08 16:29:08 +08:00
parent 77b496da2b
commit c46b9b4cdd
41 changed files with 3107 additions and 281 deletions
@@ -0,0 +1,40 @@
import type {
PrivateRoomMoment,
PrivateRoomProfile,
} from "@/data/dto/private-room";
export interface PrivateRoomUnlockPaywallRequest {
momentId: string;
reason: string;
requiredCredits: number;
currentCredits: number;
shortfallCredits: number;
}
export interface PrivateRoomState {
profile: PrivateRoomProfile | null;
items: PrivateRoomMoment[];
nextCursor: string | null;
hasMore: boolean;
creditBalance: number;
errorMessage: string | null;
unlockingMomentId: string | null;
unlockErrorMessage: string | null;
pendingConfirmMomentId: string | null;
unlockPaywallRequest: PrivateRoomUnlockPaywallRequest | null;
unlockSuccessNonce: number;
}
export const initialState: PrivateRoomState = {
profile: null,
items: [],
nextCursor: null,
hasMore: false,
creditBalance: 0,
errorMessage: null,
unlockingMomentId: null,
unlockErrorMessage: null,
pendingConfirmMomentId: null,
unlockPaywallRequest: null,
unlockSuccessNonce: 0,
};