package model type Oilcard struct { Id string `gorm:"column:id"` PastureId string `gorm:"column:pastureId"` DepartmentName string `gorm:"column:departmentName"` DepartmentId string `gorm:"column:departmentId"` CardCode string `gorm:"column:cardCode"` CardType string `gorm:"column:cardType"` CardAmount string `gorm:"column:cardAmount"` EqId string `gorm:"column:eqId"` EqCode string `gorm:"column:eqCode"` EmpId string `gorm:"column:empId"` Enable string `gorm:"column:enable"` LastcardAmount string `gorm:"column:lastcardAmount"` OilType string `gorm:"column:oilType"` OilName string `gorm:"column:oilName"` } func (t Oilcard) TableName() string { return "oilcard" }