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 `json:"id"` Content string `sql:"not null" json:"content"` UserId int `sql:"index" json:"user_id"` Ctime time.Time `json:"ctime"` }
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.