model

package
v0.0.0-...-9a03403 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActRequest

type ActRequest struct {
	SquadID string `json:"squadID"`
	Rat     bool   `json:"rat"`
}

type AssassinInfo

type AssassinInfo struct {
	TheAssassinatedIDs []string `json:"theAssassinatedIDs"`
	TempPickedIDs      []string `json:"tempPickedIDs"`
}

type AssassinateRequest

type AssassinateRequest struct {
	GameID             string   `json:"gameID"`
	TheAssassinatedIDs []string `json:"theAssassinatedIDs"`
}

type CreateGameRequest

type CreateGameRequest struct {
	RoomID         string           `json:"roomID"`
	AssassinChance *int             `json:"assassinChance"`
	CardIDs        []string         `json:"cardIDs"`
	MissionOptions []*MissionOption `json:"missionOptions"`
	RandomLeader   *bool            `json:"randomLeader"`
}

type GameRequest

type GameRequest struct {
	ID string `json:"id"`
}

type GameUserRequest

type GameUserRequest struct {
	UserID string `json:"userID"`
	GameID string `json:"gameID"`
}

type JoinRoomInput

type JoinRoomInput struct {
	ShortCode string `json:"shortCode"`
	UserID    string `json:"userID"`
}

type MissionOption

type MissionOption struct {
	Sequence  int  `json:"sequence"`
	Capacity  int  `json:"capacity"`
	Protected bool `json:"protected"`
}

type OtherView

type OtherView struct {
	UserID string `json:"userID"`
	Type   string `json:"type"`
}

看别人是什么类型

type RoomRequest

type RoomRequest struct {
	ID string `json:"id"`
}

type User

type User struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Phone string `json:"phone"`
}

func (User) IsEntity

func (User) IsEntity()

type UserRequest

type UserRequest struct {
	ID string `json:"id"`
}

type VoteRequest

type VoteRequest struct {
	VoteID string `json:"voteID"`
	Pass   bool   `json:"pass"`
}

Jump to

Keyboard shortcuts

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