mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 00:20:00 +08:00
14 lines
253 B
Go
14 lines
253 B
Go
|
|
package svc
|
||
|
|
|
||
|
|
import "github.com/zeromicro/go-zero/tools/goctl/example/rpc/hello/internal/config"
|
||
|
|
|
||
|
|
type ServiceContext struct {
|
||
|
|
Config config.Config
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewServiceContext(c config.Config) *ServiceContext {
|
||
|
|
return &ServiceContext{
|
||
|
|
Config: c,
|
||
|
|
}
|
||
|
|
}
|