modify routes

This commit is contained in:
yanghao05
2023-06-09 14:58:29 +08:00
parent 3f27dee0b2
commit aee21ec772
7 changed files with 46 additions and 17 deletions

View File

@@ -15,9 +15,15 @@ import (
var cfgFile string
var (
GroupRoutes = dig.Group("routes")
GroupGrpcServer = dig.Group("grpc_server_services")
GroupCommand = dig.Group("command_services")
GroupInitialName = "initials"
GroupRoutesName = "routes"
GroupGrpcServerServiceName = "grpc_server_services"
GroupCommandName = "command_services"
GroupInitial = dig.Group(GroupInitialName)
GroupRoutes = dig.Group(GroupRoutesName)
GroupGrpcServer = dig.Group(GroupGrpcServerServiceName)
GroupCommand = dig.Group(GroupCommandName)
)
func Serve(providers container.Providers, opts ...Option) error {