Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Item ¶
type Question ¶
type Question struct { ID int64 `json:"id" gorm:"primary_key"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt *time.Time `json:"-" sql:"index"` Title string `json:"title" gorm:"type:varchar(255)"` CompareQuestion string `json:"compareQuestion" gorm:"type:varchar(255)"` Items []Item `json:"items"` Votes []Vote `json:"votes"` }
type RestFuncs ¶
type RestFuncs struct{}
func (*RestFuncs) GetQuestion ¶
func (rf *RestFuncs) GetQuestion(w rest.ResponseWriter, r *rest.Request)
func (*RestFuncs) PostQuestion ¶
func (rf *RestFuncs) PostQuestion(w rest.ResponseWriter, r *rest.Request)
type Vote ¶
Click to show internal directories.
Click to hide internal directories.