Versions in this module Expand all Collapse all v0 v0.0.2 Sep 22, 2022 Changes in this version + const MErrDelete + const MErrExisted + const MErrNotFind + const MErrUpdate + func AddAnnouncement(data *Announcement) error + func DeleteAnnouncement(data *Announcement) error + func InitDb(path string) + func UpdateAnnouncement(data *Announcement) error + type Announcement struct + Content string + CreateTime int64 + ExpiredTime int64 + Id int + Title string + UpdateTime int64 + Url string + func GetAnnouncementAll() (info []Announcement, err error) + func GetAnnouncementById(id int) (info Announcement, errs error)