"""AI 数据获取层。 为 AI 应用提供共享的数据获取函数,封装 FDW 查询和业务库查询逻辑。 所有 FDW 查询通过 get_etl_readonly_connection(site_id) 获取只读连接, 自动设置 RLS 门店隔离。 模块: - member_data: 客户消费数据获取(应用 3/6/7 共用) - assistant_data: 助教数据获取(应用 4/5 共用) - page_context: 页面上下文文本化(应用 1 专用) """ from app.ai.data_fetchers.member_data import ( fetch_member_consumption_data, fetch_member_notes, ) from app.ai.data_fetchers.assistant_data import ( fetch_assistant_info, fetch_service_history, ) from app.ai.data_fetchers.page_context import build_page_text __all__ = [ "fetch_member_consumption_data", "fetch_member_notes", "fetch_assistant_info", "fetch_service_history", "build_page_text", ]