feat(order): 统一网站自交接订单24小时自动完成倒计时
This commit is contained in:
@@ -19,6 +19,7 @@ type RentalOrder struct {
|
||||
RenterID uint64 `gorm:"not null;index" json:"renter_id"`
|
||||
RentedAt *time.Time `json:"rented_at"`
|
||||
HandoffStartedAt *time.Time `json:"handoff_started_at"`
|
||||
HandoffDeadlineAt *time.Time `gorm:"index:idx_rental_orders_handoff_deadline" json:"handoff_deadline_at"`
|
||||
EstimatedDurationHours int `gorm:"not null;default:24" json:"estimated_duration_hours"`
|
||||
RentAmountCent int64 `gorm:"not null;default:0" json:"-"`
|
||||
OwnerRentAmountCent int64 `gorm:"not null;default:0" json:"-"`
|
||||
|
||||
Reference in New Issue
Block a user