22 行
720 B
Java
22 行
720 B
Java
|
|
package com.xuqm.log.dto;
|
||
|
|
|
||
|
|
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
|
||
|
|
) {}
|
||
|
|
}
|