feat(bugcollect): 事件响应中暴露 buildId 字段

IssueEventResponse 新增 buildId 字段,将构建 ID 包含在 events API 响应中,
方便前端展示具体构建对应的错误。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
这个提交包含在:
XuqmGroup 2026-06-22 18:26:48 +08:00
父节点 7f4fd6ee61
当前提交 f6dc3f7c72
共有 2 个文件被更改,包括 3 次插入2 次删除

查看文件

@ -20,6 +20,7 @@ public record IssueEventResponse(
Object device,
String platform,
String release,
String buildId,
String environment,
@JsonProperty("sdkName") String sdkName,
@JsonProperty("sdkVersion") String sdkVersion,

查看文件

@ -406,7 +406,7 @@ public class LogService {
return result.map(e -> new IssueEventResponse(
e.getId(), null, e.getEventId(), e.getAppKey(), e.getUserId(), e.getSessionId(),
null, null, null, parseJsonField(e.getDevice()),
e.getPlatform(), e.getRelease(), e.getEnvironment(),
e.getPlatform(), e.getRelease(), e.getBuildId(), e.getEnvironment(),
e.getSdkName(), e.getSdkVersion(), e.getCreatedAt()
));
}
@ -562,7 +562,7 @@ public class LogService {
parseJsonField(e.getBreadcrumbs()),
parseJsonField(e.getTags()),
parseJsonField(e.getDevice()),
e.getPlatform(), e.getRelease(), e.getEnvironment(),
e.getPlatform(), e.getRelease(), e.getBuildId(), e.getEnvironment(),
e.getSdkName(), e.getSdkVersion(), e.getCreatedAt()
);
}