fix seeder issues

This commit is contained in:
yanghao05
2023-06-13 19:50:58 +08:00
parent 62102819bc
commit a3556b6a90
3 changed files with 7 additions and 19 deletions

View File

@@ -1,19 +1,2 @@
# atom
atom is a simple http/grpc service template
## Tool
- [atomctl](https://github.com/rogeecn/atomctl)
## Features
- using [Gin](https://github.com/gin-gonic/gin) to support http service
- using [dig](https://github.com/uber-go/dig) to support dependency injection
- using [gomigrate](github.com/go-gormigrate/gormigrate/v2) to support migration
- using [Gorm](gorm.io/gorm) to support orm
- using [gen](gorm.io/) to auto generate database models
## License
MIT
## Contact
- Rogee(rogeecn@qq.com)
#atom

View File

@@ -125,7 +125,7 @@ func Config(file string) Option {
func Seeders(seeders ...contracts.SeederProvider) Option {
return func(cmd *cobra.Command) {
for _, seeder := range seeders {
if err := container.Container.Provide(seeder, dig.Group("seeder")); err != nil {
if err := container.Container.Provide(seeder, dig.Group("seeders")); err != nil {
log.Fatal(err)
}
}

5
docs/index.md Normal file
View File

@@ -0,0 +1,5 @@
1. 框架介绍
2. 技术栈
- cobra
- viper
-