Removed RateProfile from engine package to utils

This commit is contained in:
porosnicuadrian
2021-03-17 13:48:08 +02:00
committed by Dan Christian Bogos
parent c61e2046f3
commit 5d323f4671
28 changed files with 179 additions and 1686 deletions

View File

@@ -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
}

View File

@@ -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