fix: 复合主键表改为单字段 id 以支持 ent 完整生成

This commit is contained in:
zetaloop
2026-04-24 07:32:52 +08:00
parent c62d743320
commit 5ad579f03c
19 changed files with 324 additions and 82 deletions
@@ -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,
}
}