feat(notification): 添加通知方式

This commit is contained in:
naiba
2020-12-19 22:14:36 +08:00
parent b118958f35
commit d19de0edc2
16 changed files with 391 additions and 58 deletions

View File

@@ -34,7 +34,7 @@ func init() {
}
func initDB() {
dao.DB.AutoMigrate(model.Server{}, model.User{})
dao.DB.AutoMigrate(model.Server{}, model.User{}, model.Notification{})
// load cache
var servers []model.Server
dao.DB.Find(&servers)