Browse Source

fix:智能研报接口废弃,全部转到研报接口中

Roc 8 months ago
parent
commit
29ef16f0be
1 changed files with 13 additions and 1 deletions
  1. 13 1
      controllers/smart_report.go

+ 13 - 1
controllers/smart_report.go

@@ -32,6 +32,11 @@ func (this *SmartReportController) List() {
 		this.ServeJSON()
 	}()
 
+	br.Ret = 301
+	br.Msg = "智能研报已合并到中文研报,请使用中文研报的接口"
+	br.ErrMsg = "智能研报已合并到中文研报,请使用中文研报的接口"
+	return
+
 	type SmartReportListReq struct {
 		PageSize     int `form:"PageSize"`
 		CurrentIndex int `form:"CurrentIndex"`
@@ -68,7 +73,6 @@ func (this *SmartReportController) List() {
 		pars = append(pars, classifyId, classifyId)
 	}
 
-
 	resp := new(models.SmartReportListResp)
 	reportOB := new(models.SmartReport)
 	total, e := reportOB.GetCountByCondition(condition, pars)
@@ -127,6 +131,10 @@ func (this *SmartReportController) Detail() {
 		this.Data["json"] = br
 		this.ServeJSON()
 	}()
+	br.Ret = 301
+	br.Msg = "智能研报已合并到中文研报,请使用中文研报的接口"
+	br.ErrMsg = "智能研报已合并到中文研报,请使用中文研报的接口"
+	return
 
 	reportId, _ := this.GetInt("SmartReportId")
 	if reportId <= 0 {
@@ -165,6 +173,10 @@ func (this *SmartReportController) Approve() {
 		this.Data["json"] = br
 		this.ServeJSON()
 	}()
+	br.Ret = 301
+	br.Msg = "智能研报已合并到中文研报,请使用中文研报的接口"
+	br.ErrMsg = "智能研报已合并到中文研报,请使用中文研报的接口"
+	return
 
 	var req models.SmartReportApproveReq
 	err := json.Unmarshal(this.Ctx.Input.RequestBody, &req)