film/worker/common/processor.go

19 lines
313 B
Go
Raw Normal View History

2023-04-09 02:11:58 +08:00
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
}