加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 837 Bytes
一键复制 编辑 原始数据 按行查看 历史
Lyric 提交于 2023-09-01 11:51 . fix: Fix table name prefix
package main
import (
"os"
"github.com/LyricTian/gin-admin/v10/cmd"
"github.com/urfave/cli/v2"
)
// Usage: go build -ldflags "-X main.VERSION=x.x.x"
var VERSION = "v10.0.0"
// @title ginadmin
// @version v10.0.0
// @description A lightweight, flexible, elegant and full-featured RBAC scaffolding based on GIN + GORM 2.0 + Casbin 2.0 + Wire DI.
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
// @schemes http https
// @basePath /
func main() {
app := cli.NewApp()
app.Name = "ginadmin"
app.Version = VERSION
app.Usage = "A lightweight, flexible, elegant and full-featured RBAC scaffolding based on GIN + GORM 2.0 + Casbin 2.0 + Wire DI."
app.Commands = []*cli.Command{
cmd.StartCmd(),
cmd.StopCmd(),
cmd.VersionCmd(VERSION),
}
err := app.Run(os.Args)
if err != nil {
panic(err)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化