package data_manage import ( "eta_gn/eta_api/global" "time" ) type MyChartLog struct { MyChartLogId int `orm:"column(my_chart_log_id);pk" gorm:"primaryKey" ` MyChartId int ChartInfoId int `description:"图表id"` SysUserId int SysUserRealName string CreateTime time.Time Content string `description:"内容"` Status string `description:"状态"` Method string `description:"执行方法"` } func AddMyChartLog(item *MyChartLog) (lastId int64, err error) { err = global.DmSQL["data"].Create(item).Error return }