feat: Update project structure and configuration files

This commit is contained in:
rogeecn
2025-03-24 09:29:38 +08:00
parent ea15a51556
commit 8de43c2861
159 changed files with 498 additions and 0 deletions

35
backend/main.go Normal file
View File

@@ -0,0 +1,35 @@
package main
import (
"quyun/app/service/http"
"quyun/app/service/migrate"
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() {
opts := []atom.Option{
atom.Name("quyun"),
http.Command(),
migrate.Command(),
}
if err := atom.Serve(opts...); err != nil {
log.Fatal(err)
}
}