|
@@ -126,10 +126,8 @@ func (this *ReportController) List() {
|
|
|
br.Success = true
|
|
|
}
|
|
|
|
|
|
-// @Title 研报列表
|
|
|
-// @Description 研报列表
|
|
|
-// @Param ReportId query int true "报告id"
|
|
|
-// @Param chartPermissionId query int true "品种ID"
|
|
|
+// @Title 今日研报列表
|
|
|
+// @Description 今日研报列表
|
|
|
// @Param PageSize query int true "每页数据条数"
|
|
|
// @Param CurrentIndex query int true "当前页页码,从1开始"
|
|
|
// @Success 200 {object} models.ReportDetailResp
|
|
@@ -144,7 +142,7 @@ func (this *ReportController) DailyList() {
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
if pageSize <= 0 {
|
|
|
- pageSize = 3
|
|
|
+ pageSize = utils.PageSize20
|
|
|
}
|
|
|
|
|
|
reports, err := services.GetReportDailyList(currentIndex, pageSize)
|
|
@@ -160,6 +158,38 @@ func (this *ReportController) DailyList() {
|
|
|
br.Success = true
|
|
|
}
|
|
|
|
|
|
+// @Title 最新研报列表
|
|
|
+// @Description 最新研报列表
|
|
|
+// @Param PageSize query int true "每页数据条数"
|
|
|
+// @Param CurrentIndex query int true "当前页页码,从1开始"
|
|
|
+// @Success 200 {object} models.ReportDetailResp
|
|
|
+// @router /recent/list [get]
|
|
|
+func (this *ReportController) RecentList() {
|
|
|
+ br := new(models.BaseResponse).Init()
|
|
|
+ defer func() {
|
|
|
+ this.Data["json"] = br
|
|
|
+ this.ServeJSON()
|
|
|
+ }()
|
|
|
+
|
|
|
+ pageSize, _ := this.GetInt("PageSize")
|
|
|
+ currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
+ if pageSize <= 0 {
|
|
|
+ pageSize = 3
|
|
|
+ }
|
|
|
+
|
|
|
+ reports, err := services.GetReportRecentList(currentIndex, pageSize)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "研报列表查询失败"
|
|
|
+ br.ErrMsg = "研报列表查询失败,系统异常,Err:" + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ br.Data = reports.Data
|
|
|
+ br.Msg = "查询成功"
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+}
|
|
|
+
|
|
|
// @Title 研报列表
|
|
|
// @Description 研报列表
|
|
|
// @Param ReportId query int true "报告id"
|