|
@@ -2,6 +2,7 @@ package data_manage
|
|
|
|
|
|
import (
|
|
|
"errors"
|
|
|
+ "eta/eta_api/models/data_manage/excel/request"
|
|
|
"eta/eta_api/models/mgo"
|
|
|
"eta/eta_api/utils"
|
|
|
"fmt"
|
|
@@ -264,23 +265,33 @@ type EditChartInfoReq struct {
|
|
|
}
|
|
|
|
|
|
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就是数值值·"`
|
|
|
+ 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"`
|
|
|
ChartNameEn string `description:"英文图表名称"`
|
|
@@ -1506,18 +1517,18 @@ type SamePeriodAverageData struct {
|
|
|
|
|
|
// 自定义同期标准差
|
|
|
type SamePeriodStandardDeviation struct {
|
|
|
- Color string `description:"颜色"`
|
|
|
- Year int `description:"标准差取值范围"`
|
|
|
- Legend string `description:"图例名称"`
|
|
|
- Multiple float64 `description:"标准差倍数"`
|
|
|
- IsShow bool `description:"是否显示"`
|
|
|
+ Color string `description:"颜色"`
|
|
|
+ Year int `description:"标准差取值范围"`
|
|
|
+ Legend string `description:"图例名称"`
|
|
|
+ Multiple float64 `description:"标准差倍数"`
|
|
|
+ IsShow bool `description:"是否显示"`
|
|
|
}
|
|
|
|
|
|
type SamePeriodStandardDeviationResp struct {
|
|
|
Color string `description:"颜色"`
|
|
|
Year int `description:"标准差取值范围"`
|
|
|
Legend string `description:"图例名称"`
|
|
|
- Multiple float64 `description:"标准差倍数"`
|
|
|
+ Multiple float64 `description:"标准差倍数"`
|
|
|
IsShow bool `description:"是否显示"`
|
|
|
List []*MaxMinLimitsData `description:"自定义标准差列表"`
|
|
|
}
|