refactor: make birth time rectification conversational

This commit is contained in:
Jesse_Chen
2026-07-27 22:31:11 +08:00
parent b569cf7825
commit a550b98da7
25 changed files with 756 additions and 1788 deletions
+2 -2
View File
@@ -133,8 +133,8 @@ export function useRectificationV4(input: {
pending,
error,
clearError: () => setError(""),
answer: (answer: string) => data
? mutate(() => answerRectificationV4(data.case.id, data.case.version, answer))
answer: (answer: string, modelId?: string | null) => data
? mutate(() => answerRectificationV4(data.case.id, data.case.version, answer, modelId))
: Promise.resolve(null),
pause: () => data
? mutate(() => transitionRectificationV4(data.case.id, data.case.version, "pause"))