mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 15:48:44 +05:00
Removed IDs from count apis
This commit is contained in:
committed by
Dan Christian Bogos
parent
311fffcaac
commit
0c066c844f
@@ -68,9 +68,9 @@ func (admS *AdminSv1) GetAccountIDs(ctx *context.Context, args *utils.PaginatorW
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetAccountIDsCount sets in reply var the total number of AccountIDs registered for a tenant
|
||||
// GetAccountsCount sets in reply var the total number of AccountIDs registered for a tenant
|
||||
// returns ErrNotFound in case of 0 AccountIDs
|
||||
func (admS *AdminSv1) GetAccountIDsCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
func (admS *AdminSv1) GetAccountsCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
tnt := args.Tenant
|
||||
if tnt == utils.EmptyString {
|
||||
tnt = admS.cfg.GeneralCfg().DefaultTenant
|
||||
|
||||
@@ -69,9 +69,9 @@ func (admS *AdminSv1) GetActionProfileIDs(ctx *context.Context, args *utils.Pagi
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetActionProfileIDsCount sets in reply var the total number of ActionProfileIDs registered for a tenant
|
||||
// GetActionProfilesCount sets in reply var the total number of ActionProfileIDs registered for a tenant
|
||||
// returns ErrNotFound in case of 0 ActionProfileIDs
|
||||
func (admS *AdminSv1) GetActionProfileIDsCount(ctx *context.Context, args *utils.TenantIDWithAPIOpts, reply *int) (err error) {
|
||||
func (admS *AdminSv1) GetActionProfilesCount(ctx *context.Context, args *utils.TenantIDWithAPIOpts, reply *int) (err error) {
|
||||
tnt := args.Tenant
|
||||
if tnt == utils.EmptyString {
|
||||
tnt = admS.cfg.GeneralCfg().DefaultTenant
|
||||
|
||||
@@ -69,9 +69,9 @@ func (admS *AdminSv1) GetAttributeProfileIDs(ctx *context.Context, args *utils.P
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetAttributeProfileIDsCount returns the total number of AttributeProfileIDs registered for a tenant
|
||||
// GetAttributeProfilesCount returns the total number of AttributeProfileIDs registered for a tenant
|
||||
// returns ErrNotFound in case of 0 AttributeProfileIDs
|
||||
func (admS *AdminSv1) GetAttributeProfileIDsCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
func (admS *AdminSv1) GetAttributeProfilesCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
tnt := args.Tenant
|
||||
if tnt == utils.EmptyString {
|
||||
tnt = admS.cfg.GeneralCfg().DefaultTenant
|
||||
|
||||
@@ -128,7 +128,9 @@ func (adms *AdminSv1) RemoveFilter(ctx *context.Context, arg *utils.TenantIDWith
|
||||
return nil
|
||||
}
|
||||
|
||||
func (admS *AdminSv1) GetFilterIDsCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
// GetFiltersCount returns the total number of FilterIDs registered for a tenant
|
||||
// returns ErrNotFound in case of 0 FilterIDs
|
||||
func (admS *AdminSv1) GetFiltersCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
tnt := args.Tenant
|
||||
if tnt == utils.EmptyString {
|
||||
tnt = admS.cfg.GeneralCfg().DefaultTenant
|
||||
|
||||
@@ -69,9 +69,9 @@ func (admS *AdminSv1) GetRateProfileIDs(ctx *context.Context, args *utils.Pagina
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetRateProfileIDsCount returns the total number of RateProfileIDs registered for a tenant
|
||||
// GetRateProfilesCount returns the total number of RateProfileIDs registered for a tenant
|
||||
// returns ErrNotFound in case of 0 RateProfileIDs
|
||||
func (admS *AdminSv1) GetRateProfileIDsCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
func (admS *AdminSv1) GetRateProfilesCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
tnt := args.Tenant
|
||||
if tnt == utils.EmptyString {
|
||||
tnt = admS.cfg.GeneralCfg().DefaultTenant
|
||||
|
||||
@@ -64,7 +64,7 @@ func (adms *AdminSv1) GetResourceProfileIDs(ctx *context.Context, args *utils.Pa
|
||||
|
||||
// GetResourceProfileIDsCount returns the total number of ResourceProfileIDs registered for a tenant
|
||||
// returns ErrNotFound in case of 0 ResourceProfileIDs
|
||||
func (admS *AdminSv1) GetResourceProfileIDsCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
func (admS *AdminSv1) GetResourceProfilesCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
tnt := args.Tenant
|
||||
if tnt == utils.EmptyString {
|
||||
tnt = admS.cfg.GeneralCfg().DefaultTenant
|
||||
|
||||
@@ -62,9 +62,9 @@ func (adms *AdminSv1) GetThresholdProfileIDs(ctx *context.Context, args *utils.P
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetThresholdProfileIDsCount sets in reply var the total number of ThresholdProfileIDs registered for the received tenant
|
||||
// GetThresholdProfilesCount sets in reply var the total number of ThresholdProfileIDs registered for the received tenant
|
||||
// returns ErrNotFound in case of 0 ThresholdProfileIDs
|
||||
func (adms *AdminSv1) GetThresholdProfileIDsCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
func (adms *AdminSv1) GetThresholdProfilesCount(ctx *context.Context, args *utils.TenantWithAPIOpts, reply *int) (err error) {
|
||||
tnt := args.Tenant
|
||||
if tnt == utils.EmptyString {
|
||||
tnt = adms.cfg.GeneralCfg().DefaultTenant
|
||||
|
||||
Reference in New Issue
Block a user