mirror of http://gitlab.batiao8.com/yic/film.git
19 lines
313 B
Go
19 lines
313 B
Go
|
package common
|
||
|
|
||
|
import "film/model"
|
||
|
|
||
|
type CheckInfo struct {
|
||
|
TotalPrice int64
|
||
|
UnitPrice int64
|
||
|
BillCode string
|
||
|
}
|
||
|
|
||
|
type OrderInfo struct {
|
||
|
}
|
||
|
|
||
|
type Processor interface {
|
||
|
CheckOrder(*model.Order) (*CheckInfo, error)
|
||
|
CreateOrder(*model.Order) (*OrderInfo, error)
|
||
|
CancelOrder(*model.Order, *CheckInfo) error
|
||
|
}
|