2026-06-16 17:39:13 +08:00
|
|
|
package com.xuqm.bugcollect.dto;
|
2026-06-16 12:10:58 +08:00
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public record EventBatchRequest(
|
|
|
|
|
@JsonProperty("events") @NotEmpty List<EventItem> events
|
|
|
|
|
) {
|
|
|
|
|
public record EventItem(
|
|
|
|
|
@NotBlank @JsonProperty("appKey") String appKey,
|
|
|
|
|
@NotBlank String name,
|
|
|
|
|
@JsonProperty("userId") String userId,
|
|
|
|
|
@JsonProperty("sessionId") String sessionId,
|
|
|
|
|
String properties,
|
|
|
|
|
String platform,
|
|
|
|
|
@JsonProperty("appVersion") String appVersion,
|
|
|
|
|
@JsonProperty("timestamp") long timestamp
|
|
|
|
|
) {}
|
|
|
|
|
}
|