new
This commit is contained in:
@@ -18,6 +18,7 @@ type ServiceContext struct {
|
||||
WalletsModel model.WalletsModel
|
||||
DeductionsModel model.DeductionsModel
|
||||
ApiRequestsModel model.ApiRequestsModel
|
||||
RechargeModel model.RechargeModel
|
||||
SecretRpc sentinel.SecretClient
|
||||
ProductRpc sentinel.ProductClient
|
||||
}
|
||||
@@ -41,6 +42,7 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
WalletsModel: model.NewWalletsModel(db, c.CacheRedis),
|
||||
DeductionsModel: model.NewDeductionsModel(db, c.CacheRedis),
|
||||
ApiRequestsModel: model.NewApiRequestsModel(db, c.CacheRedis),
|
||||
RechargeModel: model.NewRechargeModel(db, c.CacheRedis),
|
||||
SecretRpc: sentinel.NewSecretClient(zrpc.MustNewClient(c.SentinelRpc).Conn()),
|
||||
ProductRpc: sentinel.NewProductClient(zrpc.MustNewClient(c.SentinelRpc).Conn()),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user