|
@@ -27,7 +27,7 @@ func Detail(c *gin.Context) {
|
|
|
|
|
|
reportDetail, err := report.GetReportDetail(userinfo, reportId)
|
|
|
if err != nil {
|
|
|
- response.Fail(err.Error(), c)
|
|
|
+ response.FailMsg("查看报告详情出错",err.Error(), c)
|
|
|
return
|
|
|
}
|
|
|
response.OkData("查询成功", reportDetail, c )
|
|
@@ -50,7 +50,7 @@ func ChapterDetail(c *gin.Context) {
|
|
|
|
|
|
chapterDetail, err := report.GetChapterDetail(userinfo, reportChapterId)
|
|
|
if err != nil {
|
|
|
- response.Fail(err.Error(), c)
|
|
|
+ response.FailMsg("查看章节详情出错",err.Error(), c)
|
|
|
return
|
|
|
}
|
|
|
response.OkData("查询成功", chapterDetail, c )
|
|
@@ -99,7 +99,7 @@ func List(c *gin.Context) {
|
|
|
|
|
|
list, err := report.GetReportList(userinfo, keyWord, classifyIdFirst, classifyIdSecond, pageIndex, pageSize)
|
|
|
if err != nil {
|
|
|
- response.Fail(err.Error(), c)
|
|
|
+ response.FailMsg("查看研报列表出错",err.Error(), c)
|
|
|
return
|
|
|
}
|
|
|
response.OkData("查询成功", list, c )
|
|
@@ -137,7 +137,7 @@ func CollectReportList(c *gin.Context) {
|
|
|
|
|
|
list, err := report.GetCollectReportList(userinfo, chartPermissionId, pageIndex, pageSize)
|
|
|
if err != nil {
|
|
|
- response.Fail(err.Error(), c)
|
|
|
+ response.FailMsg("汇总报告查询出错",err.Error(), c)
|
|
|
return
|
|
|
}
|
|
|
response.OkData("查询成功", list, c )
|
|
@@ -169,7 +169,7 @@ func Search(c *gin.Context) {
|
|
|
userinfo := userService.GetInfoByClaims(c)
|
|
|
data, err := report.SearchReport(userinfo, keyWord, pageIndex, pageSize)
|
|
|
if err != nil {
|
|
|
- response.Fail(err.Error(), c)
|
|
|
+ response.FailMsg("搜索报告出错",err.Error(), c)
|
|
|
return
|
|
|
}
|
|
|
response.OkData("查询成功", data, c)
|