package domain import "fmt" // GoodsSku 商品规格 type GoodsSku struct { Id int `xorm:"'id'" json:"id"` SkuImage string `xorm:"'sku_image'" json:"sku_image"` SkuName string `xorm:"'sku_name'" json:"sku_name"` Price float64 `xorm:"'price'" json:"price"` HistoricalPrices float64 `xorm:"'historical_prices'" json:"historical_prices"` InventoryNumber int `xorm:"'inventory_number'" json:"inventory_number"` CommodityAreaId int `xorm:"'commodity_area_id'" json:"commodity_area_id"` GoodsId int `xorm:"'goods_id'" json:"goods_id"` CreateBy string `xorm:"'create_by'" json:"create_by"` CreateTime string `xorm:"'create_time'" json:"create_time"` } func (receiver GoodsSku) String() string { return fmt.Sprintf("GoodsSku{Id:%d, SkuImage:%s, SkuName:%s, Price:%f, HistoricalPrices:%f, InventoryNumber:%d, CommodityAreaId:%d, GoodsId:%d}", receiver.Id, receiver.SkuImage, receiver.SkuName, receiver.Price, receiver.HistoricalPrices, receiver.InventoryNumber, receiver.CommodityAreaId, receiver.GoodsId) }