修复产品修改、删除
This commit is contained in:
@@ -22,6 +22,7 @@ type ServiceContext struct {
|
||||
UserProductRpc sentinel.UserProductClient
|
||||
WhitelistRpc sentinel.WhitelistClient
|
||||
SecretRpc sentinel.SecretClient
|
||||
TopUpRpc sentinel.TopUpClient
|
||||
}
|
||||
|
||||
func NewServiceContext(c config.Config) *ServiceContext {
|
||||
@@ -40,7 +41,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
userProductRpc := sentinel.NewUserProductClient(zrpc.MustNewClient(c.SentinelRpc).Conn())
|
||||
whitelistRpc := sentinel.NewWhitelistClient(zrpc.MustNewClient(c.SentinelRpc).Conn())
|
||||
secretRpc := sentinel.NewSecretClient(zrpc.MustNewClient(c.SentinelRpc).Conn())
|
||||
|
||||
topUpRpc := sentinel.NewTopUpClient(zrpc.MustNewClient(c.SentinelRpc).Conn())
|
||||
return &ServiceContext{
|
||||
Config: c,
|
||||
AuthInterceptor: middleware.NewAuthInterceptorMiddleware(c).Handle,
|
||||
@@ -53,5 +54,6 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
UserProductRpc: userProductRpc,
|
||||
WhitelistRpc: whitelistRpc,
|
||||
SecretRpc: secretRpc,
|
||||
TopUpRpc: topUpRpc,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user