add player data operations: update, ban/unban, delete, inventory adjust, storage
Players.Update/Ban/Unban/Delete + List search; new InventoryService.Adjust and StorageService.Get/Upsert/Delete; IdempotencyKey on wallet adjust; models regenerated via apigen
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
type AdjustPlayerInventoryItemRequest struct {
|
||||
Amount int64 `json:"amount,omitempty"`
|
||||
IdempotencyKey string `json:"idempotencyKey,omitempty"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
Slug string `json:"slug,omitempty"`
|
||||
}
|
||||
@@ -3,8 +3,9 @@
|
||||
package models
|
||||
|
||||
type AdjustPlayerWalletRequest struct {
|
||||
Amount int64 `json:"amount,omitempty"`
|
||||
CurrencyCode string `json:"currencyCode,omitempty"`
|
||||
PlayerID string `json:"playerId,omitempty"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
Amount int64 `json:"amount,omitempty"`
|
||||
CurrencyCode string `json:"currencyCode,omitempty"`
|
||||
IdempotencyKey string `json:"idempotencyKey,omitempty"`
|
||||
PlayerID string `json:"playerId,omitempty"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
}
|
||||
|
||||
+15
-11
@@ -5,15 +5,19 @@ package models
|
||||
import "encoding/json"
|
||||
|
||||
type AdminPlayer struct {
|
||||
CreatedAt string `json:"createdAt,omitempty"`
|
||||
Data json.RawMessage `json:"data,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Language string `json:"language,omitempty"`
|
||||
LastSeen string `json:"lastSeen,omitempty"`
|
||||
Nickname string `json:"nickname,omitempty"`
|
||||
PayerFlag bool `json:"payerFlag,omitempty"`
|
||||
ProjectID string `json:"projectId,omitempty"`
|
||||
Region string `json:"region,omitempty"`
|
||||
StableID string `json:"stableId,omitempty"`
|
||||
UpdatedAt string `json:"updatedAt,omitempty"`
|
||||
BanReason string `json:"banReason,omitempty"`
|
||||
BannedAt string `json:"bannedAt,omitempty"`
|
||||
BannedUntil string `json:"bannedUntil,omitempty"`
|
||||
CreatedAt string `json:"createdAt,omitempty"`
|
||||
Data json.RawMessage `json:"data,omitempty"`
|
||||
DeletedAt string `json:"deletedAt,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
Language string `json:"language,omitempty"`
|
||||
LastSeen string `json:"lastSeen,omitempty"`
|
||||
Nickname string `json:"nickname,omitempty"`
|
||||
PayerFlag bool `json:"payerFlag,omitempty"`
|
||||
ProjectID string `json:"projectId,omitempty"`
|
||||
Region string `json:"region,omitempty"`
|
||||
StableID string `json:"stableId,omitempty"`
|
||||
UpdatedAt string `json:"updatedAt,omitempty"`
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
type BanPlayerRequest struct {
|
||||
BannedUntil string `json:"bannedUntil,omitempty"`
|
||||
IdempotencyKey string `json:"idempotencyKey,omitempty"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
type DeletePlayerRequest struct {
|
||||
IdempotencyKey string `json:"idempotencyKey,omitempty"`
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
import "encoding/json"
|
||||
|
||||
type UpdatePlayerRequest struct {
|
||||
Data json.RawMessage `json:"data,omitempty"`
|
||||
Nickname string `json:"nickname,omitempty"`
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
type UpsertPlayerStorageRequest struct {
|
||||
Data string `json:"data,omitempty"`
|
||||
ExpiresAt string `json:"expiresAt,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user