request/operation.go
@@ -30,11 +30,12 @@
}
type OperationDetails struct {
   OperationId int             `json:"OperationId" gorm:"type:int;not null;comment:操作记录id"`        //操作id
   ProductId   string          `json:"productId" gorm:"type:varchar(191);not null;comment:产品id"`   //产品id
   ProductName string          `json:"productName" gorm:"type:varchar(255);not null;comment:产品名称"` //产品名称
   Amount      decimal.Decimal `json:"amount" gorm:"type:decimal(20,2);not null;comment:数量"`       //数量
   Unit        string          `json:"unit" gorm:"type:varchar(31);comment:单位"`
   OperationId int    `json:"OperationId" gorm:"type:int;not null;comment:操作记录id"`      //操作id
   ProductId   string `json:"productId" gorm:"type:varchar(191);not null;comment:产品id"` //产品id
   //ProductName string          `json:"productName" gorm:"type:varchar(255);not null;comment:产品名称"` //产品名称
   Amount decimal.Decimal `json:"amount" gorm:"type:decimal(20,2);not null;comment:数量"` //数量
   //Unit        string          `json:"unit" gorm:"type:varchar(31);comment:单位"`                    //单位
   //Product models.Material `json:"product" gorm:"foreignKey:ProductId;references:ID"`
}
type OperationList struct {