material.go 908 字节
package domain

// 物料
type Material struct {
	// 物料ID
	ProductMaterialId int `json:"productMaterialId"`
	// 物料名称 (最新数据需要查询物料表)
	MaterialName string `json:"materialName,omitempty"`
	// 物料类别  ‘南瓜饼串’、‘ 包装袋(空)’、‘包装袋(件数)’、装箱(件数)
	MaterialCategory string `json:"materialCategory,omitempty"`
}

// 物料类别
type MaterialCategory struct {
	//Id int `json:"id"`
	Category string `json:"category"`
}

// 物料属性
type MaterialAttribute struct {
	//Id int `json:"id"`
	Attribute string `json:"attribute"`
}

// 物料扩展数据
type MaterialExt struct {
	// 规格
	Specification string `json:"specification"`
	// 单位
	Unit string `json:"unit"`
	// 保质期 单位:天
	ExpiredDay int `json:"expiredDay"`
	// 备注
	Remark string `json:"remark"`
	// 来源 k3cloud
	Source string `json:"source"`
}