chore: 并入 iotlcm-app 历史到 app/(原提交 f40bda9)
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
// package main
|
||||
// @Link https://github.com/xiujiecn/xiu-admin
|
||||
// @Copyright Copyright (c) 2025 LiXiujie
|
||||
// @Author Lxj <li@example.com>
|
||||
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/gogf/gf/contrib/drivers/mysql/v2"
|
||||
_ "github.com/gogf/gf/contrib/drivers/sqlite/v2"
|
||||
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
|
||||
|
||||
_ "git.5iot.com/iotlcm-public/iotlcm-app/internal/packed"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/service"
|
||||
|
||||
_ "git.5iot.com/iotlcm-public/iotlcm-app/internal/logic"
|
||||
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/internal/cmd"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-app/utility/version"
|
||||
)
|
||||
|
||||
var (
|
||||
BuildVersion = "0.0"
|
||||
BuildTime = ""
|
||||
CommitID = ""
|
||||
)
|
||||
|
||||
func main() {
|
||||
version.ShowLogo(BuildVersion, BuildTime, CommitID)
|
||||
ctx := gctx.GetInitCtx()
|
||||
|
||||
cmd.SystemInit(ctx)
|
||||
err := cmd.InitSystemDeferFunc(ctx)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
service.Info().SetInfoBuild(BuildVersion, BuildTime, CommitID)
|
||||
service.Info().SetInfoName("web", "IotLcmAppServer", "IotLcmApp", "IotLcmApp Server")
|
||||
cmd.Main.Run(ctx)
|
||||
}
|
||||
Reference in New Issue
Block a user