modify the goctl gensvc template (#323)
This commit is contained in:
@@ -15,12 +15,12 @@ const svcTemplate = `package svc
|
|||||||
import {{.imports}}
|
import {{.imports}}
|
||||||
|
|
||||||
type ServiceContext struct {
|
type ServiceContext struct {
|
||||||
c config.Config
|
Config config.Config
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewServiceContext(c config.Config) *ServiceContext {
|
func NewServiceContext(c config.Config) *ServiceContext {
|
||||||
return &ServiceContext{
|
return &ServiceContext{
|
||||||
c:c,
|
Config:c,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|||||||
Reference in New Issue
Block a user