Selaa lähdekoodia

Merge branch 'needs/chart_switch_20230508' into debug

hsun 1 vuosi sitten
vanhempi
commit
e52d2e6a83
2 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 2 0
      controller/my_chart/my_chart.go
  2. 1 0
      models/response/my_chart.go

+ 2 - 0
controller/my_chart/my_chart.go

@@ -429,6 +429,7 @@ func (this *MyChartController) Locate(c *gin.Context) {
 				v.ChartInfoID = ch.ChartInfoID
 				v.ChartName = ch.ChartName
 				v.UniqueCode = ch.UniqueCode
+				v.ChartInfoSource = ch.Source
 				charts = append(charts, v)
 			}
 		}
@@ -472,6 +473,7 @@ func (this *MyChartController) Locate(c *gin.Context) {
 			v.ChartInfoID = ch.ChartInfoID
 			v.ChartName = ch.ChartName
 			v.UniqueCode = ch.UniqueCode
+			v.ChartInfoSource = ch.Source
 			charts = append(charts, v)
 		}
 		total := len(charts)

+ 1 - 0
models/response/my_chart.go

@@ -38,4 +38,5 @@ type MyChartLocateItem struct {
 	UniqueCode        string `json:"unique_code"`
 	PrevChartInfoID   int    `json:"prev_chart_info_id"`
 	NextChartInfoID   int    `json:"next_chart_info_id"`
+	ChartInfoSource   int    `json:"chart_info_source"`
 }