refactor: 优化代码组织结构

This commit is contained in:
Akkia committed 2022-04-12 13:16:33 +08:00
1 parent b648550595
commit 09d3607cee
7 files changed
+281 -239

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ const firstNotificationDelay = time.Minute * 15
var notifications []model.Notification
var notificationsLock sync.RWMutex
// LoadNotifications 加载通知方式到 singleton.notifications 变量
// LoadNotifications 从 DB 加载通知方式到 singleton.notifications 变量
func LoadNotifications() {
notificationsLock.Lock()
if err := DB.Find(&notifications).Error; err != nil {