Browse Source

fix:ppt增加摘要字段

zqbao 3 months ago
parent
commit
e650a05b1c
2 changed files with 3 additions and 0 deletions
  1. 1 0
      controllers/ppt_report.go
  2. 2 0
      models/ppt_v2.go

+ 1 - 0
controllers/ppt_report.go

@@ -382,6 +382,7 @@ func (this *PptV2Controller) CreateReport() {
 	// 新报告
 	newItem := new(models.PptV2)
 	newItem.Title = req.Title
+	newItem.Abstract = req.Abstract
 	newItem.AddType = req.AddType
 	newItem.ClassifyId = req.ClassifyId
 	newItem.CollaborateType = req.CollaborateType

+ 2 - 0
models/ppt_v2.go

@@ -16,6 +16,7 @@ type PptV2 struct {
 	TemplateType           int       `gorm:"column:template_type" description:"模版类型"`
 	BackgroundImg          string    `gorm:"column:background_img" description:"现在实际存的封面图(前端改动太大,不知道该字段之前谁定义的)"`
 	Title                  string    `gorm:"column:title" description:"标题"`
+	Abstract               string    `gorm:"column:abstract" description:"摘要"`
 	ReportType             string    `gorm:"column:report_type" description:"报告类型"`
 	PptDate                string    `gorm:"column:ppt_date" description:"选择日期"`
 	Content                string    `gorm:"column:content" description:"ppt内容"`
@@ -484,6 +485,7 @@ type PptPageReportResp struct {
 type PptReportCreateReq struct {
 	Title              string `description:"标题"`
 	ClassifyId         int    `description:"分类ID"`
+	Abstract           string `description:"摘要"`
 	AddType            int    `description:"新增方式:1:新增报告,2:继承报告"`
 	InheritPptId       int    `description:"待继承的报告ID"`
 	CollaborateType    int    `description:"协作方式,1:个人,2:多人协作。默认:1"`