You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1011 B

9 months ago
package response
import "time"
type PageResult struct {
List any `json:"list"`
Total int64 `json:"total"`
Page int `json:"page"`
PageSize int `json:"pageSize"`
}
type SelectListResult struct {
List any `json:"list"`
}
type Goods struct {
Id uint `json:"id"`
CreatedAt time.Time `gorm:"index" json:"createdAt"`
Title string `json:"title"` // 标题
Cover string `json:"cover"` // 封面图(未使用)
Images string `json:"images"` // 图片列表
RetailPrice float64 `json:"retail_price"` // 吊牌价(零售指导价)
PriceMin float64 `json:"price_min"` // 最低规格价格
PriceMax float64 `json:"price_max"` // 最高规格价格
Stock int64 `json:"stock"` // 总库存
Sales int64 `json:"sales"` // 总销售量
Sales30 int64 `json:"sales_30"` // 30天销售量
Tags string `json:"tags"` // 标签
StoreNo string `json:"store_no"`
}