mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
Fix atribute typos.
This commit is contained in:
committed by
Dan Christian Bogos
parent
3e8e930bd8
commit
727f428082
@@ -24,8 +24,8 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
c := &CmdGetAtributes{
|
||||
name: "atributes",
|
||||
c := &CmdGetAttributes{
|
||||
name: "attributes",
|
||||
rpcMethod: "ApierV1.GetAttributeProfile",
|
||||
rpcParams: &utils.TenantID{},
|
||||
}
|
||||
@@ -34,33 +34,33 @@ func init() {
|
||||
}
|
||||
|
||||
// Commander implementation
|
||||
type CmdGetAtributes struct {
|
||||
type CmdGetAttributes struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *utils.TenantID
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
func (self *CmdGetAtributes) Name() string {
|
||||
func (self *CmdGetAttributes) Name() string {
|
||||
return self.name
|
||||
}
|
||||
|
||||
func (self *CmdGetAtributes) RpcMethod() string {
|
||||
func (self *CmdGetAttributes) RpcMethod() string {
|
||||
return self.rpcMethod
|
||||
}
|
||||
|
||||
func (self *CmdGetAtributes) RpcParams(reset bool) interface{} {
|
||||
func (self *CmdGetAttributes) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &utils.TenantID{}
|
||||
}
|
||||
return self.rpcParams
|
||||
}
|
||||
|
||||
func (self *CmdGetAtributes) PostprocessRpcParams() error {
|
||||
func (self *CmdGetAttributes) PostprocessRpcParams() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *CmdGetAtributes) RpcResult() interface{} {
|
||||
func (self *CmdGetAttributes) RpcResult() interface{} {
|
||||
atr := engine.AttributeProfile{}
|
||||
return &atr
|
||||
}
|
||||
@@ -21,8 +21,8 @@ package console
|
||||
import "github.com/cgrates/cgrates/utils"
|
||||
|
||||
func init() {
|
||||
c := &CmdRemoveAtributes{
|
||||
name: "atributes_remove",
|
||||
c := &CmdRemoveAttributes{
|
||||
name: "attributes_remove",
|
||||
rpcMethod: "ApierV1.RemoveAttributeProfile",
|
||||
rpcParams: &utils.TenantID{},
|
||||
}
|
||||
@@ -30,33 +30,33 @@ func init() {
|
||||
c.CommandExecuter = &CommandExecuter{c}
|
||||
}
|
||||
|
||||
type CmdRemoveAtributes struct {
|
||||
type CmdRemoveAttributes struct {
|
||||
name string
|
||||
rpcMethod string
|
||||
rpcParams *utils.TenantID
|
||||
*CommandExecuter
|
||||
}
|
||||
|
||||
func (self *CmdRemoveAtributes) Name() string {
|
||||
func (self *CmdRemoveAttributes) Name() string {
|
||||
return self.name
|
||||
}
|
||||
|
||||
func (self *CmdRemoveAtributes) RpcMethod() string {
|
||||
func (self *CmdRemoveAttributes) RpcMethod() string {
|
||||
return self.rpcMethod
|
||||
}
|
||||
|
||||
func (self *CmdRemoveAtributes) RpcParams(reset bool) interface{} {
|
||||
func (self *CmdRemoveAttributes) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &utils.TenantID{}
|
||||
}
|
||||
return self.rpcParams
|
||||
}
|
||||
|
||||
func (self *CmdRemoveAtributes) PostprocessRpcParams() error {
|
||||
func (self *CmdRemoveAttributes) PostprocessRpcParams() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *CmdRemoveAtributes) RpcResult() interface{} {
|
||||
func (self *CmdRemoveAttributes) RpcResult() interface{} {
|
||||
var s string
|
||||
return &s
|
||||
}
|
||||
Reference in New Issue
Block a user