my_chart_log.go 593 B

12345678910111213141516171819202122232425
  1. package data_manage
  2. import (
  3. "github.com/rdlucklib/rdluck_tools/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.NewOrm()
  19. o.Using("data")
  20. lastId, err = o.Insert(item)
  21. return
  22. }