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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
🧩 Analysis chain
将 failed_member_ids 改为 repeated 字段,避免非结构化返回
该字段语义是“多个失败成员 ID”。用
string会迫使客户端自行解析(逗号分隔/JSON 等),且与请求体里Body.member_id的repeated string不对称。建议直接返回列表,便于多语言 SDK 生成强类型集合。应用如下变更:
请在本仓库跑一遍代码生成并检索调用点,确认下游未假定为字符串:
🏁 Script executed:
Length of output: 148
重新运行更全面的搜索并打印相关 proto 片段:
🏁 Script executed:
Length of output: 9098
将 failed_member_ids 改为 repeated string 并同步更新生成产物
理由:字段语义为“多个失败成员 ID”,应与请求体 Body.member_id (repeated string) 对齐,避免客户端自行解析。
仓库检索结果:该字段目前只出现在 consultingapis/dingtalk/v1/dingtalk.proto(当前为 string)及生成产物 consultingapis/dingtalk/v1/dingtalk.pb.go、consultingapis/dingtalk/v1/dingtalk_grpc.pb.go、docs/swagger/consultingapis/dingtalk/v1/dingtalk.swagger.json,未发现其他业务代码直接依赖字符串格式。风险在于必须同步重新生成产物并提交。
操作(必做):
📝 Committable suggestion