访问京东API,获取结账必要信息。
This commit is contained in:
@@ -44,8 +44,15 @@ type GoodsOrder struct {
|
||||
OrderFinishedAt time.Time `orm:"type(datetime)"`
|
||||
StatusTime time.Time `orm:"type(datetime)"` // last status time
|
||||
ModelTimeInfo
|
||||
OriginalData string `orm:"type(text)"`
|
||||
Skus []*OrderSku `orm:"-"`
|
||||
OriginalData string `orm:"type(text)"`
|
||||
Skus []*OrderSku `orm:"-"`
|
||||
SkuTotalPmFee int64 //门店商品促销总支出
|
||||
OrderPmFee int64 //门店订单促销支出
|
||||
SkuTotalPmSubsidy int64 //平台商品促销总补贴
|
||||
OrderPmSubsidy int64 //平台订单促销补贴
|
||||
BoxFee int64 //餐盒费
|
||||
PlatformFeeRate int16 //平台费
|
||||
BillStoreFreightFee int64 //需要回调,门店所承担的运费
|
||||
}
|
||||
|
||||
func (o *GoodsOrder) TableUnique() [][]string {
|
||||
@@ -69,6 +76,8 @@ type OrderSku struct {
|
||||
SkuType int // 当前如果为gift就为1,否则缺省为0
|
||||
PromotionType int // todo 当前是用于记录京东的PromotionType(生成jxorder用),没有做转换
|
||||
OrderCreatedAt time.Time `orm:"type(datetime);index"` // 分区考虑
|
||||
SkuPmSubsidy int64 //平台商品活动补贴
|
||||
SkuPmFee int64 //门店商品促销支出
|
||||
}
|
||||
|
||||
// 同样商品在一个订单中可能重复出现(比如搞活动时,相同商品价格不一样,第一个有优惠)
|
||||
|
||||
Reference in New Issue
Block a user