|
@@ -58,6 +58,7 @@ type ChartInfo struct {
|
|
|
UnitEn string `description:"英文单位名称"`
|
|
|
IsJoinPermission int `description:"是否加入权限管控,0:不加入;1:加入;默认:0"`
|
|
|
ForumChartInfoId int `description:"社区的图表ID"`
|
|
|
+ ChartAlias string `description:"图表别名"`
|
|
|
}
|
|
|
|
|
|
type ChartInfoMore struct {
|
|
@@ -261,6 +262,7 @@ type EditChartInfoReq struct {
|
|
|
MarkersAreas string `description:"标识区"`
|
|
|
Unit string `description:"中文单位名称"`
|
|
|
UnitEn string `description:"英文单位名称"`
|
|
|
+ ChartAlias string `description:"图表别名"`
|
|
|
}
|
|
|
|
|
|
type EditFutureGoodChartInfoReq struct {
|
|
@@ -321,6 +323,7 @@ type EditChartEnInfoReq struct {
|
|
|
ChartNameEn string `description:"英文图表名称"`
|
|
|
ChartEdbInfoList []*EditChartEnInfoEdbItem `description:"指标及配置信息"`
|
|
|
ExtraConfig string `description:"图表额外配置信息,json字符串"`
|
|
|
+ ChartAlias string `description:"图表别名"`
|
|
|
}
|
|
|
type EditChartEnInfoEdbItem struct {
|
|
|
EdbInfoId int `description:"指标ID"`
|
|
@@ -335,6 +338,7 @@ type EditChartInfoBaseReq struct {
|
|
|
ChartName string `description:"图表名称(根据语言版本区分)"`
|
|
|
ChartEdbInfoList []*EditChartInfoEdbBaseItem `description:"指标及配置信息"`
|
|
|
ExtraConfig string `description:"图表额外配置信息,json字符串"`
|
|
|
+ ChartAlias string `description:"图表别名"`
|
|
|
}
|
|
|
type EditChartInfoEdbBaseItem struct {
|
|
|
EdbInfoId int `description:"指标ID"`
|
|
@@ -375,6 +379,7 @@ type ChartInfoList struct {
|
|
|
CreateTime time.Time
|
|
|
ModifyTime time.Time
|
|
|
EdbInfoList []*EdbInfoList
|
|
|
+ ChartAlias string `description:"图表别名"`
|
|
|
}
|
|
|
|
|
|
type ChartInfoListResp struct {
|
|
@@ -1058,6 +1063,9 @@ func EditChartInfoAndMapping(req *EditChartInfoReq, edbInfoIdStr string, calenda
|
|
|
sql += `,min_max_save = ? `
|
|
|
pars = append(pars, req.MinMaxSave)
|
|
|
|
|
|
+ sql += `,chart_alias = ? `
|
|
|
+ pars = append(pars, req.ChartAlias)
|
|
|
+
|
|
|
sql += `WHERE chart_info_id = ?`
|
|
|
|
|
|
pars = append(pars, req.ChartInfoId)
|
|
@@ -1332,6 +1340,9 @@ func EditChartEnInfoAndEdbEnInfo(req *EditChartEnInfoReq) (err error) {
|
|
|
pars = append(pars, req.ExtraConfig)
|
|
|
}
|
|
|
|
|
|
+ updateField += ` chart_alias =?, `
|
|
|
+ pars = append(pars, req.ChartAlias)
|
|
|
+
|
|
|
sql := ` UPDATE chart_info
|
|
|
SET ` + updateField + ` modify_time = NOW()
|
|
|
WHERE chart_info_id = ?`
|
|
@@ -1405,6 +1416,9 @@ func EditChartBaseInfoAndEdbEnInfo(req *EditChartInfoBaseReq, chartItem *ChartIn
|
|
|
chartItem.ExtraConfig = req.ExtraConfig
|
|
|
updateChartCols = append(updateChartCols, "ExtraConfig")
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
chartItem.ModifyTime = time.Now()
|
|
|
updateChartCols = append(updateChartCols, "ModifyTime")
|
|
|
_, err = to.Update(chartItem, updateChartCols...)
|
|
@@ -1487,6 +1501,7 @@ type AddChartInfoReq struct {
|
|
|
MarkersAreas string `description:"标识区"`
|
|
|
Unit string `description:"中文单位名称"`
|
|
|
UnitEn string `description:"英文单位名称"`
|
|
|
+ ChartAlias string `description:"图表别名"`
|
|
|
}
|
|
|
|
|
|
type AddFutureGoodChartInfoReq struct {
|
|
@@ -1942,6 +1957,7 @@ type ChartInfoView struct {
|
|
|
IsJoinPermission int `description:"是否加入权限管控,0:不加入;1:加入;默认:0"`
|
|
|
HaveOperaAuth bool `description:"是否有数据权限,默认:false"`
|
|
|
ForumChartInfoId int `description:"社区的图表ID"`
|
|
|
+ ChartAlias string `description:"图表别名"`
|
|
|
}
|
|
|
|
|
|
type ChartViewButton struct {
|