Files
quyun-v2/backend/main.go
2025-12-18 10:27:40 +08:00

41 lines
946 B
Go

package main
import (
"quyun/v2/app/commands/http"
"quyun/v2/app/commands/migrate"
"quyun/v2/pkg/utils"
log "github.com/sirupsen/logrus"
"go.ipao.vip/atom"
)
// @title ApiDoc
// @version 1.0
// @description Multi-tenant media platform backend API.
// @termsOfService http://swagger.io/terms/
// @contact.name UserName
// @contact.url http://www.swagger.io/support
// @contact.email support@swagger.io
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost:8080
// @BasePath /
// @securityDefinitions.basic BasicAuth
// @externalDocs.description OpenAPI
// @externalDocs.url https://swagger.io/resources/open-api/
func main() {
// 打印构建信息
utils.PrintBuildInfo("v2")
opts := []atom.Option{
atom.Name("v2"),
http.Command(),
migrate.Command(),
}
if err := atom.Serve(opts...); err != nil {
log.Fatal(err)
}
}