xyxie 2 months ago
parent
commit
0a4c6d57c9
2 changed files with 2 additions and 0 deletions
  1. 1 0
      controllers/eta_forum_chart.go
  2. 1 0
      models/chart.go

+ 1 - 0
controllers/eta_forum_chart.go

@@ -46,6 +46,7 @@ func (this *EtaForumChartController) CommonChartInfoDetailFromUniqueCode() {
 	resp.XDataList = forumResp.XDataList
 	resp.YDataList = forumResp.YDataList
 	resp.WaterMark = forumResp.WaterMark
+	resp.IsAuth = true
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "获取成功"

+ 1 - 0
models/chart.go

@@ -288,6 +288,7 @@ type ChartInfoDetailResp struct {
 	DataResp             interface{}      `description:"图表数据,根据图的类型而定的,没有确定的数据格式"`
 	WaterMark            string           `description:"水印"`
 	IsCollect            bool             `description:"是否收藏"`
+	IsAuth               bool             `description:"是否授权"`
 }
 
 // XData 商品价格曲线的的x轴数据