package models import ( "time" ) type ReportGrant struct { GrantId int64 `gorm:"column:grant_id"` //`orm:"column(grant_id);pk;auto" description:"自增序号"` ReportId int64 `gorm:"column:report_id"` //`description:"report ID"` DepartmentId int64 `gorm:"column:department_id"` //`description:"授权部门id"` GrantAdminId int64 `gorm:"column:grant_admin_id"` //`description:"授权部门id"` CreateTime time.Time `gorm:"column:create_time"` //`orm:"auto_now_add;type(datetime)" description:"创建时间"` }