Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { Id int `gorm:"column:id; primary_key ; AUTO_INCREMENT" json:"id"` Name string `gorm:"column:name" json:"name"` Email string `gorm:"column:email" json:"email"` Password string `gorm:"column:password" json:"password"` Created_at *time.Time `gorm:"column:created_at" json:"created_at"` Updated_at *time.Time `gorm:"column:updated_at" json:"updated_at"` }
type Article ¶
type Article struct { Id int `gorm:"column:id" json:"id"` Title string `gorm:"column:title" json:"title"` Content string `gorm:"column:content" json:"content"` Cover string `gorm:"column:cover" json:"cover"` Description string `gorm:"column:description" json:"description"` Created_at *time.Time `gorm:"column:created_at" json:"created_at"` Updated_at *time.Time `gorm:"column:updated_at" json:"updated_at"` }
type ArticleGroup ¶
type ArticleGroup struct { Id int `gorm:"column:id" json:"id"` Name string `gorm:"column:name" json:"name"` Count int `gorm:"column:count" json:"count"` Created_at *time.Time `gorm:"column:created_at" json:"created_at"` Updated_at *time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (ArticleGroup) TableName ¶
func (self ArticleGroup) TableName() string
Click to show internal directories.
Click to hide internal directories.