访问京东API,获取结账必要信息。

This commit is contained in:
lyb
2018-08-09 16:37:38 +08:00
parent c430b997f9
commit 0ef674c072
4 changed files with 89 additions and 3 deletions

View File

@@ -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 //门店商品促销支出
}
// 同样商品在一个订单中可能重复出现(比如搞活动时,相同商品价格不一样,第一个有优惠)