Documentation ¶
Index ¶
Constants ¶
View Source
const ( M_BAD_REQUEST = "BAD_REQUEST" M_INVALID_CREDENTIALS = "M_INVALID_CREDENTIALS" M_CREATED = "CREATED" M_OK = "OK" M_INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR" M_EMAIL_ALREADY_USED = "EMAIL_ALREADY_USED" M_USERNAME_ALREADY_USED = "USERNAME_ALREADY_USED" M_TICKET_SUCCESSFULLY_DELETED = "Ticket has been successfully deleted" M_CATEGORY_SUCCESSFULLY_DELETED = "Category has been successfully deleted" M_STOCK_IS_NOT_ENOUGH = "STOCK_IS_NOT_ENOUGH" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCategory ¶
type CreateTicket ¶
type GetCategories ¶
type GetTicketById ¶
type GetTicketById struct { Id uint `json:"id"` Title string `json:"title"` Description string `json:"description"` Price float32 `json:"price"` Seat int `json:"seat"` Duration time.Duration `json:"duration"` CategoryId uint `json:"category_id"` UserId uint `json:"user_id"` UserTickets UserTickets `json:"user"` }
type GetTickets ¶
type GetTickets struct { Id uint `json:"id"` Title string `json:"title"` Description string `json:"description"` Price float32 `json:"price"` Seat int `json:"seat"` Duration time.Duration `json:"duration"` CategoryId uint `json:"category_id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type Response ¶
type Response struct { Status int `json:"status"` Message string `json:"message"` Payload interface{} `json:"payload,omitempty"` Error interface{} `json:"error,omitempty"` }
func SuccessResponse ¶
type TicketCategories ¶
type UpdateCategory ¶
type UpdateTicket ¶
Click to show internal directories.
Click to hide internal directories.