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. 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.