leaderboards: ListEntries/SubmitEntry/UpdateEntry/DeleteEntry against /entries
CI / build (push) Successful in 50s
CI / build (push) Successful in 50s
This commit is contained in:
@@ -2,6 +2,6 @@
|
||||
|
||||
package models
|
||||
|
||||
type GetLeaderboardResultsResponse struct {
|
||||
type ListLeaderboardEntriesResponse struct {
|
||||
Entries []RankEntry `json:"entries,omitempty"`
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
type SubmitLeaderboardEntryRequest struct {
|
||||
PlayerID string `json:"playerId,omitempty"`
|
||||
Score float64 `json:"score,omitempty"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
type UpdateLeaderboardEntryRequest struct {
|
||||
Score float64 `json:"score,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user