|
@@ -12,13 +12,13 @@ import (
|
|
|
"time"
|
|
|
)
|
|
|
|
|
|
-// EditDayWeekChapter
|
|
|
-// @Title 编辑晨周报章节内容
|
|
|
-// @Description 编辑晨周报章节内容
|
|
|
-// @Param request body models.EditReportChapterReq true "type json string"
|
|
|
+// AddChapter
|
|
|
+// @Title 新增晨周报章节内容
|
|
|
+// @Description 新增晨周报章节内容
|
|
|
+// @Param request body models.AddReportChapterReq true "type json string"
|
|
|
// @Success 200 Ret=200 保存成功
|
|
|
-// @router /addChapter [post]
|
|
|
-func (this *ReportController) AddDayWeekChapter() {
|
|
|
+// @router /chapter/add [post]
|
|
|
+func (this *ReportController) AddChapter() {
|
|
|
br := new(models.BaseResponse).Init()
|
|
|
defer func() {
|
|
|
this.Data["json"] = br
|
|
@@ -54,8 +54,8 @@ func (this *ReportController) AddDayWeekChapter() {
|
|
|
return
|
|
|
}
|
|
|
if reportInfo.State == 2 {
|
|
|
- br.Msg = "该报告已发布,不允许编辑"
|
|
|
- br.ErrMsg = "该报告已发布,不允许编辑"
|
|
|
+ br.Msg = "该报告已发布,不允许新增"
|
|
|
+ br.ErrMsg = "该报告已发布,不允许新增"
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -736,6 +736,10 @@ func (this *ReportController) GetDayWeekChapter() {
|
|
|
chapterInfo.ContentStruct = html.UnescapeString(chapterInfo.ContentStruct)
|
|
|
}
|
|
|
|
|
|
+ chapterInfo.Content = html.UnescapeString(chapterInfo.Content)
|
|
|
+ chapterInfo.ContentSub = html.UnescapeString(chapterInfo.ContentSub)
|
|
|
+ chapterInfo.ContentStruct = html.UnescapeString(chapterInfo.ContentStruct)
|
|
|
+
|
|
|
// 授权用户列表map
|
|
|
chapterGrantIdList := make([]int, 0)
|
|
|
// 关联品种id列表map
|