edb_info_log.go 799 B

12345678910111213141516171819202122232425262728
  1. package data_manage
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type EdbInfoLog struct {
  7. EdbInfoLogId int `orm:"column(edb_info_log_id);pk"`
  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. o := orm.NewOrmUsingDB("data")
  23. lastId, err = o.Insert(item)
  24. return
  25. }