Storage.GetSMCost -> Storage.GetSMCosts, prefix match for OriginID when querying

This commit is contained in:
DanB
2016-03-27 20:45:23 +02:00
parent 608f430db7
commit ee53a1b3de
8 changed files with 72 additions and 45 deletions

View File

@@ -98,7 +98,7 @@ type CdrStorage interface {
Storage
SetCDR(*CDR, bool) error
SetSMCost(smc *SMCost) error
GetSMCost(cgrid, runid, originHost, originIDPrfx string) (*SMCost, error)
GetSMCosts(cgrid, runid, originHost, originIDPrfx string) ([]*SMCost, error)
GetCDRs(*utils.CDRsFilter, bool) ([]*CDR, int64, error)
}