From 1d913e7700a96c068765501d7a7400d98c4e3efb Mon Sep 17 00:00:00 2001 From: baxiang <919784497@qq.com> Date: Wed, 14 Oct 2020 14:28:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20kratos=20new=20=E6=97=B6=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool/kratos-gen-project/templates/all/internal/dao/dao.go.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/kratos-gen-project/templates/all/internal/dao/dao.go.tmpl b/tool/kratos-gen-project/templates/all/internal/dao/dao.go.tmpl index a67d0a8e4..81ea0b540 100644 --- a/tool/kratos-gen-project/templates/all/internal/dao/dao.go.tmpl +++ b/tool/kratos-gen-project/templates/all/internal/dao/dao.go.tmpl @@ -23,7 +23,7 @@ type Dao interface { Close() Ping(ctx context.Context) (err error) // bts: -nullcache=&model.Article{ID:-1} -check_null_code=$!=nil&&$.ID==-1 - Article(c context.Context, id int64) (*model.Article, error) + RawArticle(c context.Context, id int64) (*model.Article, error) } // dao dao. From 8bd2d059eb2c5d280d58fe0d98704b2d9e1c283b Mon Sep 17 00:00:00 2001 From: baxiang <919784497@qq.com> Date: Wed, 14 Oct 2020 18:16:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix=20kratos=20new=20=E6=97=B6=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E9=94=99=E8=AF=AF=20#638?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tool/kratos-gen-project/templates/grpc/internal/dao/dao.go.tmpl | 2 +- tool/kratos-gen-project/templates/http/internal/dao/dao.go.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/kratos-gen-project/templates/grpc/internal/dao/dao.go.tmpl b/tool/kratos-gen-project/templates/grpc/internal/dao/dao.go.tmpl index a67d0a8e4..81ea0b540 100644 --- a/tool/kratos-gen-project/templates/grpc/internal/dao/dao.go.tmpl +++ b/tool/kratos-gen-project/templates/grpc/internal/dao/dao.go.tmpl @@ -23,7 +23,7 @@ type Dao interface { Close() Ping(ctx context.Context) (err error) // bts: -nullcache=&model.Article{ID:-1} -check_null_code=$!=nil&&$.ID==-1 - Article(c context.Context, id int64) (*model.Article, error) + RawArticle(c context.Context, id int64) (*model.Article, error) } // dao dao. diff --git a/tool/kratos-gen-project/templates/http/internal/dao/dao.go.tmpl b/tool/kratos-gen-project/templates/http/internal/dao/dao.go.tmpl index a67d0a8e4..81ea0b540 100644 --- a/tool/kratos-gen-project/templates/http/internal/dao/dao.go.tmpl +++ b/tool/kratos-gen-project/templates/http/internal/dao/dao.go.tmpl @@ -23,7 +23,7 @@ type Dao interface { Close() Ping(ctx context.Context) (err error) // bts: -nullcache=&model.Article{ID:-1} -check_null_code=$!=nil&&$.ID==-1 - Article(c context.Context, id int64) (*model.Article, error) + RawArticle(c context.Context, id int64) (*model.Article, error) } // dao dao.