Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct { gorm.Model Answerer string `gorm:"column:answerer" form:"answerer" json:"answerer" binding:"required"` QuestionID uint `gorm:"column:questionID" form:"questionID" json:"questionID" binding:"required"` Content string `gorm:"column:content" form:"content" json:"content" binding:"required"` }
type Delete ¶
type Delete struct {
ID uint `gorm:"column:id" form:"id" json:"id" binding:"required"`
}
type EmailLogin ¶
type ModifyAnswer ¶
type ModifyQuestion ¶
type PhoneLogin ¶
type Question ¶
type Question struct { gorm.Model Questioner string `gorm:"column:questioner" form:"questioner" json:"questioner" binding:"required"` Content string `gorm:"column:content" form:"content" json:"content" binding:"required"` Title string `gorm:"column:title" form:"title" json:"title" binding:"required"` Answers []Answer `gorm:"column:answers" form:"answers" json:"answers"` }
type User ¶
type User struct { gorm.Model UserName string `gorm:"column:username" form:"username" json:"username" binding:"required"` Email string `gorm:"column:email" form:"email" json:"email" binding:"required"` Password string `gorm:"column:password" form:"password" json:"password" binding:"required"` PhoneNumber string `gorm:"column:phonenumber" form:"phonenumber" json:"phonenumber" binding:"required"` }
type UserNameLogin ¶
type UserRegister ¶
type UserRegister struct { UserName string `gorm:"column:username" form:"username" json:"username" binding:"required"` Password string `gorm:"column:password" form:"password" json:"password" binding:"required"` Email string `gorm:"column:email" form:"email" json:"email" binding:"required"` PhoneNumber string `gorm:"column:phonenumber" form:"phonenumber" json:"phonenumber" binding:"required"` }
Click to show internal directories.
Click to hide internal directories.