Versions in this module Expand all Collapse all v0 v0.1.0 Feb 6, 2022 Changes in this version + var DB *gorm.DB + func Init() (err error) + type Comment struct + ArticleID string + Avatar string + Content string + Date string + Email string + ID int + Name string + ParentID int + func (comment Comment) Create() error + type Comments []Comment + func (comments Comments) Get(articleID string, query api.GetCommentsQuery) (Comments, error)