|
|
@@ -75,43 +75,43 @@ var ORDER_TYPE_CN_TEXT = map[int64]string{
|
|
|
}
|
|
|
|
|
|
type Order struct {
|
|
|
- Id int64 `orm:"column(id);pk" json:"id"` // int(11)
|
|
|
- OrderId string `orm:"column(order_id)" json:"order_id"` // varchar(255)
|
|
|
- OrderType int64 `orm:"column(order_type)" json:"order_type"`
|
|
|
- WxUserId int64 `orm:"column(wx_user_id)" json:"wx_user_id"`
|
|
|
- UserId int64 `orm:"column(user_id)" json:"user_id"` // int(11)
|
|
|
- TotalPrice int64 `orm:"column(total_price)" json:"total_price"` // int(11)
|
|
|
- PaiedPrice int64 `orm:"column(paied_price);null" json:"paied_price"` // int(11)
|
|
|
- CouponPrice int64 `orm:"column(coupon_price);null" json:"coupon_price"` // int(11)
|
|
|
- CentPrice int64 `orm:"column(cent_price);null" json:"cent_price"` // int(11)
|
|
|
- BuyPrice int64 `orm:"column(buy_price);null" json:"-"` // int(11)
|
|
|
- Count int64 `orm:"column(count);null" json:"count"` // int(11)
|
|
|
- PaiedAt int64 `orm:"column(paied_at);null" json:"paied_at"` // int(11)
|
|
|
- TradeNo string `orm:"column(trade_no);null" json:"trade_no"` // varchar(255)
|
|
|
- Status string `orm:"column(status);null" json:"status"` // varchar(255)
|
|
|
- StatusCn string `orm:"-" json:"status_cn"` // varchar(255)
|
|
|
- PayWay string `orm:"column(pay_way);null" json:"pay_way"` // varchar(255)
|
|
|
- Source string `orm:"column(source);null" json:"source"` // varchar(255)
|
|
|
- Tel string `orm:"column(tel);null" json:"tel"` // varchar(255)
|
|
|
- Address string `orm:"column(address);null" json:"address"` // varchar(255)
|
|
|
- Contact string `orm:"column(contact);null" json:"contact"` // varchar(255)
|
|
|
- ExpressCompany string `orm:"column(express_company);null" json:"express_company"` // varchar(255)
|
|
|
- ExpressOrderNo string `orm:"column(express_order_no);null" json:"express_order_no"` // varchar(255)
|
|
|
- Remark string `orm:"column(remark);null" json:"remark"` // varchar(255)
|
|
|
- OrderRemark string `orm:"column(order_remark);null" json:"-"` // varchar(255)
|
|
|
- ExpressCode string `orm:"column(express_code);null" json:"express_code"` // varchar(255)
|
|
|
- Sign string `orm:"-" json:"sign"` // varchar(255)
|
|
|
- CTime int64 `orm:"-" json:"ctime"` // int(11)
|
|
|
- DTime int64 `orm:"-" json:"dtime"` // int(11)
|
|
|
- Freight int64 `orm:"column(freight);null" json:"freight"` // int(11)
|
|
|
- Depart int64 `orm:"column(depart)" json:"-"` // datetime
|
|
|
- DispatchTime time.Time `orm:"column(dispatch_time);null;type(datetime)" json:"dispatch_time"`
|
|
|
- ReceiveTime time.Time `orm:"column(receive_time);null;type(datetime)" json:"receive_time"`
|
|
|
- PaiedTime time.Time `orm:"column(paied_time);null;type(datetime)" json:"paied_time"` // int(11)
|
|
|
- CreatedAt time.Time `orm:"column(created_at);null;auto_now_add;type(datetime)" json:"-"` // datetime
|
|
|
- UpdatedAt time.Time `orm:"column(updated_at);null;auto_now;type(datetime)" json:"-"` // datetime
|
|
|
- WxUser *user_model.WxUser `orm:"-" json:"wx_user"`
|
|
|
- ProductList []*product_model.Product `orm:"-" json:"product_list"` // varchar(255)
|
|
|
+ Id int64 `orm:"column(id);pk" json:"id"` // int(11)
|
|
|
+ OrderId string `orm:"column(order_id)" json:"order_id"` // varchar(255)
|
|
|
+ OrderType int64 `orm:"column(order_type)" json:"order_type"`
|
|
|
+ WxUserId int64 `orm:"column(wx_user_id)" json:"wx_user_id"`
|
|
|
+ UserId int64 `orm:"column(user_id)" json:"user_id"` // int(11)
|
|
|
+ TotalPrice int64 `orm:"column(total_price)" json:"total_price"` // int(11)
|
|
|
+ PaiedPrice int64 `orm:"column(paied_price);null" json:"paied_price"` // int(11)
|
|
|
+ CouponPrice int64 `orm:"column(coupon_price);null" json:"coupon_price"` // int(11)
|
|
|
+ CentPrice int64 `orm:"column(cent_price);null" json:"cent_price"` // int(11)
|
|
|
+ BuyPrice int64 `orm:"column(buy_price);null" json:"-"` // int(11)
|
|
|
+ Count int64 `orm:"column(count);null" json:"count"` // int(11)
|
|
|
+ PaiedAt int64 `orm:"column(paied_at);null" json:"paied_at"` // int(11)
|
|
|
+ TradeNo string `orm:"column(trade_no);null" json:"trade_no"` // varchar(255)
|
|
|
+ Status string `orm:"column(status);null" json:"status"` // varchar(255)
|
|
|
+ StatusCn string `orm:"-" json:"status_cn"` // varchar(255)
|
|
|
+ PayWay string `orm:"column(pay_way);null" json:"pay_way"` // varchar(255)
|
|
|
+ Source string `orm:"column(source);null" json:"source"` // varchar(255)
|
|
|
+ Tel string `orm:"column(tel);null" json:"tel"` // varchar(255)
|
|
|
+ Address string `orm:"column(address);null" json:"address"` // varchar(255)
|
|
|
+ Contact string `orm:"column(contact);null" json:"contact"` // varchar(255)
|
|
|
+ ExpressCompany string `orm:"column(express_company);null" json:"express_company"` // varchar(255)
|
|
|
+ ExpressOrderNo string `orm:"column(express_order_no);null" json:"express_order_no"` // varchar(255)
|
|
|
+ Remark string `orm:"column(remark);null" json:"remark"` // varchar(255)
|
|
|
+ OrderRemark string `orm:"column(order_remark);null" json:"-"` // varchar(255)
|
|
|
+ ExpressCode string `orm:"column(express_code);null" json:"express_code"` // varchar(255)
|
|
|
+ Sign string `orm:"-" json:"sign"` // varchar(255)
|
|
|
+ CTime int64 `orm:"-" json:"ctime"` // int(11)
|
|
|
+ DTime int64 `orm:"-" json:"dtime"` // int(11)
|
|
|
+ Freight int64 `orm:"column(freight);null" json:"freight"` // int(11)
|
|
|
+ Depart int64 `orm:"column(depart)" json:"-"` // datetime
|
|
|
+ DispatchTime time.Time `orm:"column(dispatch_time);null;type(datetime)" json:"dispatch_time"`
|
|
|
+ ReceiveTime time.Time `orm:"column(receive_time);null;type(datetime)" json:"receive_time"`
|
|
|
+ PaiedTime time.Time `orm:"column(paied_time);null;type(datetime)" json:"paied_time"` // int(11)
|
|
|
+ CreatedAt time.Time `orm:"column(created_at);null;auto_now_add;type(datetime)" json:"-"` // datetime
|
|
|
+ UpdatedAt time.Time `orm:"column(updated_at);null;auto_now;type(datetime)" json:"-"` // datetime
|
|
|
+ WxUser *user_model.WxUser `orm:"-" json:"wx_user"`
|
|
|
+ ProductList []*OrderDetail `orm:"-" json:"product_list"` // varchar(255)
|
|
|
}
|
|
|
|
|
|
func (self *Order) TableName() string {
|