edb_info_log.go 854 B

123456789101112131415161718192021222324252627282930313233
  1. package data_manage
  2. import (
  3. "eta_gn/eta_api/global"
  4. "time"
  5. )
  6. type EdbInfoLog struct {
  7. EdbInfoLogId int `orm:"column(edb_info_log_id);pk" gorm:"primaryKey" `
  8. EdbInfoId int
  9. SourceName string `description:"来源名称"`
  10. Source int `description:"来源id"`
  11. EdbCode string `description:"指标编码"`
  12. EdbName string `description:"指标名称"`
  13. ClassifyId int `description:"分类id"`
  14. SysUserId int
  15. SysUserRealName string
  16. CreateTime time.Time
  17. Content string `description:"内容"`
  18. Status string `description:"状态"`
  19. Method string `description:"执行方法"`
  20. }
  21. func AddEdbInfoLog(item *EdbInfoLog) (lastId int64, err error) {
  22. err = global.DmSQL["data"].Create(item).Error
  23. if err != nil {
  24. return
  25. }
  26. lastId = int64(item.EdbInfoLogId)
  27. return
  28. }