init: init refactor
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package svc
|
||||
|
||||
import "sundynix-micro-go/app/plant/rpc/internal/config"
|
||||
|
||||
type ServiceContext struct {
|
||||
Config config.Config
|
||||
}
|
||||
|
||||
func NewServiceContext(c config.Config) *ServiceContext {
|
||||
return &ServiceContext{
|
||||
Config: c,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user