Files
quyun/backend_v1/main.go
Rogee 24bd161df9
Some checks failed
build quyun / Build (push) Has been cancelled
feat: add backend_v1 migration
2025-12-19 14:46:58 +08:00

41 lines
950 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 This is a sample server celler server.
// @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 /api/v1
// @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)
}
}