diff --git a/go-zero.dev/cn/micro-service.md b/go-zero.dev/cn/micro-service.md index 0c0ded69..42497e46 100644 --- a/go-zero.dev/cn/micro-service.md +++ b/go-zero.dev/cn/micro-service.md @@ -220,20 +220,20 @@ $ go mod init go-zero-demo import ( "go-zero-demo/mall/order/api/internal/config" - "go-zero-demo/mall/user/rpc/user" + "go-zero-demo/mall/user/rpc/userclient" "github.com/zeromicro/go-zero/zrpc" ) type ServiceContext struct { Config config.Config - UserRpc user.User + UserRpc userclient.User } func NewServiceContext(c config.Config) *ServiceContext { return &ServiceContext{ Config: c, - UserRpc: user.NewUser(zrpc.MustNewClient(c.UserRpc)), + UserRpc: userclient.NewUser(zrpc.MustNewClient(c.UserRpc)), } } ```