fix search by id (#1047)

* fix search by id

* make SearchByID Public
This commit is contained in:
UUBulb
2025-03-27 19:17:00 +08:00
committed by GitHub
parent 314eadafc6
commit ec44dbbd9b
5 changed files with 119 additions and 36 deletions

View File

@@ -51,7 +51,7 @@ func InitTimezoneAndCache() error {
}
// LoadSingleton 加载子服务并执行
func LoadSingleton() {
func LoadSingleton(bus chan<- *model.Service) (err error) {
initUser() // 加载用户ID绑定表
initI18n() // 加载本地化服务
NotificationShared = NewNotificationClass() // 加载通知服务
@@ -59,6 +59,8 @@ func LoadSingleton() {
CronShared = NewCronClass() // 加载定时任务
NATShared = NewNATClass()
DDNSShared = NewDDNSClass()
ServiceSentinelShared, err = NewServiceSentinel(bus, ServerShared, NotificationShared, CronShared)
return
}
// InitFrontendTemplates 从内置文件中加载FrontendTemplates