This commit is contained in:
2025-10-04 18:04:33 +08:00
parent 14936b7384
commit e0870ba147
7 changed files with 31 additions and 18 deletions

View File

@@ -95,6 +95,7 @@ type (
RecentJoinPlayerReq {
TimeRangeStart int64 `json:"timeRangeStart"` // Unix timestamp in milliseconds
TimeRangeEnd int64 `json:"timeRangeEnd"` // Unix timestamp in milliseconds
Limit int `json:"limit,range=[1:10],example=10,default=10"` // Maximum number of players to return
}
RecentJoinPlayerResp {
Players []RecentJoinPlayerRespPlayer `json:"players"` // List of player SteamID64s who joined in the time range
@@ -111,6 +112,7 @@ type (
RecentChatMessageReq {
TimeRangeStart int64 `json:"timeRangeStart"` // Unix timestamp in milliseconds
TimeRangeEnd int64 `json:"timeRangeEnd"` // Unix timestamp in milliseconds
Limit int `json:"limit,range=[1:10],example=10,default=10"` // Maximum number of messages to return
}
RecentChatMessageResp {
Messages []RecentChatMessageRespMessage `json:"messages"` // List of recent chat messages
@@ -132,6 +134,7 @@ type (
TimeRangeStart int64 `json:"timeRangeStart"` // Unix timestamp in milliseconds
TimeRangeEnd int64 `json:"timeRangeEnd"` // Unix timestamp in milliseconds
LeastPlayTime int64 `json:"leastPlayTime"` // Least playtime in seconds to filter by
Limit int `json:"limit,range=[1:10],example=10,default=10"` // Maximum number of players to return
}
RecentPlayResp {
Players []RecentPlayRespPlayer `json:"players"` // List of players who played in the time range
@@ -148,6 +151,7 @@ type (
TopPlayTimeReq {
TimeRangeStart int64 `json:"timeRangeStart"` // Unix timestamp in milliseconds
TimeRangeEnd int64 `json:"timeRangeEnd"` // Unix timestamp in milliseconds
Limit int `json:"limit,range=[1:10],example=10,default=10"` // Maximum number of players to return
}
TopPlayTimeResp {
Players []TopPlayTimeRespPlayer `json:"players"` // List of top players by playtime
@@ -163,6 +167,7 @@ type (
TopKillerReq {
TimeRangeStart int64 `json:"timeRangeStart"` // Unix timestamp in milliseconds
TimeRangeEnd int64 `json:"timeRangeEnd"` // Unix timestamp in milliseconds
Limit int `json:"limit,range=[1:10],example=10,default=10"` // Maximum number of players to return
}
TopKillerResp {
Players []TopKillerRespPlayer `json:"players"` // List of top players by kill count