添加代理节点功能,包括节点注册、心跳检测和配置获取,完善相关API路由和服务逻辑

This commit is contained in:
ryan
2026-03-09 23:05:35 +08:00
parent 8f55d83b34
commit 2ac083a225
13 changed files with 677 additions and 0 deletions
+8
View File
@@ -72,6 +72,14 @@ func InitDB() (err error) {
if err != nil {
return err
}
err = db.AutoMigrate(&Node{})
if err != nil {
return err
}
err = db.AutoMigrate(&ApplyLog{})
if err != nil {
return err
}
err = createRootAccountIfNeed()
return err
} else {