refactor(api): use dto barrel imports

This commit is contained in:
2026-06-18 14:11:45 +08:00
parent 812a3e41b9
commit d190de4dda
5 changed files with 33 additions and 40 deletions
-12
View File
@@ -1,18 +1,6 @@
"use client";
/**
* ChatScreen 编排层
*
* 子组件职责:
* - ChatHeader:顶部栏(游客 banner / 菜单按钮)
* - ChatArea:消息列表
* - ChatInputBar:输入栏(文字 + 发送 + More)
* - PwaInstallOverlayPWA 安装提示触发器
* - BrowserHintOverlay:浏览器提示
*
* 鉴权解耦(事件驱动):
* - chat 机器不感知鉴权 / 不管 WebSocket
* - auth → chat 的生命周期同步由根级 <ChatAuthSync /> 负责
* - ChatScreen 只派生 UI 展示所需的 isGuest
*/
import { useEffect, useRef, useState } from "react";
import Image from "next/image";