package goods

import (
	"spaceofcheng/services/models/model"
)

// 商品订单 - 制作状态
const (
	MAKESTATUS_NOTSTARTED = "not started"
	MAKESTATUS_DOING      = "doing"
	MAKESTATUS_FINISHED   = "finished"
	MAKESTATUS_CANCEL     = "cancel"
)

// SpecWithPrice 规格价格
type SpecWithPrice struct {
	model.TdSpec
	GoodsPrice string `xorm:"DECIMAL(8,2)"`
}

// GoodsWithSpec 含规格商品
type GoodsWithSpec struct {
	model.TaGoods
	Specs []SpecWithPrice
}

// GoodsWithPrice 含规格商品
type GoodsWithPrice struct {
	model.TaGoods     `xorm."extends"`
	model.TaGoodsSpec `xorm."extends"`
}

// OrdersWithGoods 订单列表
type OrdersWithGoods struct {
	model.TaGoodsOrders
	Goods []model.TaGoodsOrdersDetail
}
