Merge pull request #639 from baxiang/master

fix kratos new 时模板错误 #638
pull/660/head
Windfarer 4 years ago committed by GitHub
commit 449c05523b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      tool/kratos-gen-project/templates/all/internal/dao/dao.go.tmpl
  2. 2
      tool/kratos-gen-project/templates/grpc/internal/dao/dao.go.tmpl
  3. 2
      tool/kratos-gen-project/templates/http/internal/dao/dao.go.tmpl

@ -23,7 +23,7 @@ type Dao interface {
Close() Close()
Ping(ctx context.Context) (err error) Ping(ctx context.Context) (err error)
// bts: -nullcache=&model.Article{ID:-1} -check_null_code=$!=nil&&$.ID==-1 // 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. // dao dao.

@ -23,7 +23,7 @@ type Dao interface {
Close() Close()
Ping(ctx context.Context) (err error) Ping(ctx context.Context) (err error)
// bts: -nullcache=&model.Article{ID:-1} -check_null_code=$!=nil&&$.ID==-1 // 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. // dao dao.

@ -23,7 +23,7 @@ type Dao interface {
Close() Close()
Ping(ctx context.Context) (err error) Ping(ctx context.Context) (err error)
// bts: -nullcache=&model.Article{ID:-1} -check_null_code=$!=nil&&$.ID==-1 // 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. // dao dao.

Loading…
Cancel
Save