mirror of http://gitlab.batiao8.com/yic/film.git
21 lines
380 B
Go
21 lines
380 B
Go
package common
|
|
|
|
import "film/model"
|
|
|
|
type CheckInfo struct {
|
|
TotalOriginPrice int64
|
|
TotalRealPrice int64
|
|
CouponPrice int64
|
|
SessionCode string
|
|
SessionType string
|
|
}
|
|
|
|
type OrderInfo struct {
|
|
}
|
|
|
|
type Processor interface {
|
|
CheckOrder(*model.Order) (*CheckInfo, error)
|
|
CreateOrder(*model.Order) (*OrderInfo, error)
|
|
CancelOrder(*model.Order, *CheckInfo) error
|
|
}
|