|
@@ -358,3 +358,35 @@ func (c *EdbInspectionController) GetInspectionRecordDetail() {
|
|
|
|
|
|
}
|
|
|
|
|
|
+// HelpWordDownload
|
|
|
+// @Title 下载错误处理文档
|
|
|
+// @Description 下载错误处理文档
|
|
|
+// @Success 200 {object} models.EdbdataClassifyResp
|
|
|
+// @Param Source query int false "来源:1:同花顺;2:wind;34:钢联"
|
|
|
+// @Param IsApi query int false "是否api:1:是;0:否"
|
|
|
+// @router /edb_inspection/help_word [get]
|
|
|
+func (c *EdbInspectionController) HelpWordDownload() {
|
|
|
+ br := new(models.BaseResponse).Init()
|
|
|
+ defer func() {
|
|
|
+ c.Data["json"] = br
|
|
|
+ c.ServeJSON()
|
|
|
+ }()
|
|
|
+ source, _ := c.GetInt("Source")
|
|
|
+ isApi, _ := c.GetInt("IsApi")
|
|
|
+ switch source {
|
|
|
+ case utils.DATA_SOURCE_THS:
|
|
|
+ if isApi == 1 {
|
|
|
+ c.Ctx.Output.Download("./static/同花顺指标api方式刷新失败处理.docx", "同花顺指标api方式刷新失败处理.docx")
|
|
|
+ }
|
|
|
+ case utils.DATA_SOURCE_WIND:
|
|
|
+ c.Ctx.Output.Download("./static/wind指标刷新失败处理.docx", "wind指标刷新失败处理.docx")
|
|
|
+ case utils.DATA_SOURCE_MYSTEEL_CHEMICAL:
|
|
|
+ if isApi == 1 {
|
|
|
+ c.Ctx.Output.Download("./static/钢联指标api方式刷新失败处理.docx", "钢联指标api方式刷新失败处理.docx")
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ br.Ret = 200
|
|
|
+ br.Success = true
|
|
|
+ br.Msg = "下载成功"
|
|
|
+}
|