|
@@ -34,6 +34,7 @@ type ChartInfoView struct {
|
|
|
LeftMax string `description:"图表左侧最大值"`
|
|
|
RightMin string `description:"图表右侧最小值"`
|
|
|
RightMax string `description:"图表右侧最大值"`
|
|
|
+ ChartSource string `description:"图表来源str"`
|
|
|
//ChartClassify []*chart_classify.ChartClassifyView
|
|
|
}
|
|
|
|
|
@@ -67,23 +68,23 @@ type ChartSaveItem struct {
|
|
|
}
|
|
|
|
|
|
type ChartSortInfo struct {
|
|
|
- ChartInfoId int `description:"图表ID"`
|
|
|
- MyChartId int `description:"我的图表ID"`
|
|
|
- MyChartClassifyId int `description:"我的图表分类ID"`
|
|
|
- MyChartClassifyName string `description:"我的图表分类名称"`
|
|
|
- UniqueCode string `description:"图表唯一编码"`
|
|
|
- Sort int `description:"排序"`
|
|
|
- Switch int `description:"是否切换 0-未切换 1-已切换"`
|
|
|
+ ChartInfoId int `description:"图表ID"`
|
|
|
+ MyChartId int `description:"我的图表ID"`
|
|
|
+ MyChartClassifyId int `description:"我的图表分类ID"`
|
|
|
+ MyChartClassifyName string `description:"我的图表分类名称"`
|
|
|
+ UniqueCode string `description:"图表唯一编码"`
|
|
|
+ Sort int `description:"排序"`
|
|
|
+ Switch int `description:"是否切换 0-未切换 1-已切换"`
|
|
|
//SwitchTips string `description:"切换分类提示信息"`
|
|
|
}
|
|
|
|
|
|
type ChartBeforeNext struct {
|
|
|
- PrevChart ChartSortInfo
|
|
|
- NextChart ChartSortInfo
|
|
|
+ PrevChart ChartSortInfo
|
|
|
+ NextChart ChartSortInfo
|
|
|
}
|
|
|
|
|
|
type RefreshChartInfoReq struct {
|
|
|
- ChartInfoId int
|
|
|
+ ChartInfoId int
|
|
|
}
|
|
|
|
|
|
// GetChartInfoViewById 通过Id获取图表展示信息
|
|
@@ -98,4 +99,4 @@ func GetChartInfoViewById(chartInfoId int) (item *ChartInfoView, err error) {
|
|
|
func GetChartInfoById(chartInfoId int) (item *ChartInfo, err error) {
|
|
|
err = global.MYSQL["data"].Model(ChartInfo{}).Where("chart_info_id = ?", chartInfoId).First(&item).Error
|
|
|
return
|
|
|
-}
|
|
|
+}
|