53 lines
1.4 KiB
Go
53 lines
1.4 KiB
Go
package model
|
|
|
|
import (
|
|
"math"
|
|
)
|
|
|
|
const (
|
|
DefPageSize = 50
|
|
UnlimitedPageSize = math.MaxInt32
|
|
)
|
|
|
|
type ShortSkuInfo struct {
|
|
SkuID int `orm:"column(sku_id)" json:"skuID,omitempty"`
|
|
SkuShopPrice int `json:"skuShopPrice"`
|
|
SkuSalePrice int `json:"skuSalePrice"`
|
|
SkuEarningPrice int `json:"skuEarningPrice,omitempty"`
|
|
SkuCount2 int `json:"skuCount2"`
|
|
SkuName string `orm:"size(255)" json:"skuName"`
|
|
}
|
|
|
|
type GoodsOrderCountInfo struct {
|
|
LockStatus int `json:"lockStatus"`
|
|
Status int `json:"status"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type SkuMetaInfo struct {
|
|
Units []string `json:"units"`
|
|
SpecUnits []string `json:"specUnits"`
|
|
}
|
|
|
|
type PagedInfo struct {
|
|
TotalCount int `json:"totalCount"`
|
|
Data interface{} `json:"data"`
|
|
}
|
|
|
|
type ProductInfo struct {
|
|
OriginalName string `json:"originalName"`
|
|
OriginalSpec string `json:"originalSpec"`
|
|
Name string `json:"name"`
|
|
Img string `json:"img"`
|
|
ImgList []string `json:"imgList"`
|
|
SpecQuality int `json:"specQuality"`
|
|
SpecUnit string `json:"specUnit"`
|
|
Unit string `json:"unit"`
|
|
Weight float32 `json:"weight"`
|
|
Price int `json:"price"`
|
|
Categories []string `json:"categories"`
|
|
ManName string `json:"manName"` // 生产商
|
|
BrandName string `json:"brandName"`
|
|
UpcCode string `json:"upcCode"`
|
|
}
|