This commit is contained in:
laodaming
2023-09-20 15:28:57 +08:00
19 changed files with 583 additions and 63 deletions

View File

@@ -108,23 +108,51 @@ type OrderStatus struct {
// 订单商品
type OrderProduct struct {
Amount AmountInfo `json:"amount"` // 商品总价
ExpectedDeliveryTime string `json:"expected_delivery_time"` // 预计到货时间
Number int64 `json:"number"` // 商品数量
TotalPrice AmountInfo `json:"amount"` // 商品总价
ExpectedDeliveryTime time.Time `json:"expected_delivery_time"` // 预计到货时间
PurchaseQuantity int64 `json:"purchase_quantity"` // 购买数量
ProductID int64 `json:"product_id"` // 商品ID
ProductLogo string `json:"product_logo"` // 商品logo
ProductLogoResource *Resource `json:"product_logo_resource"` // 商品封面--资源详情
ProductName string `json:"product_name"` // 商品名称
ProductPrice AmountInfo `json:"product_price"` // 商品单价
ItemPrice AmountInfo `json:"product_price"` // 商品单价
ProductSnapshot map[string]interface{} `json:"product_snapshot"` // 商品快照
ShoppingCartSnapshot *FsShoppingCart `json:"shopping_cart_snapshot"` // 购物车快照
Unit string `json:"unit"` // 商品单位
DiyInformation *DiyInformation `json:"diy_information"`
FittingInfo *FittingInfo `json:"fitting_info"`
ProductCover string `json:"product_cover"` // 商品封面
ProductCoverMetadata map[string]interface{} `json:"product_cover_metadata"` // 商品封面
ProductSn string `json:"product_sn"` // 商品编码
SizeInfo *SizeInfo `json:"size_info"`
StepNum []int `json:"step_num"` // 阶梯数量
}
type SizeInfo struct {
SizeID int64 `json:"size_id"`
Capacity string `json:"capacity"`
Title TitleInfo `json:"title"`
}
type TitleInfo struct {
CM string `json:"cm"`
Inch string `json:"inch"`
}
// 资源详情
type Resource struct {
Metadata map[string]interface{} `json:"metadata"` // 资源额外
ResourceID string `json:"resource_id"` // 资源ID
ResourceType string `json:"resource_type"` // 资源类型
ResourceURL string `json:"resource_url"` // 资源地址
// 缩略图结构
type ProductCoverMetadata struct {
Height int64 `json:"height"` // 高度
ResourceID string `json:"resource_id"` // 资源ID
ResourceURL string `json:"resource_url"` // 资源链接
Width int64 `json:"width"` // 宽度
}
// DIY数据
type DiyInformation struct {
Address string `json:"address"` // 地址
Phone string `json:"phone"` // 电话
Qrcode string `json:"qrcode"` // 二维码
Slogan string `json:"slogan"` // slogan
Website string `json:"website"` // 网站
}
// 配件信息
type FittingInfo struct {
FittingJson int64 `json:"fitting_json"` // 配件id
FittingName string `json:"fitting_name"` // 配件名称
}