Versions in this module Expand all Collapse all v0 v0.1.0 Jun 21, 2019 Changes in this version + func AddArticle(data map[string]interface{}) error + func AddTag(name, createdBy string, state int) error + func Close() + func DeleteArticle(id int) error + func DeleteArticles() error + func DeleteTag(id int) error + func DeleteTags() (bool, error) + func EditArticle(id int, data map[string]interface{}) error + func EditTag(id int, data map[string]interface{}) error + func GetArticlesCount(cond map[string]interface{}) (int, error) + func GetTagsCount(cond map[string]interface{}) (int, error) + func HasArticleByID(id int) (bool, error) + func HasTagByID(id int) (bool, error) + func HasTagByName(name string) (bool, error) + func Init() + type Article struct + Content string + Desc string + Tag Tag + TagID int + Title string + func GetArticle(id int) (*Article, error) + func GetArticles(offset, limit int, cond map[string]interface{}) ([]*Article, error) + type Model struct + CreatedBy string + CreatedOn int + DeletedOn int + ID int + ModifiedBy string + ModifiedOn int + State int + type Tag struct + Name string + func GetTag(id int) (*Tag, error) + func GetTags(offset, limit int, cond map[string]interface{}) ([]Tag, error)