Documentation ¶
Index ¶
- type APIFormat
- type AccountAPI
- type CommentRequest
- type CommentResponce
- type EventListAPI
- type EventRequest
- type EventResponse
- type JoinRequest
- type JoinResponce
- type Resource
- func (resource *Resource) CancelEvent() echo.HandlerFunc
- func (resource *Resource) CreateComment() echo.HandlerFunc
- func (resource *Resource) CreateEvent() echo.HandlerFunc
- func (resource *Resource) DeleteComment() echo.HandlerFunc
- func (resource *Resource) DeleteEvent() echo.HandlerFunc
- func (resource *Resource) GetAccount() echo.HandlerFunc
- func (resource *Resource) GetEvent() echo.HandlerFunc
- func (resource *Resource) GetEvents() echo.HandlerFunc
- func (resource *Resource) GetLogin() echo.HandlerFunc
- func (resource *Resource) GetOauth() echo.HandlerFunc
- func (resource *Resource) JoinEvent() echo.HandlerFunc
- func (resource *Resource) SetDBConnection() *gorm.DB
- func (resource *Resource) UpdateEvent() echo.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountAPI ¶
type CommentRequest ¶
type CommentResponce ¶
type EventListAPI ¶
type EventListAPI struct { PrevId int `json:"prev_id"` NextId int `json:"next_id"` Events []EventResponse `json:"events"` }
type EventRequest ¶
type EventResponse ¶
type EventResponse struct { ID int `json:"id"` Name string `json:"name"` Image string `json:"image"` Capacity int `json:"capacity"` Admin model.Member `json:"admin"` Members []model.Member `json:"members"` // One-To-Many relationship (has many) StartDate string `json:"start_date"` Place string `json:"place"` Description string `json:"description"` Comments []model.Comment `json:"comments"` // One-To-Many relationship (has many) }
type JoinRequest ¶
type JoinResponce ¶
type Resource ¶
func (*Resource) CancelEvent ¶
func (resource *Resource) CancelEvent() echo.HandlerFunc
func (*Resource) CreateComment ¶
func (resource *Resource) CreateComment() echo.HandlerFunc
func (*Resource) CreateEvent ¶
func (resource *Resource) CreateEvent() echo.HandlerFunc
func (*Resource) DeleteComment ¶
func (resource *Resource) DeleteComment() echo.HandlerFunc
func (*Resource) DeleteEvent ¶
func (resource *Resource) DeleteEvent() echo.HandlerFunc
func (*Resource) GetAccount ¶
func (resource *Resource) GetAccount() echo.HandlerFunc
func (*Resource) GetEvent ¶
func (resource *Resource) GetEvent() echo.HandlerFunc
func (*Resource) GetEvents ¶
func (resource *Resource) GetEvents() echo.HandlerFunc
func (*Resource) GetLogin ¶
func (resource *Resource) GetLogin() echo.HandlerFunc
func (*Resource) GetOauth ¶
func (resource *Resource) GetOauth() echo.HandlerFunc
func (*Resource) JoinEvent ¶
func (resource *Resource) JoinEvent() echo.HandlerFunc
func (*Resource) SetDBConnection ¶
func (*Resource) UpdateEvent ¶
func (resource *Resource) UpdateEvent() echo.HandlerFunc
Click to show internal directories.
Click to hide internal directories.