chart_info_log.go 748 B

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