31 Star 282 Fork 74

AiXinGe / aixinge

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 682 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"aixinge/core"
"aixinge/global"
"aixinge/initialize"
"aixinge/utils"
)
//go:generate go env -w GO111MODULE=on
//go:generate go env -w GOPROXY=https://goproxy.cn,direct
//go:generate go mod tidy
//go:generate go mod download
// @title AiXinGe API
// @version 1.0.0
// @description artificial intelligence message push service
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name x-token
// @BasePath /
func main() {
global.VP = core.Viper() // 初始化Viper
global.LOG = core.Zap() // 初始化zap日志库
global.DB = initialize.Gorm() // gorm连接数据库
utils.Open() // 打开首页
core.RunServer()
}
Go
1
https://gitee.com/aixinge/aixinge.git
git@gitee.com:aixinge/aixinge.git
aixinge
aixinge
aixinge
master

搜索帮助