|
@@ -2,7 +2,6 @@ package data_manage
|
|
|
|
|
|
import (
|
|
|
"errors"
|
|
|
- "eta/eta_api/models/data_manage/excel/request"
|
|
|
"eta/eta_api/models/mgo"
|
|
|
"eta/eta_api/utils"
|
|
|
"fmt"
|
|
@@ -264,33 +263,33 @@ type EditChartInfoReq struct {
|
|
|
UnitEn string `description:"英文单位名称"`
|
|
|
}
|
|
|
|
|
|
-type MarkersLine struct {
|
|
|
- Axis int `json:"axis" description:"1左轴 2右轴 3横轴"`
|
|
|
- AxisName string `json:"axisName" description:"轴的名称,例如'左轴'"`
|
|
|
- MarkLineType int `json:"markLineType" description:"1:固定 2:指标计算"`
|
|
|
- Value string `json:"value" description:"连线指向的数值,例如'4000'"`
|
|
|
- From string `json:"from" description:"连线的起始点,可以为空"`
|
|
|
- To string `json:"to" description:"连线的结束点,可以为空"`
|
|
|
- LineWidth int `json:"lineWidth" description:"连线的宽度"`
|
|
|
- DashStyle string `json:"dashStyle" description:"连线的虚线样式,例如'ShortDashDot'"`
|
|
|
- Color string `json:"color" description:"连线的颜色"`
|
|
|
- Text string `json:"text" description:"连线旁边显示的文本"`
|
|
|
- TextPosition string `json:"textPosition" description:"文本的显示位置,例如'bottom'"`
|
|
|
- TextColor string `json:"textColor" description:"文本颜色"`
|
|
|
- TextFontSize int `json:"textFontSize" description:"文本的字号大小"`
|
|
|
- IsShow bool `json:"isShow" description:"是否显示连线及文本"`
|
|
|
- Calculation int `json:"calculation" description:"计算方式 1区间均值 2区间均值加N倍标准差 3区间个数分位 4区间数值分位"`
|
|
|
- CalculationValue int `json:"calculationValue" description:"计算方式对应的值 2就是几倍标准差 3就是分位值 4就是数值值·"`
|
|
|
- TimeIntervalType int `json:"timeInterval" description:"时间区间 0跟随图表 1自定义"`
|
|
|
- StartDate MarkersLineTime `json:"startTime" description:"开始时间"`
|
|
|
- EndDate MarkersLineTime `json:"endTime" description:"结束时间"`
|
|
|
-}
|
|
|
-
|
|
|
-type MarkersLineTime struct {
|
|
|
- TimeType int `json:"timeType" description:"时间类型 1固定 2动态"`
|
|
|
- Date string `json:"date" description:"日期"`
|
|
|
- Conf request.EdbDateChangeConf `json:"conf" description:"动态时间配置"`
|
|
|
-}
|
|
|
+//type MarkersLine struct {
|
|
|
+// Axis int `json:"axis" description:"1左轴 2右轴 3横轴"`
|
|
|
+// AxisName string `json:"axisName" description:"轴的名称,例如'左轴'"`
|
|
|
+// MarkLineType int `json:"markLineType" description:"1:固定 2:指标计算"`
|
|
|
+// Value string `json:"value" description:"连线指向的数值,例如'4000'"`
|
|
|
+// From string `json:"from" description:"连线的起始点,可以为空"`
|
|
|
+// To string `json:"to" description:"连线的结束点,可以为空"`
|
|
|
+// LineWidth int `json:"lineWidth" description:"连线的宽度"`
|
|
|
+// DashStyle string `json:"dashStyle" description:"连线的虚线样式,例如'ShortDashDot'"`
|
|
|
+// Color string `json:"color" description:"连线的颜色"`
|
|
|
+// Text string `json:"text" description:"连线旁边显示的文本"`
|
|
|
+// TextPosition string `json:"textPosition" description:"文本的显示位置,例如'bottom'"`
|
|
|
+// TextColor string `json:"textColor" description:"文本颜色"`
|
|
|
+// TextFontSize int `json:"textFontSize" description:"文本的字号大小"`
|
|
|
+// IsShow bool `json:"isShow" description:"是否显示连线及文本"`
|
|
|
+// Calculation int `json:"calculation" description:"计算方式 1区间均值 2区间均值加N倍标准差 3区间个数分位 4区间数值分位"`
|
|
|
+// CalculationValue int `json:"calculationValue" description:"计算方式对应的值 2就是几倍标准差 3就是分位值 4就是数值值·"`
|
|
|
+// TimeIntervalType int `json:"timeInterval" description:"时间区间 0跟随图表 1自定义"`
|
|
|
+// StartDate MarkersLineTime `json:"startTime" description:"开始时间"`
|
|
|
+// EndDate MarkersLineTime `json:"endTime" description:"结束时间"`
|
|
|
+//}
|
|
|
+//
|
|
|
+//type MarkersLineTime struct {
|
|
|
+// TimeType int `json:"timeType" description:"时间类型 1固定 2动态"`
|
|
|
+// Date string `json:"date" description:"日期"`
|
|
|
+// Conf request.EdbDateChangeConf `json:"conf" description:"动态时间配置"`
|
|
|
+//}
|
|
|
|
|
|
type EditChartEnInfoReq struct {
|
|
|
ChartInfoId int `description:"图表ID"`
|