XuqmGroup-Server/xuqm-log-service/src/main/java/com/xuqm/log/entity/LogSourcemapEntity.java
XuqmGroup 936664c9cd feat: xuqm-log-service 新建 — 日志/错误追踪服务
Agent 5 — xuqm-log-service:
- Spring Boot 3.x + MySQL + Redis
- 5 张表:log_issues、log_issue_events、log_events、log_sourcemaps、log_webhooks
- SDK 入库接口:POST /log/v1/issues/batch(指纹去重)、POST /log/v1/events/batch
- 查询接口:issues 列表/详情、高频/高危排行、事件流水、漏斗分析、概览统计
- SourceMap 上传:POST /log/v1/sourcemaps/upload
- Webhook CRUD + Redis SETNX 冷却逻辑
- Flyway 数据库迁移
2026-06-16 12:10:58 +08:00

53 行
1.6 KiB
Java

package com.xuqm.log.entity;
import jakarta.persistence.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "log_sourcemaps")
public class LogSourcemapEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false, length = 64)
private String appKey;
@Column(nullable = false, length = 16)
private String platform;
@Column(nullable = false, length = 32)
private String appVersion;
@Column(nullable = false, length = 128)
private String bundleName = "index";
@Column(nullable = false, length = 512)
private String storageKey;
@Column(nullable = false)
private LocalDateTime uploadedAt;
public Long getId() { return id; }
public void setId(Long id) { this.id = id; }
public String getAppKey() { return appKey; }
public void setAppKey(String appKey) { this.appKey = appKey; }
public String getPlatform() { return platform; }
public void setPlatform(String platform) { this.platform = platform; }
public String getAppVersion() { return appVersion; }
public void setAppVersion(String appVersion) { this.appVersion = appVersion; }
public String getBundleName() { return bundleName; }
public void setBundleName(String bundleName) { this.bundleName = bundleName; }
public String getStorageKey() { return storageKey; }
public void setStorageKey(String storageKey) { this.storageKey = storageKey; }
public LocalDateTime getUploadedAt() { return uploadedAt; }
public void setUploadedAt(LocalDateTime uploadedAt) { this.uploadedAt = uploadedAt; }
}