entity

package
v0.0.0-...-80ca719 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 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 BoardDTO

type BoardDTO struct {
	Squares [vo.BoardColumns][vo.BoardRows]string `json:"squares"`
}

func NewBoard

func NewBoard() *BoardDTO

type CreateGameDTO

type CreateGameDTO struct {
	UserId1 string `json:"userId1" binding:"required,uuid4"`
	UserId2 string `json:"userId2" binding:"required,uuid4"`
}

type CreateUserDTO

type CreateUserDTO struct {
	NickName string `json:"nickName" binding:"required,max=100"`
	Email    string `json:"email" binding:"required,email"`
}

type GameDTO

type GameDTO struct {
	Id          string     `json:"id"`
	UserIds     []string   `json:"user_ids"`
	Status      vo.Status  `json:"status"`
	Result      *ResultDTO `json:"result"`
	CompletedAt *int64     `json:"completedAt,omitempty"`

	Users []*UserDTO
}

type Notification

type Notification struct {
	Message string
}

DOTO: improve organization, this is in the domain?

type ResultDTO

type ResultDTO struct {
	Id     *string   `json:"id"`
	Result vo.Result `json:"result"`
}

type ResultTurnDTO

type ResultTurnDTO struct {
	Resolution vo.Resolution `json:"resolution"`
	UserId     string        `json:"user_id"`
}

type TurnDTO

type TurnDTO struct {
	UserId   string `json:"userId" binding:"required"`
	DropItIn int    `json:"dropItIn"`
}

type UserDTO

type UserDTO struct {
	Id        string `json:"id,omitempty"`
	NickName  string `json:"nickName"`
	Email     string `json:"email"`
	CreatedAt string `json:"createdAt"`
}

Jump to

Keyboard shortcuts

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