Bläddra i källkod

报告自由布局新增比例

hsun 2 veckor sedan
förälder
incheckning
6098945ab2
3 ändrade filer med 3 tillägg och 0 borttagningar
  1. 1 0
      controllers/report_share.go
  2. 1 0
      models/report.go
  3. 1 0
      models/report_chapter.go

+ 1 - 0
controllers/report_share.go

@@ -142,6 +142,7 @@ func (this *ReportShareController) Detail() {
 						chapter.ContentSub = strings.ReplaceAll(chapter.ContentSub, urlReplace.ChartUrlOrigin, urlReplace.ChartUrlNew)
 					}
 				}
+				chapter.FreeReportRatio = report.FreeReportRatio
 				reportChapters = append(reportChapters, chapter)
 			}
 			if report.ReportLayout == 3 {

+ 1 - 0
models/report.go

@@ -57,6 +57,7 @@ type Report struct {
 	IsPublicPublish     int8      `description:"是否公开发布,1:是,2:否"`
 	ReportCreateTime    time.Time `description:"报告时间创建时间"`
 	FreeLayoutConfig    string    `description:"自由布局配置"`
+	FreeReportRatio     string    `description:"自由布局页面比例:A4; 16:9; 4:3; 10:7"`
 }
 
 func (m *Report) ConvertTimeStr() {

+ 1 - 0
models/report_chapter.go

@@ -35,6 +35,7 @@ type ReportChapter struct {
 	CreateTime        string    `description:"创建时间"`
 	ModifyTime        time.Time `description:"修改时间"`
 	OriginalVideoUrl  string    `description:"原始音频文件URL"`
+	FreeReportRatio   string    `description:"自由布局页面比例:A4; 16:9; 4:3; 10:7"`
 }
 
 // GetPublishedChapterListByReportId 根据ReportId获取已发布章节列表