my_chart_log.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package my_chart_log
  2. import (
  3. "time"
  4. )
  5. // MyChartLog 我的图表操作日志
  6. type MyChartLog struct {
  7. MyChartLogId int `gorm:"primaryKey;column:my_chart_log_id;type:int(11);not null" json:"myChartLogId"`
  8. MyChartId int `gorm:"index:idx_my_chart_id;column:my_chart_id;type:int(11)" json:"myChartId"`
  9. ChartInfoId int `gorm:"column:chart_info_id;type:int(11)" json:"chartInfoId"`
  10. SysUserId int `gorm:"column:sys_user_id;type:int(11)" json:"sysUserId"`
  11. CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"createTime"`
  12. SysUserRealName string `gorm:"column:sys_user_real_name;type:varchar(50);default:''" json:"sysUserRealName"`
  13. Content string `gorm:"column:content;type:text" json:"content"`
  14. Status string `gorm:"column:status;type:varchar(50);default:''" json:"status"`
  15. Method string `gorm:"column:method;type:varchar(255);default:''" json:"method"`
  16. }
  17. // TableName get sql table name.获取数据库表名
  18. func (m *MyChartLog) TableName() string {
  19. return "my_chart_log"
  20. }
  21. // MyChartLogColumns get sql column name.获取数据库列名
  22. var MyChartLogColumns = struct {
  23. MyChartLogID string
  24. MyChartID string
  25. ChartInfoID string
  26. SysUserID string
  27. CreateTime string
  28. SysUserRealName string
  29. Content string
  30. Status string
  31. Method string
  32. }{
  33. MyChartLogID: "my_chart_log_id",
  34. MyChartID: "my_chart_id",
  35. ChartInfoID: "chart_info_id",
  36. SysUserID: "sys_user_id",
  37. CreateTime: "create_time",
  38. SysUserRealName: "sys_user_real_name",
  39. Content: "content",
  40. Status: "status",
  41. Method: "method",
  42. }