package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Feb 24, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CardDeck struct {
ID uint64 `json:"id"`
OwnerUID uint64 `json:"owner_uid"`
RequiredPackages []string `json:"required_packages"`
Cards []uint64 `json:"cards"`
Characters []uint64 `json:"characters"`
}
type DestroyPlayerRequest struct {
Password string `json:"password"`
Confirm bool `json:"confirm"`
}
type DestroyPlayerResponse struct {
Success bool `json:"success"`
}
type LoginRequest struct {
PlayerUID uint64 `json:"player_uid"`
Password string `json:"password"`
}
type LoginResponse struct {
PlayerUID uint64 `json:"player_uid"`
Success bool `json:"success"`
PlayerNickName string `json:"player_nick_name"`
PlayerCardDecks []CardDeck `json:"player_card_decks"`
}
type QueryCardDeckResponse struct {
ID uint64 `json:"id"`
Owner uint64 `json:"owner"`
RequiredPackage []string `json:"required_package"`
Cards []uint64 `json:"cards"`
Characters []uint64 `json:"characters"`
}
type RegisterRequest struct {
NickName string `json:"nick_name"`
Password string `json:"password"`
}
type RegisterResponse struct {
PlayerUID uint64 `json:"player_uid"`
PlayerNickName string `json:"player_nick_name"`
}
type TranslationRequest struct {
Words []string `json:"words"`
}
type TranslationResponse struct {
Translation map[string]string `json:"translation"`
}
type UpdateCardDeckRequest struct {
Owner uint64 `json:"owner"`
RequiredPackage []string `json:"required_package"`
Cards []uint64 `json:"cards"`
Characters []uint64 `json:"characters"`
}
type UpdateCardDeckResponse struct {
ID uint64 `json:"id"`
Owner uint64 `json:"owner"`
RequiredPackage []string `json:"required_package"`
Cards []uint64 `json:"cards"`
Characters []uint64 `json:"characters"`
}
type UpdateNickNameRequest struct {
Password string `json:"password"`
NewNickName string `json:"new_nick_name"`
}
type UpdatePasswordRequest struct {
OriginalPassword string `json:"original_password"`
NewPassword string `json:"new_password"`
}
type UploadCardDeckRequest struct {
Owner uint64 `json:"owner"`
RequiredPackage []string `json:"required_package"`
Cards []uint64 `json:"cards"`
Characters []uint64 `json:"characters"`
}
type UploadCardDeckResponse struct {
ID uint64 `json:"id"`
Owner uint64 `json:"owner"`
RequiredPackage []string `json:"required_package"`
Cards []uint64 `json:"cards"`
Characters []uint64 `json:"characters"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.