2023-04-09 02:11:58 +08:00
|
|
|
package common
|
|
|
|
|
|
|
|
import "film/model"
|
|
|
|
|
|
|
|
type CheckInfo struct {
|
2023-04-09 10:40:20 +08:00
|
|
|
TotalOriginPrice int64
|
|
|
|
TotalRealPrice int64
|
2023-04-09 11:38:19 +08:00
|
|
|
CouponPrice int64
|
2023-04-09 15:20:16 +08:00
|
|
|
SessionCode string
|
|
|
|
SessionType string
|
2023-04-09 02:11:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type OrderInfo struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type Processor interface {
|
|
|
|
CheckOrder(*model.Order) (*CheckInfo, error)
|
|
|
|
CreateOrder(*model.Order) (*OrderInfo, error)
|
|
|
|
CancelOrder(*model.Order, *CheckInfo) error
|
|
|
|
}
|