package model type Diesel struct { Id int64 `gorm:"column:id"` PastureId int64 `gorm:"column:pastureId"` DeptId int64 `gorm:"column:deptId"` EqId int64 `gorm:"column:eqId"` EqCode string `gorm:"column:eqCode"` OilcardId int64 `gorm:"column:oilcardId"` CardNumber string `gorm:"column:cardNumber"` OilClass string `gorm:"column:oilClass"` OilAmount string `gorm:"column:oilAmount"` NowPrice float64 `gorm:"column:nowPrice"` Price string `gorm:"column:price"` EmpId string `gorm:"column:empId"` InputId int64 `gorm:"column:inputId"` SelTime string `gorm:"column:selTime"` Note string `gorm:"column:note"` OilType int64 `gorm:"column:oilType"` OilName string `gorm:"column:oilName"` DieselCode string `gorm:"column:dieselCode"` Sort int64 `gorm:"column:sort"` ProofCode string `gorm:"column:ProofCode"` } func (t Diesel) TableName() string { return "diesel" } type DieselOff struct { Id int64 `gorm:"column:id"` PastureId int64 `gorm:"column:pastureId"` DeptId int64 `gorm:"column:deptId"` EqId int64 `gorm:"column:eqId"` EqCode string `gorm:"column:eqCode"` OilcardId int64 `gorm:"column:oilcardId"` CardNumber string `gorm:"column:cardNumber"` OilClass string `gorm:"column:oilClass"` OilAmount string `gorm:"column:oilAmount"` NowPrice float64 `gorm:"column:nowPrice"` Price string `gorm:"column:price"` EmpId string `gorm:"column:empId"` InputId int64 `gorm:"column:inputId"` SelTime string `gorm:"column:selTime"` Note string `gorm:"column:note"` OilType int64 `gorm:"column:oilType"` OilName string `gorm:"column:oilName"` DieselCode string `gorm:"column:dieselCode"` Sort int64 `gorm:"column:sort"` ProofCode string `gorm:"column:ProofCode"` } func (t DieselOff) TableName() string { return "diesel_off" }