Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ etcd中的`Key`必须要和user rpc服务配置中Key一致
type ServiceContext struct {
Config config.Config
Example rest.Middleware
UserRpc user.User
UserRpc userclient.User
}

func NewServiceContext(c config.Config) *ServiceContext {
return &ServiceContext{
Config: c,
Example: middleware.NewExampleMiddleware().Handle,
UserRpc: user.NewUser(zrpc.MustNewClient(c.UserRpc)),
UserRpc: userclient.NewUser(zrpc.MustNewClient(c.UserRpc)),
}
}
```
Expand Down