管理端全部功能跑通
This commit is contained in:
1
EdgeAdmin/test_db.go
Normal file
1
EdgeAdmin/test_db.go
Normal file
@@ -0,0 +1 @@
|
||||
package main; import ("fmt"; "github.com/TeaOSLab/EdgeAPI/internal/db/models"; "github.com/iwind/TeaGo/dbs"; "github.com/iwind/TeaGo/Tea"); func main() { Tea.Env = "prod"; dbs.OnReady(func(){ apps, _ := models.SharedHTTPDNSAppDAO.FindAllEnabledApps(nil); for _, app := range apps { fmt.Printf("App: %s, Primary: %d\n", app.AppId, app.PrimaryClusterId) } }); }
|
||||
Reference in New Issue
Block a user