|
@@ -3,35 +3,33 @@ package report_chapter
|
|
import "time"
|
|
import "time"
|
|
|
|
|
|
type ReportChapter struct {
|
|
type ReportChapter struct {
|
|
- ReportChapterId int `gorm:"primaryKey;column:report_chapter_id;type:int(10) unsigned;not null" json:"-"`
|
|
|
|
- ReportId int `gorm:"column:report_id;type:int(10);not null;default:0" json:"report_id"` //报告ID
|
|
|
|
- ReportCode string `gorm:"column:report_code;type:varchar(255);not null;default:''" json:"report_code"` //报告唯一编码
|
|
|
|
- ReportType string `gorm:"column:report_type;type:varchar(255);not null;default:''" json:"report_type"` //晨报-day;周报-week;
|
|
|
|
- ClassifyIdFirst int `gorm:"column:classify_id_first;type:int(10);default:0" json:"classify_id_first"` //一级分类id
|
|
|
|
- ClassifyNameFirst string `gorm:"column:classify_name_first;type:varchar(255);default:''" json:"classify_name_first"` //一级分类名称
|
|
|
|
- TypeId int `gorm:"column:type_id;type:int(10);not null;default:0" json:"type_id"` //品种ID
|
|
|
|
- TypeName string `gorm:"column:type_name;type:varchar(255);not null;default:''" json:"type_name"` //品种名称
|
|
|
|
- Title string `gorm:"column:title;type:varchar(255);not null;default:''" json:"title"` //章节标题
|
|
|
|
- Abstract string `gorm:"column:abstract;type:varchar(255);not null;default:''" json:"abstract"` //摘要
|
|
|
|
- AddType int `gorm:"column:add_type;type:int(10);not null;default:0" json:"add_type"` //是否为继承报告1-空白报告2-继承报告
|
|
|
|
- Author string `gorm:"column:author;type:varchar(255);not null;default:''" json:"author"` //作者
|
|
|
|
- Content string `gorm:"column:content;type:longtext;" json:"content"` //内容
|
|
|
|
- ContentSub string `gorm:"column:content_sub;type:longtext;" json:"content_sub"` //内容前两章
|
|
|
|
- Stage int `gorm:"column:stage;type:int(10);not null;default:0" json:"stage"` //期数
|
|
|
|
- Trend string `gorm:"column:trend;type:varchar(255);not null;default:''" json:"trend"` //趋势观点
|
|
|
|
- Sort int `gorm:"column:sort;type:int(10);not null;default:0" json:"sort"` //排序:数值越小越靠前
|
|
|
|
- IsEdit int `gorm:"column:is_edit;type:int(10);not null;default:0" json:"is_edit"` //是否编辑
|
|
|
|
- PublishState int `gorm:"column:publish_state;type:int(4);not null;default:0" json:"publish_state"` //发布状态1-待发布2-已发布
|
|
|
|
- PublishTime time.Time `gorm:"column:publish_time;type:datetime" json:"publish_time"` //发布时间
|
|
|
|
- VideoUrl string `gorm:"column:video_url;type:varchar(255);not null;default:''" json:"video_url"` //音频文件URL
|
|
|
|
- VideoName string `gorm:"column:video_name;type:varchar(255);not null;default:''" json:"video_name"` //音频文件名称
|
|
|
|
- VideoPlaySeconds string `gorm:"column:video_play_seconds;type:varchar(255);not null;default:''" json:"video_play_seconds"` //音频播放时长
|
|
|
|
- VideoSize string `gorm:"column:video_size;type:varchar(255);not null;default:''" json:"video_size"` //音频文件大小,单位M
|
|
|
|
- CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"` //创建时间
|
|
|
|
- ModifyTime time.Time `gorm:"column:modify_time;type:datetime" json:"modify_time"` //修改时间
|
|
|
|
-
|
|
|
|
|
|
+ ReportChapterId int `gorm:"primaryKey;column:report_chapter_id;type:int(10) unsigned;not null" json:"-"`
|
|
|
|
+ ReportId int `gorm:"column:report_id;type:int(10);not null;default:0" json:"report_id"` //报告ID
|
|
|
|
+ ReportType string `gorm:"column:report_type;type:varchar(255);not null;default:''" json:"report_type"` //晨报-day;周报-week;
|
|
|
|
+ ClassifyIdFirst int `gorm:"column:classify_id_first;type:int(10);default:0" json:"classify_id_first"` //一级分类id
|
|
|
|
+ ClassifyNameFirst string `gorm:"column:classify_name_first;type:varchar(255);default:''" json:"classify_name_first"` //一级分类名称
|
|
|
|
+ TypeId int `gorm:"column:type_id;type:int(10);not null;default:0" json:"type_id"` //品种ID
|
|
|
|
+ TypeName string `gorm:"column:type_name;type:varchar(255);not null;default:''" json:"type_name"` //品种名称
|
|
|
|
+ Title string `gorm:"column:title;type:varchar(255);not null;default:''" json:"title"` //章节标题
|
|
|
|
+ Abstract string `gorm:"column:abstract;type:varchar(255);not null;default:''" json:"abstract"` //摘要
|
|
|
|
+ AddType int `gorm:"column:add_type;type:int(10);not null;default:0" json:"add_type"` //是否为继承报告1-空白报告2-继承报告
|
|
|
|
+ Author string `gorm:"column:author;type:varchar(255);not null;default:''" json:"author"` //作者
|
|
|
|
+ Content string `gorm:"column:content;type:longtext;" json:"content"` //内容
|
|
|
|
+ ContentSub string `gorm:"column:content_sub;type:longtext;" json:"content_sub"` //内容前两章
|
|
|
|
+ Stage int `gorm:"column:stage;type:int(10);not null;default:0" json:"stage"` //期数
|
|
|
|
+ Trend string `gorm:"column:trend;type:varchar(255);not null;default:''" json:"trend"` //趋势观点
|
|
|
|
+ Sort int `gorm:"column:sort;type:int(10);not null;default:0" json:"sort"` //排序:数值越小越靠前
|
|
|
|
+ IsEdit int `gorm:"column:is_edit;type:int(10);not null;default:0" json:"is_edit"` //是否编辑
|
|
|
|
+ PublishState int `gorm:"column:publish_state;type:int(4);not null;default:0" json:"publish_state"` //发布状态1-待发布2-已发布
|
|
|
|
+ PublishTime time.Time `gorm:"column:publish_time;type:datetime" json:"publish_time"` //发布时间
|
|
|
|
+ VideoUrl string `gorm:"column:video_url;type:varchar(255);not null;default:''" json:"video_url"` //音频文件URL
|
|
|
|
+ VideoName string `gorm:"column:video_name;type:varchar(255);not null;default:''" json:"video_name"` //音频文件名称
|
|
|
|
+ VideoPlaySeconds string `gorm:"column:video_play_seconds;type:varchar(255);not null;default:''" json:"video_play_seconds"` //音频播放时长
|
|
|
|
+ VideoSize string `gorm:"column:video_size;type:varchar(255);not null;default:''" json:"video_size"` //音频文件大小,单位M
|
|
|
|
+ CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"` //创建时间
|
|
|
|
+ ModifyTime time.Time `gorm:"column:modify_time;type:datetime" json:"modify_time"` //修改时间
|
|
}
|
|
}
|
|
|
|
|
|
func (r *ReportChapter) TableName() string {
|
|
func (r *ReportChapter) TableName() string {
|
|
return "report_chapter"
|
|
return "report_chapter"
|
|
-}
|
|
|
|
|
|
+}
|