feat: 重构项目结构,添加命令处理程序并移除冗余文件
This commit is contained in:
14
templates/project/app/commands/service.go.tpl
Normal file
14
templates/project/app/commands/service.go.tpl
Normal file
@@ -0,0 +1,14 @@
|
||||
package srv
|
||||
|
||||
import (
|
||||
"go.ipao.vip/atom/container"
|
||||
"{{.ModuleName}}/providers/app"
|
||||
"{{.ModuleName}}/providers/event"
|
||||
)
|
||||
|
||||
func Default(providers ...container.ProviderContainer) container.Providers {
|
||||
return append(container.Providers{
|
||||
app.DefaultProvider(),
|
||||
event.DefaultProvider(),
|
||||
}, providers...)
|
||||
}
|
||||
Reference in New Issue
Block a user