docs: update tal-tech to zeromico in docs (#1498)

This commit is contained in:
Kevin Wan
2022-02-01 13:03:30 +08:00
committed by GitHub
parent 7727d70634
commit ec299085f5
6 changed files with 11 additions and 12 deletions

View File

@@ -13,7 +13,6 @@ import (
)
const deprecatedGoZeroMod = "github.com/tal-tech/go-zero"
const deprecatedBuilderx = "github.com/tal-tech/go-zero/tools/goctl/model/sql/builderx"
const replacementBuilderx = "github.com/zeromicro/go-zero/core/stores/builder"
const goZeroMod = "github.com/zeromicro/go-zero"

View File

@@ -66,7 +66,7 @@ type User struct {
"github.com/globalsign/mgo/bson"
cachec "github.com/zeromicro/go-zero/core/stores/cache"
"github.com/tal-tech/go-zero/core/stores/mongoc"
"github.com/zeromicro/go-zero/core/stores/mongoc"
)
type UserModel interface {
@@ -207,4 +207,4 @@ OPTIONS:
types.go本质上与xxxmodel.go无关只是将type定义部分交给开发人员自己编写了在xxxmodel.go中mongo文档的存储结构必须包含
`_id`字段对应到types中的field为`ID`model中的findOne,update均以data.ID来进行操作的当然如果不符合你的命名风格你也 可以修改模板,只要保证`id`
在types中的field名称和模板中一致就行。
在types中的field名称和模板中一致就行。