model

package
v0.0.0-...-e6f2c53 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRequired        = errors.New("required value")
	ErrNotFound        = errors.New("not found")
	ErrNil             = errors.New("nil data")
	ErrNegative        = errors.New("negative value")
	ErrInvalidUserID   = errors.New("invalid user ID")
	ErrInvalidShowIDs  = errors.New("invalid show IDs")
	ErrNoUserInContext = errors.New("no user in context")
)

Functions

This section is empty.

Types

type EventListResponse

type EventListResponse struct {
	Response []EventResponse `json:"response"`
}

func (*EventListResponse) EventListResponseValidate

func (e *EventListResponse) EventListResponseValidate() error

type EventResponse

type EventResponse struct {
	ID     int64  `json:"id"`
	ShowID int64  `json:"showId"`
	Date   string `json:"date"`
}

type PlaceListResponse

type PlaceListResponse struct {
	Response []PlaceResponse `json:"response"`
}

func (*PlaceListResponse) PlaceListResponseValidate

func (p *PlaceListResponse) PlaceListResponseValidate() error

type PlaceResponse

type PlaceResponse struct {
	ID          int64   `json:"id"`
	X           float64 `json:"x"`
	Y           float64 `json:"y"`
	Width       float64 `json:"width"`
	Height      float64 `json:"height"`
	IsAvailable bool    `json:"is_available"` // nolint: tagliatelle
}

type ShowListResponse

type ShowListResponse struct {
	Response []ShowResponse `json:"response"`
}

func (*ShowListResponse) ShowListResponseValidate

func (s *ShowListResponse) ShowListResponseValidate() error

type ShowResponse

type ShowResponse struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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