浏览代码

modify the goctl gensvc template (#323)

FengZhang 4 年之前
父节点
当前提交
a926cb514f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tools/goctl/rpc/generator/gensvc.go

+ 2 - 2
tools/goctl/rpc/generator/gensvc.go

@@ -15,12 +15,12 @@ const svcTemplate = `package svc
 import {{.imports}}
 
 type ServiceContext struct {
-	c config.Config
+	Config config.Config
 }
 
 func NewServiceContext(c config.Config) *ServiceContext {
 	return &ServiceContext{
-		c:c,
+		Config:c,
 	}
 }
 `