2022-10-21 16:03:06 +00:00
|
|
|
package statements
|
2022-10-20 10:04:28 +00:00
|
|
|
|
2022-10-21 12:49:35 +00:00
|
|
|
type IStatement interface { }
|
|
|
|
|
|
|
|
type RawStatement struct {
|
|
|
|
IStatement
|
|
|
|
Value string
|
|
|
|
}
|
|
|
|
|
|
|
|
type QuotedValue struct {
|
|
|
|
IStatement
|
|
|
|
RawStatement *RawStatement
|
|
|
|
Quote string
|
|
|
|
}
|
|
|
|
|
|
|
|
type BracketedValue struct {
|
|
|
|
IStatement
|
|
|
|
RawStatement *RawStatement
|
|
|
|
Brackets string
|
2022-10-20 10:04:28 +00:00
|
|
|
}
|
|
|
|
|
2022-10-21 16:03:06 +00:00
|
|
|
type AmountStatement struct {
|
2022-10-20 10:04:28 +00:00
|
|
|
IStatement
|
2022-10-21 16:03:06 +00:00
|
|
|
Value float64
|
|
|
|
Unit string
|
2022-10-20 10:04:28 +00:00
|
|
|
}
|
2022-10-21 12:49:35 +00:00
|
|
|
|
2022-10-21 16:35:24 +00:00
|
|
|
type ProductStatement struct {
|
|
|
|
IStatement
|
|
|
|
Name string
|
|
|
|
}
|
|
|
|
|
2022-10-21 16:03:06 +00:00
|
|
|
type IActionStatement interface { }
|
|
|
|
|
2022-10-21 16:35:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2022-10-21 12:49:35 +00:00
|
|
|
type OrderStatement struct {
|
2022-10-21 16:03:06 +00:00
|
|
|
IStatement
|
|
|
|
IActionStatement
|
|
|
|
Action string
|
2022-10-21 12:49:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func ( this *OrderStatement ) For( stmt IStatement ) {
|
|
|
|
}
|
2022-10-21 16:35:24 +00:00
|
|
|
|
|
|
|
func ( this *OrderStatement ) Product( stmt IStatement ) {
|
|
|
|
}
|