new structure

This commit is contained in:
Radu Ioan Fericean
2012-01-27 14:43:39 +02:00
parent b2beab3d81
commit db4812cd51
26 changed files with 33 additions and 17 deletions

View File

@@ -0,0 +1,33 @@
package main
import (
"time"
)
type BilingUnit int
type RatingProfile struct {
StartTime time.Time
ConnectFee float32
Price float32
BillingUnit BilingUnit
}
type ActivationPeriod struct {
ActivationTime time.Time
RatingProfiles []RatingProfile
}
type Customer struct {
Id string
Prefix string
ActivationPeriods []ActivationPeriod
}
const (
SECONDS =iota
COUNT
BYTES
)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,17 +0,0 @@
package main
import (
"time"
)
type Rating struct {
ConnectFeeIn time.Time
PriceIn float32
ConnectFeeOut time.Time
PriceOut float32
}
type Customer struct {
Id string
Prefix string
}

Binary file not shown.