my_chart_log.go 588 B

123456789101112131415161718192021222324
  1. package data_manage
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type MyChartLog struct {
  7. MyChartLogId int `orm:"column(my_chart_log_id);pk"`
  8. MyChartId int
  9. ChartInfoId int `description:"图表id"`
  10. SysUserId int
  11. SysUserRealName string
  12. CreateTime time.Time
  13. Content string `description:"内容"`
  14. Status string `description:"状态"`
  15. Method string `description:"执行方法"`
  16. }
  17. func AddMyChartLog(item *MyChartLog) (lastId int64, err error) {
  18. o := orm.NewOrmUsingDB("data")
  19. lastId, err = o.Insert(item)
  20. return
  21. }