From 02a7de5eab0d3dbb43f34cb43a193e8124902d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=BB=84?= <1520752231@qq.com> Date: Fri, 9 Apr 2021 12:12:30 +0800 Subject: [PATCH] bug: fix --- servicegen/tpl.go | 2 +- servicegen/tpl/api_test.tpl | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/servicegen/tpl.go b/servicegen/tpl.go index a3117b4..b008bfc 100644 --- a/servicegen/tpl.go +++ b/servicegen/tpl.go @@ -8,7 +8,7 @@ import ( var ( apiTpl = CreateTpl("api.tpl") - apiPreTpl = CreateTpl("api_task.tpl") + apiPreTpl = CreateTpl("api_pre.tpl") apiTaskTpl = CreateTpl("api_task.tpl") apiTestTpl = CreateTpl("api_test.tpl") dbModelTpl = CreateTpl("db_model.tpl") diff --git a/servicegen/tpl/api_test.tpl b/servicegen/tpl/api_test.tpl index 9d966a7..418f3c5 100644 --- a/servicegen/tpl/api_test.tpl +++ b/servicegen/tpl/api_test.tpl @@ -1,7 +1,6 @@ package hasaki_{{.app_name}} import ( - "fmt" "log" "testing"