chore: seed migration objects batch 15

This commit is contained in:
dev
2026-10-18 13:25:46 +08:00
parent 970d8c5918
commit 963b1f8154
116 changed files with 17867 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
// Package simple
// @Link https://github.com/bufanyun/hotgo
// @Copyright Copyright (c) 2024 HotGo CLI
// @Author Ms <133814250@qq.com>
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
package simple
import (
"context"
"github.com/gogf/gf/v2/frame/g"
)
// AppName 应用名称
func AppName(ctx context.Context) string {
return g.Cfg().MustGet(ctx, "system.appName", "hotgo").String()
}
// Debug debug
func Debug(ctx context.Context) bool {
return g.Cfg().MustGet(ctx, "system.debug", true).Bool()
}
// IsDemo 是否为演示系统
func IsDemo(ctx context.Context) bool {
return g.Cfg().MustGet(ctx, "system.isDemo", true).Bool()
}
// IsCluster 是否为集群部署
func IsCluster(ctx context.Context) bool {
return g.Cfg().MustGet(ctx, "system.isCluster", true).Bool()
}