Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Db *gorm.DB
Functions ¶
This section is empty.
Types ¶
type Article ¶
type Article struct { Id int Content string `sql:"not null"` UserId int `sql:"index"` Ctime time.Time }
func GetAllArticles ¶
type Comment ¶
type Comment struct { Id int Content string `sql:"not null"` UserId int `sql:"index"` ArtId int `sql:"index"` Ctime time.Time }
func GetCommentsByArtId ¶
Click to show internal directories.
Click to hide internal directories.