chart_variety.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package chart_variety
  2. import (
  3. "time"
  4. )
  5. // ChartVariety 图表品种表
  6. type ChartVariety struct {
  7. ChartVarietyID int `gorm:"primaryKey;column:chart_variety_id" json:"-"`
  8. ChartVarietyName string `gorm:"column:chart_variety_name" json:"chartVarietyName"` // 品种名称
  9. ChartVarietyNameEn string `gorm:"column:chart_variety_name_en" json:"chartVarietyNameEn"` // 品种名称(英文)
  10. SysUserID int `gorm:"column:sys_user_id" json:"sysUserId"` // 操作人id
  11. SysUserRealName string `gorm:"column:sys_user_real_name" json:"sysUserRealName"` // 操作人真实姓名
  12. ModifyTime time.Time `gorm:"column:modify_time" json:"modifyTime"` // 最近一次操作时间
  13. CreateTime time.Time `gorm:"column:create_time" json:"createTime"` // 创建时间
  14. }
  15. // TableName get sql table name.获取数据库表名
  16. func (m *ChartVariety) TableName() string {
  17. return "chart_variety"
  18. }
  19. // ChartVarietyColumns get sql column name.获取数据库列名
  20. var ChartVarietyColumns = struct {
  21. ChartVarietyID string
  22. ChartVarietyName string
  23. ChartVarietyNameEn string
  24. SysUserID string
  25. SysUserRealName string
  26. ModifyTime string
  27. CreateTime string
  28. }{
  29. ChartVarietyID: "chart_variety_id",
  30. ChartVarietyName: "chart_variety_name",
  31. ChartVarietyNameEn: "chart_variety_name_en",
  32. SysUserID: "sys_user_id",
  33. SysUserRealName: "sys_user_real_name",
  34. ModifyTime: "modify_time",
  35. CreateTime: "create_time",
  36. }