- package godown
- import "server/global"
- type Cargo struct {
- global.GVA_MODEL
- GoodsId int `json:"goodsId" gorm:"comment:商品id"`
- Goods Goods `json:"goods" gorm:"foreignKey:GoodsId;references:id;"`
- BuyingPrice float64 `json:"buyingPrice" gorm:"comment:进货价"`
- Number int `json:"number" gorm:"comment:数量"`
- ManifestId int `json:"manifestId" gorm:"comment:货单id"`
- }
- func (Cargo) TableName() string {
- return "cargo"
- }
|