fix: 复合主键表改为单字段 id 以支持 ent 完整生成
This commit is contained in:
@@ -27,7 +27,6 @@ type ServiceContext struct {
|
||||
UsersRpc usercenter.Usercenter
|
||||
ShopModelRW *models.Client
|
||||
ShopModelRO *models.Client
|
||||
DBRW *stdsql.DB
|
||||
}
|
||||
|
||||
func NewServiceContext(c config.Config) *ServiceContext {
|
||||
@@ -69,6 +68,5 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
UsersRpc: usercenter.NewUsercenter(zrpc.MustNewClient(c.UsersRpcConf)),
|
||||
ShopModelRO: models.NewClient(roModelOpts...),
|
||||
ShopModelRW: models.NewClient(rwModelOpts...),
|
||||
DBRW: rawRW,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user