You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.6 KiB

package model
import "time"
type TraderOrder struct {
//gorm.Model
ID int32 `json:"id"`
OrderNo string `json:"orderNo"`
UserId int32 `gorm:"default:1" json:"userId"`
TotalAmount float32 `gorm:"total_amount" json:"totalAmount"`
ShippingAmount float32 `gorm:"shipping_amount" json:"shippingAmount"`
DiscountAmount float32 `gorm:"discount_amount" json:"discountAmount"`
PayAmount float32 `gorm:"pay_amount" json:"payAmount"`
RefundAmount float32 `gorm:"refund_amount" json:"refundAmount"`
SubmitTime time.Time `json:"submitTime"`
ExpireTime time.Time `json:"expireTime"`
AutoReceiveTime time.Time `json:"autoReceiveTime"`
ReceiveTime time.Time `json:"receiveTime"`
AutoPraise time.Time `json:"autoPraise"`
AfterSaleDeadlineTime time.Time `json:"afterSaleDeadlineTime"`
OrderStatus int32 `gorm:"default:1" json:"orderStatus"`
OrderSource int32 `gorm:"default:6" json:"orderSource"`
CancelReason int32 `gorm:"cancel_reason" json:"cancelReason"`
OrderType int32 `gorm:"default:1" json:"orderType"`
CreateUser int32 `gorm:"default:1" json:"createUser"`
CreateTime time.Time `json:"createTime"`
UpdateUser int32 `json:"updateUser"`
UpdateTime time.Time `json:"updateTime"`
IsDeleted bool `json:"isDeleted"`
}
func (table *TraderOrder) TableName() string {
return "trade_order"
}