feat: add app migrate command

This commit is contained in:
rogeecn
2025-02-28 12:00:13 +08:00
parent ad7f1b2c47
commit 94dd15b4e9
2 changed files with 62 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ package main
import (
"{{.ModuleName}}/app/service/http"
"{{.ModuleName}}/app/service/migrate"
log "github.com/sirupsen/logrus"
"go.ipao.vip/atom"
@@ -25,6 +26,7 @@ func main() {
opts := []atom.Option{
atom.Name("{{ .ProjectName }}"),
http.Command(),
migrate.Command(),
}
if err := atom.Serve(opts...); err != nil {