teleconference.go 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package teleconference
  2. import (
  3. "time"
  4. )
  5. // Teleconference 电话会
  6. type Teleconference struct {
  7. TeleconferenceID uint64 `gorm:"primaryKey;column:teleconference_id;type:bigint(20) unsigned;not null" json:"-"` // 电话会id
  8. TeleconferenceTitle string `gorm:"index:teleconference_title;column:teleconference_title;type:varchar(32)" json:"teleconferenceTitle"` // 电话会标题
  9. Type string `gorm:"index:type;column:type;type:varchar(30);not null" json:"type"` // 电话会类型
  10. Speaker string `gorm:"column:speaker;type:varchar(30)" json:"speaker"`
  11. Telephone string `gorm:"column:telephone;type:varchar(30)" json:"telephone"` // 拨入电话
  12. Password string `gorm:"column:password;type:varchar(30)" json:"password"` // 参会人密码
  13. StartTime time.Time `gorm:"column:start_time;type:datetime" json:"startTime"` // 会议开始时间
  14. EndTime time.Time `gorm:"column:end_time;type:datetime" json:"endTime"` // 会议结束时间
  15. ReferResearchReportID int64 `gorm:"column:refer_research_report_id;type:bigint(20)" json:"referResearchReportId"` // 关联研报id
  16. Enabled int8 `gorm:"index:enabled;column:enabled;type:tinyint(1);default:1" json:"enabled"` // 是否删除,1表示已删除,0表示未删除
  17. CreatedTime time.Time `gorm:"index:created_time;column:created_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createdTime"` // 创建时间
  18. LastUpdatedTime time.Time `gorm:"index:last_updated_time;column:last_updated_time;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"lastUpdatedTime"`
  19. ReportPermissionID int `gorm:"column:report_permission_id;type:int(10);default:1" json:"reportPermissionId"` // 权限id,用来查询分类
  20. SingaporeTelephone string `gorm:"column:singapore_telephone;type:varchar(30)" json:"singaporeTelephone"` // 新加坡拨入电话
  21. VideoURL string `gorm:"column:video_url;type:varchar(500)" json:"videoUrl"` // 音频文件URL
  22. VideoName string `gorm:"column:video_name;type:varchar(125);default:''" json:"videoName"` // 音频文件名称
  23. VideoPlaySeconds string `gorm:"column:video_play_seconds;type:varchar(255);default:''" json:"videoPlaySeconds"` // 音频播放时长
  24. Remark string `gorm:"column:remark;type:varchar(255);default:''" json:"remark"` // 简介
  25. HkTelephone string `gorm:"column:hk_telephone;type:varchar(30)" json:"hkTelephone"` // 香港拨入电话
  26. }
  27. // TableName get sql table name.获取数据库表名
  28. func (m *Teleconference) TableName() string {
  29. return "teleconference"
  30. }
  31. // TeleconferenceColumns get sql column name.获取数据库列名
  32. var TeleconferenceColumns = struct {
  33. TeleconferenceID string
  34. TeleconferenceTitle string
  35. Type string
  36. Speaker string
  37. Telephone string
  38. Password string
  39. StartTime string
  40. EndTime string
  41. ReferResearchReportID string
  42. Enabled string
  43. CreatedTime string
  44. LastUpdatedTime string
  45. ReportPermissionID string
  46. SingaporeTelephone string
  47. VideoURL string
  48. VideoName string
  49. VideoPlaySeconds string
  50. Remark string
  51. HkTelephone string
  52. }{
  53. TeleconferenceID: "teleconference_id",
  54. TeleconferenceTitle: "teleconference_title",
  55. Type: "type",
  56. Speaker: "speaker",
  57. Telephone: "telephone",
  58. Password: "password",
  59. StartTime: "start_time",
  60. EndTime: "end_time",
  61. ReferResearchReportID: "refer_research_report_id",
  62. Enabled: "enabled",
  63. CreatedTime: "created_time",
  64. LastUpdatedTime: "last_updated_time",
  65. ReportPermissionID: "report_permission_id",
  66. SingaporeTelephone: "singapore_telephone",
  67. VideoURL: "video_url",
  68. VideoName: "video_name",
  69. VideoPlaySeconds: "video_play_seconds",
  70. Remark: "remark",
  71. HkTelephone: "hk_telephone",
  72. }