WIP: EOL
This commit is contained in:
parent
7ed1e05284
commit
49e05cac10
23 changed files with 613 additions and 253 deletions
|
|
@ -1,3 +1,22 @@
|
|||
package training
|
||||
|
||||
type Price float32
|
||||
// type Price float32
|
||||
|
||||
type TrainingPrice struct {
|
||||
Currency string `json:"currency"`
|
||||
Amount float64 `json:"amount"`
|
||||
Type PriceType `json:"type"` // open | corporate
|
||||
}
|
||||
|
||||
type PriceType string
|
||||
|
||||
var (
|
||||
PriceTypes = []PriceType{OpenPrice, CorporatePrice, StudentPrice, GovernmentPrice}
|
||||
)
|
||||
|
||||
const (
|
||||
OpenPrice PriceType = "OPEN"
|
||||
CorporatePrice PriceType = "CORPORATE"
|
||||
StudentPrice PriceType = "STUDENT"
|
||||
GovernmentPrice PriceType = "GOVERNMENT"
|
||||
)
|
||||
|
|
|
|||
Reference in a new issue