mirror of https://github.com/zhufuyi/sponge
fix: mongodb driver name tag
This commit is contained in:
parent
a028e2bfcc
commit
85c243d643
|
@ -1,4 +1,4 @@
|
|||
// code generated by https://github.com/go-dev-frame/sponge
|
||||
// Code generated by https://github.com/go-dev-frame/sponge; DO NOT EDIT.
|
||||
|
||||
package config
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// code generated by https://github.com/go-dev-frame/sponge
|
||||
// Code generated by https://github.com/go-dev-frame/sponge; DO NOT EDIT.
|
||||
|
||||
package config
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ func NewUserExampleHandler() UserExampleHandler {
|
|||
collectionName := new(model.UserExample).TableName()
|
||||
return &userExampleHandler{
|
||||
iDao: dao.NewUserExampleDao(
|
||||
database.GetDB().Collection(collectionName),
|
||||
database.GetDB().Collection(collectionName), // todo show db driver name here
|
||||
cache.NewUserExampleCache(database.GetCacheType()),
|
||||
),
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ func NewUserExampleHandler() UserExampleHandler {
|
|||
collectionName := new(model.UserExample).TableName()
|
||||
return &userExampleHandler{
|
||||
iDao: dao.NewUserExampleDao(
|
||||
database.GetDB().Collection(collectionName),
|
||||
database.GetDB().Collection(collectionName), // todo show db driver name here
|
||||
cache.NewUserExampleCache(database.GetCacheType()),
|
||||
),
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ func NewUserExamplePbHandler() serverNameExampleV1.UserExampleLogicer {
|
|||
collectionName := new(model.UserExample).TableName()
|
||||
return &userExamplePbHandler{
|
||||
userExampleDao: dao.NewUserExampleDao(
|
||||
database.GetDB().Collection(collectionName),
|
||||
database.GetDB().Collection(collectionName), // todo show db driver name here
|
||||
cache.NewUserExampleCache(database.GetCacheType()),
|
||||
),
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ func NewUserExamplePbHandler() serverNameExampleV1.UserExampleLogicer {
|
|||
collectionName := new(model.UserExample).TableName()
|
||||
return &userExamplePbHandler{
|
||||
userExampleDao: dao.NewUserExampleDao(
|
||||
database.GetDB().Collection(collectionName),
|
||||
database.GetDB().Collection(collectionName), // todo show db driver name here
|
||||
cache.NewUserExampleCache(database.GetCacheType()),
|
||||
),
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ func NewUserExampleServer() serverNameExampleV1.UserExampleServer {
|
|||
collectionName := new(model.UserExample).TableName()
|
||||
return &userExample{
|
||||
iDao: dao.NewUserExampleDao(
|
||||
database.GetDB().Collection(collectionName),
|
||||
database.GetDB().Collection(collectionName), // todo show db driver name here
|
||||
cache.NewUserExampleCache(database.GetCacheType()),
|
||||
),
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ func NewUserExampleServer() serverNameExampleV1.UserExampleServer {
|
|||
collectionName := new(model.UserExample).TableName()
|
||||
return &userExample{
|
||||
iDao: dao.NewUserExampleDao(
|
||||
database.GetDB().Collection(collectionName),
|
||||
database.GetDB().Collection(collectionName), // todo show db driver name here
|
||||
cache.NewUserExampleCache(database.GetCacheType()),
|
||||
),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue