mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
added TP apis for aliases, users and lcr rules
fixes #154, fixes #155, fixes #156
This commit is contained in:
@@ -321,6 +321,35 @@ type TPLcrRule struct {
|
||||
Weight float64
|
||||
}
|
||||
|
||||
type TPAliases struct {
|
||||
TPid string
|
||||
Direction string
|
||||
Tenant string
|
||||
Category string
|
||||
Account string
|
||||
Subject string
|
||||
Group string
|
||||
Values []*TPAliasValue
|
||||
}
|
||||
|
||||
type TPAliasValue struct {
|
||||
DestinationId string
|
||||
Alias string
|
||||
Weight float64
|
||||
}
|
||||
|
||||
type TPUsers struct {
|
||||
TPid string
|
||||
Tenant string
|
||||
UserName string
|
||||
Profile []*TPUserProfile
|
||||
}
|
||||
|
||||
type TPUserProfile struct {
|
||||
AttrName string
|
||||
AttrValue string
|
||||
}
|
||||
|
||||
type TPCdrStats struct {
|
||||
TPid string
|
||||
CdrStatsId string
|
||||
@@ -519,24 +548,6 @@ type AttrGetAccounts struct {
|
||||
Limit int // Limit number of items retrieved
|
||||
}
|
||||
|
||||
type AttrSetTPAlias struct {
|
||||
TPid string
|
||||
Direction string
|
||||
Tenant string
|
||||
Category string
|
||||
Account string
|
||||
Subject string
|
||||
Group string
|
||||
}
|
||||
|
||||
type AttrSetTPUser struct {
|
||||
TPid string
|
||||
Tenant string
|
||||
UserName string
|
||||
AttributeName string
|
||||
AttributeValue string
|
||||
}
|
||||
|
||||
// Data used to do remote cache reloads via api
|
||||
type ApiReloadCache struct {
|
||||
DestinationIds []string
|
||||
|
||||
Reference in New Issue
Block a user