film/worker/common/processor.go

21 lines
379 B
Go
Raw Normal View History

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
TotalCouponPrice int64
UnitPrice int64
BillCode 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
}