package data_manage import ( "eta_gn/eta_api/global" "time" ) type EdbInfoLog struct { EdbInfoLogId int `orm:"column(edb_info_log_id);pk" gorm:"primaryKey" ` EdbInfoId int SourceName string `description:"来源名称"` Source int `description:"来源id"` EdbCode string `description:"指标编码"` EdbName string `description:"指标名称"` ClassifyId int `description:"分类id"` SysUserId int SysUserRealName string CreateTime time.Time Content string `description:"内容"` Status string `description:"状态"` Method string `description:"执行方法"` } func AddEdbInfoLog(item *EdbInfoLog) (lastId int64, err error) { err = global.DmSQL["data"].Create(item).Error if err != nil { return } lastId = int64(item.EdbInfoLogId) return }