|
@@ -20,6 +20,7 @@ type YbRoadVideo struct {
|
|
|
CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"` // 创建时间
|
|
|
ModifyTime time.Time `gorm:"column:modify_time;type:datetime;default:CURRENT_TIMESTAMP" json:"modifyTime"` // 更新时间
|
|
|
DeleteTime time.Time `gorm:"column:delete_time;type:datetime" json:"deleteTime"`
|
|
|
+ ReportID int `gorm:"column:report_id;type:int(10) unsigned;not null;default:0" json:"reportId"` // 绑定的报告ID
|
|
|
}
|
|
|
|
|
|
// TableName get sql table name.获取数据库表名
|
|
@@ -29,20 +30,21 @@ func (r *YbRoadVideo) TableName() string {
|
|
|
|
|
|
// YbCommunityVideoColumns get sql column name.获取数据库列名
|
|
|
var YbRoadVideoColumns = struct {
|
|
|
- RoadVideoID string
|
|
|
- Title string
|
|
|
- ChartPermissionIds string
|
|
|
- CoverImgURL string
|
|
|
- VideoURL string
|
|
|
- VideoSeconds string
|
|
|
- PublishState string
|
|
|
- SendThsState string
|
|
|
- IsDeleted string
|
|
|
- PublishTime string
|
|
|
- SendThsTime string
|
|
|
- CreateTime string
|
|
|
- ModifyTime string
|
|
|
- DeleteTime string
|
|
|
+ RoadVideoID string
|
|
|
+ Title string
|
|
|
+ ChartPermissionIds string
|
|
|
+ CoverImgURL string
|
|
|
+ VideoURL string
|
|
|
+ VideoSeconds string
|
|
|
+ PublishState string
|
|
|
+ SendThsState string
|
|
|
+ IsDeleted string
|
|
|
+ PublishTime string
|
|
|
+ SendThsTime string
|
|
|
+ CreateTime string
|
|
|
+ ModifyTime string
|
|
|
+ DeleteTime string
|
|
|
+ ReportID string
|
|
|
}{
|
|
|
RoadVideoID: "road_video_id",
|
|
|
Title: "title",
|
|
@@ -58,4 +60,5 @@ var YbRoadVideoColumns = struct {
|
|
|
CreateTime: "create_time",
|
|
|
ModifyTime: "modify_time",
|
|
|
DeleteTime: "delete_time",
|
|
|
+ ReportID: "report_id",
|
|
|
}
|