Update dispatcher and console with ArgsAttrProcessEvent

This commit is contained in:
TeoV
2018-07-10 03:10:22 -04:00
committed by Dan Christian Bogos
parent 834f130949
commit b5dacd910f
5 changed files with 23 additions and 18 deletions

View File

@@ -30,7 +30,7 @@ func init() {
c := &CmdAttributesProcessEvent{
name: "attributes_process_event",
rpcMethod: utils.AttributeSv1ProcessEvent,
rpcParams: &dispatcher.CGREvWithApiKey{},
rpcParams: &dispatcher.ArgsAttrProcessEventWithApiKey{},
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}
@@ -39,7 +39,7 @@ func init() {
type CmdAttributesProcessEvent struct {
name string
rpcMethod string
rpcParams *dispatcher.CGREvWithApiKey
rpcParams *dispatcher.ArgsAttrProcessEventWithApiKey
*CommandExecuter
}
@@ -53,7 +53,7 @@ func (self *CmdAttributesProcessEvent) RpcMethod() string {
func (self *CmdAttributesProcessEvent) RpcParams(reset bool) interface{} {
if reset || self.rpcParams == nil {
self.rpcParams = &dispatcher.CGREvWithApiKey{}
self.rpcParams = &dispatcher.ArgsAttrProcessEventWithApiKey{}
}
return self.rpcParams
}

View File

@@ -28,7 +28,7 @@ func init() {
c := &CmdGetAttributeForEvent{
name: "attributes_for_event",
rpcMethod: utils.AttributeSv1GetAttributeForEvent,
rpcParams: &dispatcher.CGREvWithApiKey{},
rpcParams: &dispatcher.ArgsAttrProcessEventWithApiKey{},
}
commands[c.Name()] = c
c.CommandExecuter = &CommandExecuter{c}
@@ -37,7 +37,7 @@ func init() {
type CmdGetAttributeForEvent struct {
name string
rpcMethod string
rpcParams *dispatcher.CGREvWithApiKey
rpcParams *dispatcher.ArgsAttrProcessEventWithApiKey
*CommandExecuter
}
@@ -51,7 +51,7 @@ func (self *CmdGetAttributeForEvent) RpcMethod() string {
func (self *CmdGetAttributeForEvent) RpcParams(reset bool) interface{} {
if reset || self.rpcParams == nil {
self.rpcParams = &dispatcher.CGREvWithApiKey{}
self.rpcParams = &dispatcher.ArgsAttrProcessEventWithApiKey{}
}
return self.rpcParams
}