量产接口: 完善问卷答案与音频目录查询 - #65
Merged
Merged
Conversation
问卷 GetAnswer 移除 tags 并原样保留动态 value 结构,同时沿用原字段号以降低客户端兼容风险。新增量产音频目录、标签和热门 RPC,隔离量产 ES,补充带过期时间的数据源缓存、全量上限保护、gRPC 反射及完整回归测试。 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
GetAnswer:按uid + answer_id查询答卷,移除tags/values,并通过google.protobuf.Value保留 Mongovalue的对象、数组、字符串、数字和布尔值形态;沿用字段号 5 以降低协议兼容风险GetAudio、GetAudioTag、GetHotRPC,支持分页、全量拉取、内容标签过滤与根标签向量文本匹配grpcio-reflection依赖Compatibility
AnswerItem.value保留原字段号 5,已移除的tags字段号 4 被保留,不复用于其他字段value;直接查看 protobuf 内部结构时可能显示struct_value/list_valueTest plan
value与 gRPC 标准 JSON 映射结果逐项一致git diff --check通过Notes
.worktrees/、dump.rdb、本地日志及自测报告未包含在提交中Made with Cursor