chart_info_log.go 804 B

123456789101112131415161718192021222324252627282930
  1. package data_manage
  2. import (
  3. "eta_gn/eta_api/global"
  4. "time"
  5. )
  6. type ChartInfoLog struct {
  7. ChartInfoLogId int `orm:"column(chart_info_log_id);pk" gorm:"primaryKey" `
  8. ChartInfoId int `description:"图表id"`
  9. ChartName string `description:"来源名称"`
  10. ChartClassifyId int `description:"图表分类id"`
  11. SysUserId int
  12. SysUserRealName string
  13. UniqueCode string `description:"图表唯一编码"`
  14. CreateTime time.Time
  15. Content string `description:"内容"`
  16. Status string `description:"状态"`
  17. Method string `description:"执行方法"`
  18. }
  19. func AddChartInfoLog(item *ChartInfoLog) (lastId int64, err error) {
  20. err = global.DmSQL["data"].Create(item).Error
  21. if err != nil {
  22. return
  23. }
  24. lastId = int64(item.ChartInfoLogId)
  25. return
  26. }