|
@@ -35,17 +35,19 @@ func (NewGoodsType) TableName() string {
|
35
|
35
|
}
|
36
|
36
|
|
37
|
37
|
type GoodInfo struct {
|
38
|
|
- ID int64 `gorm:"column:id" json:"id" form:"id"`
|
39
|
|
- GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
|
40
|
|
- SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
|
41
|
|
- GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
|
42
|
|
- GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
|
43
|
|
- BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
|
44
|
|
- SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
|
45
|
|
- Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
46
|
|
- Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
47
|
|
- Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
48
|
|
- Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
|
|
38
|
+ ID int64 `gorm:"column:id" json:"id" form:"id"`
|
|
39
|
+ GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
|
|
40
|
+ SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
|
|
41
|
+ GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
|
|
42
|
+ GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
|
|
43
|
+ BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
|
|
44
|
+ SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
|
|
45
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
46
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
|
|
47
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
|
|
48
|
+ Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
|
|
49
|
+ Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
|
|
50
|
+
|
49
|
51
|
Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
|
50
|
52
|
ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
|
51
|
53
|
StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
|