|
@@ -1,19 +1,27 @@
|
|
package mysql
|
|
package mysql
|
|
|
|
|
|
-import orm "duoduo/database"
|
|
|
|
|
|
+import (
|
|
|
|
+ orm "duoduo/database"
|
|
|
|
+ "github.com/shopspring/decimal"
|
|
|
|
+)
|
|
|
|
|
|
type Order struct {
|
|
type Order struct {
|
|
- CreateTime string `gorm:"column:create_time" json:"createTime"`
|
|
|
|
- GoodsName string `gorm:"column:goods_name" json:"goodsName"`
|
|
|
|
- GoodsThumbnailURL string `gorm:"column:goods_thumbnail_url" json:"goodsThumbnailUrl"`
|
|
|
|
- JSONData string `gorm:"column:json_data" json:"jsonData"`
|
|
|
|
- OrderGroupSuccessTime string `gorm:"column:order_group_success_time" json:"orderGroupSuccessTime"`
|
|
|
|
- OrderID string `gorm:"column:order_id" json:"orderId"`
|
|
|
|
- OrderStatus int `gorm:"column:order_status" json:"orderStatus"`
|
|
|
|
- OrderStatusDesc string `gorm:"column:order_status_desc" json:"orderStatusDesc"`
|
|
|
|
- PID string `gorm:"column:p_id" json:"pId"`
|
|
|
|
- PromotionAmount int `gorm:"column:promotion_amount" json:"promotionAmount"`
|
|
|
|
- UpdateTime string `gorm:"column:update_time" json:"updateTime"`
|
|
|
|
|
|
+ CreateTime string `gorm:"column:create_time" json:"createTime"`
|
|
|
|
+ GoodsName string `gorm:"column:goods_name" json:"goodsName"`
|
|
|
|
+ GoodsThumbnailURL string `gorm:"column:goods_thumbnail_url" json:"goodsThumbnailUrl"`
|
|
|
|
+ JSONData string `gorm:"column:json_data" json:"jsonData"`
|
|
|
|
+ OrderGroupSuccessTime string `gorm:"column:order_group_success_time" json:"orderGroupSuccessTime"`
|
|
|
|
+ OrderID string `gorm:"column:order_id" json:"orderId"`
|
|
|
|
+ OrderStatus int `gorm:"column:order_status" json:"orderStatus"`
|
|
|
|
+ OrderStatusDesc string `gorm:"column:order_status_desc" json:"orderStatusDesc"`
|
|
|
|
+ PID string `gorm:"column:p_id" json:"pId"`
|
|
|
|
+ PromotionAmount int64 `gorm:"column:promotion_amount" json:"promotionAmount"`
|
|
|
|
+ UpdateTime string `gorm:"column:update_time" json:"updateTime"`
|
|
|
|
+ OrderCreateTime string `gorm:"column:order_create_time" json:"orderCreateTime"`
|
|
|
|
+ OrderSn string `gorm:"column:order_sn" json:"orderSn"`
|
|
|
|
+ Amount decimal.Decimal `gorm:"column:amount" json:"amount"`
|
|
|
|
+ Amount1 decimal.Decimal `gorm:"column:amount_1" json:"amount1"`
|
|
|
|
+ Amount2 decimal.Decimal `gorm:"column:amount_2" json:"amount2"`
|
|
}
|
|
}
|
|
|
|
|
|
// TableName sets the insert table name for this struct type
|
|
// TableName sets the insert table name for this struct type
|