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.
48 lines
3.4 KiB
48 lines
3.4 KiB
package goods
|
|
|
|
import service "src/module/service"
|
|
import skuPrice "src/module/skuPrice"
|
|
import coupon "src/module/coupon"
|
|
|
|
func (Goods) TableName() string {
|
|
return "goods"
|
|
}
|
|
|
|
// Product 结构体表示产品信息
|
|
type Goods struct {
|
|
ID int `json:"id"` // 产品ID
|
|
Type string `json:"type"` // 产品类型
|
|
Title string `json:"title"` // 产品标题
|
|
Subtitle string `json:"subtitle"` // 产品副标题
|
|
Weigh int `json:"weigh"` // 产品权重
|
|
CategoryIDs string `json:"category_ids"` // 类别ID
|
|
Image string `json:"image"` // 产品图片
|
|
Images []string `json:"images"` // 产品图片数组
|
|
Params []string `json:"params"` // 产品参数
|
|
Content string `json:"content"` // 产品内容
|
|
Price string `json:"price"` // 产品价格
|
|
OriginalPrice string `json:"original_price"` // 产品原价
|
|
IsSKU int `json:"is_sku"` // 是否有SKU
|
|
Likes int `json:"likes"` // 喜欢数
|
|
Views int `json:"views"` // 浏览数
|
|
Sales int `json:"sales"` // 销售数
|
|
ShowSales int `json:"show_sales"` // 展示销售数
|
|
ServiceIDs string `json:"service_ids"` // 服务ID
|
|
DispatchType string `json:"dispatch_type"` // 派送类型
|
|
DispatchIDs string `json:"dispatch_ids"` // 派送ID
|
|
DeleteTime interface{} `json:"deletetime"` // 删除时间
|
|
Activity interface{} `json:"activity"` // 活动
|
|
ActivityType interface{} `json:"activity_type"` // 活动类型
|
|
Buyers []string `json:"buyers"` // 购买者列表
|
|
SKUPrice []skuPrice.SKUPrice `json:"sku_price"` // SKU价格列表
|
|
Stock int `json:"stock"` // 库存
|
|
ActivityDiscounts []string `json:"activity_discounts"` // 活动折扣列表
|
|
ActivityDiscountsTypes string `json:"activity_discounts_types"` // 活动折扣类型
|
|
ActivityDiscountsTags []string `json:"activity_discounts_tags"` // 活动折扣标签
|
|
Favorite interface{} `json:"favorite"` // 收藏
|
|
DispatchTypeArr []string `json:"dispatch_type_arr"` // 派送类型数组
|
|
Service []service.Service `json:"service"` // 服务列表
|
|
SKU []string `json:"sku"` // SKU列表
|
|
Coupons []coupon.Coupon `json:"coupons"` // 优惠券列表
|
|
}
|