Compare commits
2 Commits
13e721532d
...
1a7bb737af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a7bb737af | ||
|
|
14ccc7e188 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -26,3 +26,4 @@ tests/*
|
||||
atomctl
|
||||
AGENTS.md
|
||||
atom
|
||||
atomctl-tests
|
||||
|
||||
@@ -38,9 +38,9 @@ tools:
|
||||
.PHONY: init
|
||||
init: tools
|
||||
@atomctl swag init
|
||||
@atomctl gen route
|
||||
@atomctl gen enum
|
||||
@atomctl gen provider
|
||||
@atomctl gen route
|
||||
@atomctl gen service
|
||||
@buf generate
|
||||
@go mod tidy
|
||||
@go get -u
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"go.ipao.vip/atom"
|
||||
"go.ipao.vip/atom/container"
|
||||
"go.ipao.vip/atom/contracts"
|
||||
"{{.ModuleName}}/app/commands"
|
||||
"{{.ModuleName}}/app/events/subscribers"
|
||||
"{{.ModuleName}}/providers/app"
|
||||
"{{.ModuleName}}/providers/event"
|
||||
@@ -17,7 +18,7 @@ import (
|
||||
)
|
||||
|
||||
func defaultProviders() container.Providers {
|
||||
return srv.Default(container.Providers{
|
||||
return commands.Default(container.Providers{
|
||||
postgres.DefaultProvider(),
|
||||
}...)
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"go.ipao.vip/atom"
|
||||
"go.ipao.vip/atom/container"
|
||||
"go.ipao.vip/atom/contracts"
|
||||
"{{.ModuleName}}/app/commands"
|
||||
"{{.ModuleName}}/app/grpc/users"
|
||||
"{{.ModuleName}}/providers/app"
|
||||
"{{.ModuleName}}/providers/grpc"
|
||||
@@ -15,7 +16,7 @@ import (
|
||||
)
|
||||
|
||||
func defaultProviders() container.Providers {
|
||||
return srv.Default(container.Providers{
|
||||
return commands.Default(container.Providers{
|
||||
postgres.DefaultProvider(),
|
||||
grpc.DefaultProvider(),
|
||||
}...)
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
"go.ipao.vip/atom"
|
||||
"go.ipao.vip/atom/container"
|
||||
"go.ipao.vip/atom/contracts"
|
||||
"{{.ModuleName}}/app/commands"
|
||||
"{{.ModuleName}}/app/errorx"
|
||||
"{{.ModuleName}}/app/jobs"
|
||||
_ "{{.ModuleName}}/docs"
|
||||
@@ -23,7 +24,7 @@ import (
|
||||
)
|
||||
|
||||
func defaultProviders() container.Providers {
|
||||
return srv.Default(container.Providers{
|
||||
return commands.Default(container.Providers{
|
||||
http.DefaultProvider(),
|
||||
postgres.DefaultProvider(),
|
||||
jwt.DefaultProvider(),
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
"{{.ModuleName}}/app/commands"
|
||||
"{{.ModuleName}}/database"
|
||||
"{{.ModuleName}}/providers/postgres"
|
||||
|
||||
@@ -19,7 +20,7 @@ import (
|
||||
)
|
||||
|
||||
func defaultProviders() container.Providers {
|
||||
return srv.Default(container.Providers{
|
||||
return commands.Default(container.Providers{
|
||||
postgres.DefaultProvider(),
|
||||
}...)
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"go.ipao.vip/atom/container"
|
||||
"go.ipao.vip/atom/contracts"
|
||||
|
||||
"{{.ModuleName}}/app/commands"
|
||||
"{{.ModuleName}}/app/jobs"
|
||||
"{{.ModuleName}}/providers/app"
|
||||
"{{.ModuleName}}/providers/job"
|
||||
@@ -18,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
func defaultProviders() container.Providers {
|
||||
return srv.Default(container.Providers{
|
||||
return commands.Default(container.Providers{
|
||||
postgres.DefaultProvider(),
|
||||
job.DefaultProvider(),
|
||||
}...)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package srv
|
||||
package commands
|
||||
|
||||
import (
|
||||
"go.ipao.vip/atom/container"
|
||||
|
||||
Reference in New Issue
Block a user