|
|
|
|
@ -1,6 +1,9 @@
|
|
|
|
|
package goods
|
|
|
|
|
|
|
|
|
|
import service "src/module/service"
|
|
|
|
|
import (
|
|
|
|
|
"github.com/towgo/towgo/dao/basedboperat"
|
|
|
|
|
service "src/module/service"
|
|
|
|
|
)
|
|
|
|
|
import skuPrice "src/module/skuPrice"
|
|
|
|
|
import coupon "src/module/coupon"
|
|
|
|
|
|
|
|
|
|
@ -34,14 +37,18 @@ type Goods struct {
|
|
|
|
|
Activity interface{} `json:"activity"` // 活动
|
|
|
|
|
ActivityType interface{} `json:"activity_type"` // 活动类型
|
|
|
|
|
Buyers []string `json:"buyers"` // 购买者列表
|
|
|
|
|
SKUPrice []skuPrice.SKUPrice `json:"sku_price"` // SKU价格列表
|
|
|
|
|
SKUPrice []skuPrice.SKUPrice `json:"sku_price" xorm:"-"` // 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"` // 服务列表
|
|
|
|
|
Service []service.Service `json:"service" xorm:"-"` // 服务列表
|
|
|
|
|
SKU []string `json:"sku"` // SKU列表
|
|
|
|
|
Coupons []coupon.Coupon `json:"coupons"` // 优惠券列表
|
|
|
|
|
Coupons []coupon.Coupon `json:"coupons" xorm:"-"` // 优惠券列表
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (good *Goods) AfterQuery(session basedboperat.DbTransactionSession) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|