浏览代码

fix(goctl): api/new/api.tpl (#1788)

Fyn 3 年之前
父节点
当前提交
ee88abce14
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tools/goctl/api/new/api.tpl

+ 2 - 2
tools/goctl/api/new/api.tpl

@@ -1,9 +1,9 @@
 type Request {
-  Name string ` + "`" + `path:"name,options=you|me"` + "`" + `
+  Name string `path:"name,options=you|me"`
 }
 
 type Response {
-  Message string ` + "`" + `json:"message"` + "`" + `
+  Message string `json:"message"`
 }
 
 service {{.name}}-api {