restructure

This commit is contained in:
yanghao05
2023-04-20 12:11:34 +08:00
parent 6757e00d73
commit 5b8eca5d87
120 changed files with 546 additions and 7303 deletions

View File

@@ -1,22 +1,22 @@
/*
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
*/
package cmd
import (
_ "atom/database/seeders"
_ "atom/providers"
"atom/container"
"atom/contracts"
"log"
"github.com/rogeecn/atom/container"
"github.com/rogeecn/atom/contracts"
"github.com/brianvoe/gofakeit/v6"
"github.com/spf13/cobra"
"go.uber.org/dig"
"gorm.io/gorm"
)
func WithSeeder(rootCmd *cobra.Command) *cobra.Command {
rootCmd.AddCommand(seedCmd)
return rootCmd
}
// seedCmd represents the seed command
var seedCmd = &cobra.Command{
Use: "seed",
@@ -40,10 +40,6 @@ var seedCmd = &cobra.Command{
},
}
func init() {
rootCmd.AddCommand(seedCmd)
}
type SeedersContainer struct {
dig.In