yb_activity.go 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. package yb_activity
  2. import (
  3. "time"
  4. )
  5. // YbActivity 弘则研小程序 活动表
  6. type YbActivity struct {
  7. ActivityID int `gorm:"primaryKey;column:activity_id;type:int(11);not null" json:"activityID"` // 活动ID
  8. FirstActivityTypeID int `gorm:"index:activity_type_id;column:first_activity_type_id;type:int(100);not null;default:0" json:"firstActivityTypeId"` // 第一级的活动类型ID
  9. FirstActivityTypeName string `gorm:"column:first_activity_type_name;type:varchar(30);not null;default:''" json:"firstActivityTypeName"` // 第一级的活动类型名称
  10. ActivityTypeID int `gorm:"column:activity_type_id;type:int(100);not null;default:0" json:"activityTypeId"` // 活动类型ID
  11. ActivityTypeName string `gorm:"column:activity_type_name;type:varchar(30);not null;default:''" json:"activityTypeName"` // 活动类型名称
  12. ActivityName string `gorm:"column:activity_name;type:text;not null" json:"activityName"` // 活动标题
  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. Speaker string `gorm:"column:speaker;type:varchar(255);not null;default:''" json:"speaker"` // 主讲人
  16. SpeakerHeadPic string `gorm:"column:speaker_head_pic;type:varchar(255);not null;default:''" json:"speakerHeadPic"` // 主讲人头像
  17. SpeakerBackgroundPic string `gorm:"column:speaker_background_pic;type:varchar(255);not null;default:''" json:"speakerBackgroundPic"` // 主讲人背景图
  18. MainlandTel string `gorm:"column:mainland_tel;type:varchar(255);not null;default:''" json:"mainlandTel"` // 大陆拨入
  19. HongKongTel string `gorm:"column:hong_kong_tel;type:varchar(255);not null;default:''" json:"hongKongTel"` // 香港拨入
  20. TaiwanTel string `gorm:"column:taiwan_tel;type:varchar(255);not null;default:''" json:"taiwanTel"` // 台湾拨入
  21. AmericaTel string `gorm:"column:america_tel;type:varchar(255);not null;default:''" json:"americaTel"` // 美国拨入
  22. SingaporeTel string `gorm:"column:singapore_tel;type:varchar(255);not null;default:''" json:"singaporeTel"` // 新加坡拨入
  23. ParticipationCode string `gorm:"column:participation_code;type:varchar(255);not null;default:''" json:"participationCode"` // 参会密码
  24. LinkParticipants string `gorm:"column:link_participants;type:longtext;not null" json:"linkParticipants"` // 参会链接
  25. IsLimitPeople int8 `gorm:"index:is_limit_people;column:is_limit_people;type:tinyint(4);not null;default:0" json:"isLimitPeople"` // 是否限制人数 1是,0否
  26. LimitPeopleNum int `gorm:"column:limit_people_num;type:int(9);not null;default:0" json:"limitPeopleNum"` // 限制人数数量
  27. ReportID int `gorm:"column:report_id;type:int(11);not null;default:0" json:"reportId"` // 报告链接所关联的文章ID
  28. ReportLink string `gorm:"column:report_link;type:varchar(255);not null;default:''" json:"reportLink"` // 报告链接
  29. ReportName string `gorm:"column:report_name;type:varchar(255);not null;default:''" json:"reportName"` // 报告标题
  30. City string `gorm:"column:city;type:varchar(255);not null;default:''" json:"city"` // 城市
  31. Address string `gorm:"column:address;type:varchar(255);not null;default:''" json:"address"` // 活动地址
  32. Remarks string `gorm:"column:remarks;type:text;not null" json:"remarks"` // 备注
  33. UserID int `gorm:"column:user_id;type:int(9);not null;default:0" json:"userId"` // 创建者id
  34. PublishStatus int8 `gorm:"index:publish_status;column:publish_status;type:tinyint(4);not null;default:0" json:"publishStatus"` // 发布状态,0未发布,1已发布
  35. IsSendWxMsg int8 `gorm:"column:is_send_wx_msg;type:tinyint(4);not null;default:0" json:"isSendWxMsg"` // 是否推送过会议提醒微信消息,未推送:0,已推送:1
  36. IsSendSalonWxMsg int8 `gorm:"column:is_send_salon_wx_msg;type:tinyint(4);not null;default:0" json:"isSendSalonWxMsg"` // 是否推送过沙龙提醒微信消息,未推送:0,已推送:1
  37. IsDelete int8 `gorm:"column:is_delete;type:tinyint(4);not null;default:0" json:"isDelete"` // 是否删除,0:未删除,1:已删除
  38. ModifyTime time.Time `gorm:"column:modify_time;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"modifyTime"` // 修改时间
  39. CreateTime time.Time `gorm:"index:create_time;column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"` // 创建时间
  40. IsNewReport int `gorm:"column:is_new_report;type:tinyint(4);not null;default:0" json:"isNewReport"` // 是否关联新报告:0-否 1-是
  41. }
  42. // TableName get sql table name.获取数据库表名
  43. func (m *YbActivity) TableName() string {
  44. return "yb_activity"
  45. }
  46. // YbActivityColumns get sql column name.获取数据库列名
  47. var YbActivityColumns = struct {
  48. ActivityID string
  49. FirstActivityTypeID string
  50. FirstActivityTypeName string
  51. ActivityTypeID string
  52. ActivityTypeName string
  53. ActivityName string
  54. StartTime string
  55. EndTime string
  56. Speaker string
  57. SpeakerHeadPic string
  58. SpeakerBackgroundPic string
  59. MainlandTel string
  60. HongKongTel string
  61. TaiwanTel string
  62. AmericaTel string
  63. SingaporeTel string
  64. ParticipationCode string
  65. LinkParticipants string
  66. IsLimitPeople string
  67. LimitPeopleNum string
  68. ReportID string
  69. ReportLink string
  70. ReportName string
  71. City string
  72. Address string
  73. Remarks string
  74. UserID string
  75. PublishStatus string
  76. IsSendWxMsg string
  77. IsSendSalonWxMsg string
  78. IsDelete string
  79. ModifyTime string
  80. CreateTime string
  81. IsNewReport string
  82. }{
  83. ActivityID: "activity_id",
  84. FirstActivityTypeID: "first_activity_type_id",
  85. FirstActivityTypeName: "first_activity_type_name",
  86. ActivityTypeID: "activity_type_id",
  87. ActivityTypeName: "activity_type_name",
  88. ActivityName: "activity_name",
  89. StartTime: "start_time",
  90. EndTime: "end_time",
  91. Speaker: "speaker",
  92. SpeakerHeadPic: "speaker_head_pic",
  93. SpeakerBackgroundPic: "speaker_background_pic",
  94. MainlandTel: "mainland_tel",
  95. HongKongTel: "hong_kong_tel",
  96. TaiwanTel: "taiwan_tel",
  97. AmericaTel: "america_tel",
  98. SingaporeTel: "singapore_tel",
  99. ParticipationCode: "participation_code",
  100. LinkParticipants: "link_participants",
  101. IsLimitPeople: "is_limit_people",
  102. LimitPeopleNum: "limit_people_num",
  103. ReportID: "report_id",
  104. ReportLink: "report_link",
  105. ReportName: "report_name",
  106. City: "city",
  107. Address: "address",
  108. Remarks: "remarks",
  109. UserID: "user_id",
  110. PublishStatus: "publish_status",
  111. IsSendWxMsg: "is_send_wx_msg",
  112. IsSendSalonWxMsg: "is_send_salon_wx_msg",
  113. IsDelete: "is_delete",
  114. ModifyTime: "modify_time",
  115. CreateTime: "create_time",
  116. IsNewReport: "is_new_report",
  117. }