|
@@ -1356,13 +1356,13 @@ func (this *ReportController) PublishDayWeekReportChapter() {
|
|
|
br.Msg = "操作成功"
|
|
|
}
|
|
|
|
|
|
-// GetUnPublishReportChapterCount
|
|
|
+// GetUnPublishReportChapterList
|
|
|
// @Title 获取报告中未发布的章节数
|
|
|
// @Description 获取报告中未发布的章节数
|
|
|
// @Param ReportId query int true "报告ID"
|
|
|
// @Success 200 Ret=200 获取成功
|
|
|
-// @router /chapter/un_publish/count [get]
|
|
|
-func (this *ReportController) GetUnPublishReportChapterCount() {
|
|
|
+// @router /chapter/un_publish/list [get]
|
|
|
+func (this *ReportController) GetUnPublishReportChapterList() {
|
|
|
br := new(models.BaseResponse).Init()
|
|
|
defer func() {
|
|
|
this.Data["json"] = br
|
|
@@ -1395,8 +1395,8 @@ func (this *ReportController) GetUnPublishReportChapterCount() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- // 获取未发布的章节数
|
|
|
- unPublishedNum, err := models.CountUnPublishedChapterNum(reportInfo.Id)
|
|
|
+ // 获取未发布的章节列表
|
|
|
+ unPublishedList, err := models.GetUnPublishedChapterList(reportInfo.Id)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取未发布的章节数失败"
|
|
|
br.ErrMsg = "获取未发布的章节数失败, Err: " + err.Error()
|
|
@@ -1406,5 +1406,5 @@ func (this *ReportController) GetUnPublishReportChapterCount() {
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "获取成功"
|
|
|
- br.Data = unPublishedNum
|
|
|
+ br.Data = unPublishedList
|
|
|
}
|