|
@@ -10,7 +10,6 @@ type ReportShareController struct {
|
|
|
BaseCommonController
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// @Title 日评详情
|
|
|
// @Description 日评详情接口
|
|
|
// @Param ReportCode query string true "报告唯一编码"
|
|
@@ -23,15 +22,15 @@ func (this *ReportShareController) Detail() {
|
|
|
this.ServeJSON()
|
|
|
}()
|
|
|
|
|
|
- reportCode:= this.GetString("ReportCode")
|
|
|
- if reportCode =="" {
|
|
|
+ reportCode := this.GetString("ReportCode")
|
|
|
+ if reportCode == "" {
|
|
|
br.Msg = "参数错误"
|
|
|
br.ErrMsg = "参数错误,reportCode 为空"
|
|
|
return
|
|
|
}
|
|
|
report, err := models.GetReportByCode(reportCode)
|
|
|
if err != nil {
|
|
|
- br.Msg = "获取报告详情失败"
|
|
|
+ br.Msg = "该报告已删除"
|
|
|
br.ErrMsg = "获取报告详情失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|