量产报告服务: 实现五个查询 RPC 的 Mongo 聚合与 typed 出参 - #68
Merged
Conversation
补齐 ReportService(GetSummary/GetEvents/GetEnvironment/GetStructure/GetSleepQuality) 的 proto 强类型响应,并从量产 Mongo 聚合睡眠摘要、环境、事件、结构与睡眠质量。 - 时区按 Asia/Shanghai;缺数返回 0/空串/空数组 - 遥测按设备绑定 + 本地日窗口计算均值/min/max - 事件侧挂载 intervention,event_count 等于 abnormal_count Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ReportService五个 RPC(GetSummary / GetEvents / GetEnvironment / GetStructure / GetSleepQuality)补齐 typed proto 出参event_count = abnormal_countTest plan
test_somni_report_*、test_grpc_report全绿uid+record_date调用五个 RPC,字段结构符合契约Made with Cursor