From 02b1aff77e4e4496a920999113f6919413c28548 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 2 Jul 2024 17:53:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=96=E9=9F=B3=E6=9C=AC=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- md/csjp/life.go | 82 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 md/csjp/life.go diff --git a/md/csjp/life.go b/md/csjp/life.go new file mode 100644 index 0000000..5569886 --- /dev/null +++ b/md/csjp/life.go @@ -0,0 +1,82 @@ +package csjp + +type CsjpOrder struct { + OrderId string `json:"order_id"` + Status int `json:"status"` + PayAmount int `json:"pay_amount"` + PayTime int `json:"pay_time"` + UpdateTime int `json:"update_time"` + PoiInfo struct { + Name string `json:"name"` + PoiId int64 `json:"poi_id"` + } `json:"poi_info"` + RefundAmount int `json:"refund_amount"` + RootOrderId string `json:"root_order_id"` + ProductList []struct { + ProductId int64 `json:"product_id"` + SkuId int64 `json:"sku_id"` + Name string `json:"name"` + Count int `json:"count"` + Img string `json:"img"` + } `json:"product_list"` + MediaId int `json:"media_id"` + AppId int `json:"app_id"` + Pid string `json:"pid"` + CommandExternalInfo string `json:"command_external_info"` + CommissionRate int `json:"commission_rate"` + CommissionAmount int `json:"commission_amount"` + SettleFinish bool `json:"settle_finish"` + SettleAmount int `json:"settle_amount"` +} +type CsjpProductList struct { + Id int64 `json:"id"` + Name string `json:"name"` + Type int `json:"type"` + ProductImg struct { + UrlList []string `json:"url_list"` + } `json:"product_img"` + ProductItemDetail []struct { + Title string `json:"title"` + ItemList []struct { + Name string `json:"name"` + Price int `json:"price"` + Count int `json:"count"` + Unit string `json:"unit"` + } `json:"item_list"` + } `json:"product_item_detail,omitempty"` + SaleTags []string `json:"sale_tags"` + Price int `json:"price"` + OriginPrice int `json:"origin_price"` + MarketingInfo struct { + SeckillInfo struct { + Status int `json:"status"` + StartTime int `json:"start_time"` + EndTime int `json:"end_time"` + DiscountAmount int `json:"discount_amount"` + } `json:"seckill_info,omitempty"` + } `json:"marketing_info"` + BlurredSoldCount string `json:"blurred_sold_count"` + SellOut bool `json:"sell_out"` + FirstCategory struct { + Id int `json:"id"` + Name string `json:"name"` + } `json:"first_category"` + SecondCategory struct { + Id int `json:"id"` + Name string `json:"name"` + } `json:"second_category"` + ThirdCategory struct { + Id int `json:"id"` + Name string `json:"name"` + } `json:"third_category"` + SoldTimeBegin int `json:"sold_time_begin"` + SoldTimeEnd int `json:"sold_time_end"` + NearestPoi struct { + Name string `json:"name"` + Distance float64 `json:"distance"` + } `json:"nearest_poi"` + PoiCount int `json:"poi_count"` + DyH5Url string `json:"dy_h5_url"` + CommissionRate int `json:"commission_rate"` + CommissionAmount int `json:"commission_amount"` +}