package
Version:
v0.0.0-...-80ca719
Opens a new window with list of versions in this module.
Published: Jun 27, 2024
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 CreateGameDTO struct {
UserId1 string `json:"userId1" binding:"required,uuid4"`
UserId2 string `json:"userId2" binding:"required,uuid4"`
}
type CreateUserDTO struct {
NickName string `json:"nickName" binding:"required,max=100"`
Email string `json:"email" binding:"required,email"`
}
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 struct {
Message string
}
DOTO: improve organization, this is in the domain?
type ResultDTO struct {
Id *string `json:"id"`
Result vo.Result `json:"result"`
}
type ResultTurnDTO struct {
Resolution vo.Resolution `json:"resolution"`
UserId string `json:"user_id"`
}
type TurnDTO struct {
UserId string `json:"userId" binding:"required"`
DropItIn int `json:"dropItIn"`
}
type UserDTO struct {
Id string `json:"id,omitempty"`
NickName string `json:"nickName"`
Email string `json:"email"`
CreatedAt string `json:"createdAt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.