mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Removed RateProfile from engine package to utils
This commit is contained in:
committed by
Dan Christian Bogos
parent
c61e2046f3
commit
5d323f4671
@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package console
|
||||
|
||||
import (
|
||||
"github.com/cgrates/cgrates/engine"
|
||||
"github.com/cgrates/cgrates/utils"
|
||||
)
|
||||
|
||||
@@ -61,6 +60,6 @@ func (self *CmdGetRateProfile) PostprocessRpcParams() error {
|
||||
}
|
||||
|
||||
func (self *CmdGetRateProfile) RpcResult() interface{} {
|
||||
var atr engine.RateProfile
|
||||
var atr utils.RateProfile
|
||||
return &atr
|
||||
}
|
||||
|
||||
@@ -50,9 +50,11 @@ func (self *CmdSetRateProfile) RpcMethod() string {
|
||||
|
||||
func (self *CmdSetRateProfile) RpcParams(reset bool) interface{} {
|
||||
if reset || self.rpcParams == nil {
|
||||
self.rpcParams = &engine.APIRateProfileWithOpts{
|
||||
APIRateProfile: new(engine.APIRateProfile),
|
||||
Opts: make(map[string]interface{}),
|
||||
self.rpcParams = &v1.APIRateProfileWithCache{
|
||||
APIRateProfileWithOpts: &utils.APIRateProfileWithOpts{
|
||||
APIRateProfile: new(utils.APIRateProfile),
|
||||
Opts: make(map[string]interface{}),
|
||||
},
|
||||
}
|
||||
}
|
||||
return self.rpcParams
|
||||
|
||||
Reference in New Issue
Block a user