GoodsSku.go 1.1 KB

12345678910111213141516171819202122
  1. package domain
  2. import "fmt"
  3. // GoodsSku 商品规格
  4. type GoodsSku struct {
  5. Id int `xorm:"'id'" json:"id"`
  6. SkuImage string `xorm:"'sku_image'" json:"sku_image"`
  7. SkuName string `xorm:"'sku_name'" json:"sku_name"`
  8. Price float64 `xorm:"'price'" json:"price"`
  9. HistoricalPrices float64 `xorm:"'historical_prices'" json:"historical_prices"`
  10. InventoryNumber int `xorm:"'inventory_number'" json:"inventory_number"`
  11. CommodityAreaId int `xorm:"'commodity_area_id'" json:"commodity_area_id"`
  12. GoodsId int `xorm:"'goods_id'" json:"goods_id"`
  13. CreateBy string `xorm:"'create_by'" json:"create_by"`
  14. CreateTime string `xorm:"'create_time'" json:"create_time"`
  15. }
  16. func (receiver GoodsSku) String() string {
  17. return fmt.Sprintf("GoodsSku{Id:%d, SkuImage:%s, SkuName:%s, Price:%f, HistoricalPrices:%f, InventoryNumber:%d, CommodityAreaId:%d, GoodsId:%d}",
  18. receiver.Id, receiver.SkuImage, receiver.SkuName, receiver.Price, receiver.HistoricalPrices, receiver.InventoryNumber, receiver.CommodityAreaId, receiver.GoodsId)
  19. }