message

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardDeck

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

type DestroyPlayerRequest struct {
	Password string `json:"password"`
	Confirm  bool   `json:"confirm"`
}

type DestroyPlayerResponse

type DestroyPlayerResponse struct {
	Success bool `json:"success"`
}

type LocalizationQueryResponse

type LocalizationQueryResponse struct {
	LanguagePack localization.MultipleLanguagePack `json:"language_pack"`
}

type LoginRequest

type LoginRequest struct {
	PlayerUID uint64 `json:"player_uid"`
	Password  string `json:"password"`
}

type LoginResponse

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

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

type RegisterRequest struct {
	NickName string `json:"nick_name"`
	Password string `json:"password"`
}

type RegisterResponse

type RegisterResponse struct {
	PlayerUID      uint64 `json:"player_uid"`
	PlayerNickName string `json:"player_nick_name"`
}

type TranslationRequest

type TranslationRequest struct {
	Words []string `json:"words"`
}

type TranslationResponse

type TranslationResponse struct {
	Translation map[string]string `json:"translation"`
}

type UpdateCardDeckRequest

type UpdateCardDeckRequest struct {
	Owner           uint64   `json:"owner"`
	RequiredPackage []string `json:"required_package"`
	Cards           []uint64 `json:"cards"`
	Characters      []uint64 `json:"characters"`
}

type UpdateCardDeckResponse

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

type UpdateNickNameRequest struct {
	Password    string `json:"password"`
	NewNickName string `json:"new_nick_name"`
}

type UpdatePasswordRequest

type UpdatePasswordRequest struct {
	OriginalPassword string `json:"original_password"`
	NewPassword      string `json:"new_password"`
}

type UploadCardDeckRequest

type UploadCardDeckRequest struct {
	Owner           uint64   `json:"owner"`
	RequiredPackage []string `json:"required_package"`
	Cards           []uint64 `json:"cards"`
	Characters      []uint64 `json:"characters"`
}

type UploadCardDeckResponse

type UploadCardDeckResponse struct {
	ID              uint64   `json:"id"`
	Owner           uint64   `json:"owner"`
	RequiredPackage []string `json:"required_package"`
	Cards           []uint64 `json:"cards"`
	Characters      []uint64 `json:"characters"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL