|
@@ -257,16 +257,36 @@ type EditChartInfoReq struct {
|
|
|
ChartThemeId int `description:"图表应用主题ID"`
|
|
|
SourcesFrom string `description:"图表来源"`
|
|
|
Instructions string `description:"图表说明"`
|
|
|
- MarkersLines string `description:"标识线"`
|
|
|
+ MarkersLines []*MarkersLine `description:"标识线"`
|
|
|
MarkersAreas string `description:"标识区"`
|
|
|
Unit string `description:"中文单位名称"`
|
|
|
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就是数值值·"`
|
|
|
+}
|
|
|
+
|
|
|
type EditFutureGoodChartInfoReq struct {
|
|
|
EditChartInfoReq
|
|
|
BarChartInfo FutureGoodBarChartInfoReq
|
|
|
}
|
|
|
+
|
|
|
type EditChartEnInfoReq struct {
|
|
|
ChartInfoId int `description:"图表ID"`
|
|
|
ChartNameEn string `description:"英文图表名称"`
|
|
@@ -1477,16 +1497,81 @@ type PreviewChartInfoReq struct {
|
|
|
}
|
|
|
|
|
|
type SeasonExtraItem struct {
|
|
|
- ChartLegend []SeasonChartLegend `description:"自定义的图例名称"`
|
|
|
- XStartDate string `description:"横坐标显示的起始日"`
|
|
|
- XEndDate string `description:"横坐标显示的截止日"`
|
|
|
- JumpYear int `description:"横坐标日期是否跨年,1跨年,0不跨年"`
|
|
|
+ ChartLegend []SeasonChartLegend `description:"自定义的图例名称"`
|
|
|
+ XStartDate string `description:"横坐标显示的起始日"`
|
|
|
+ XEndDate string `description:"横坐标显示的截止日"`
|
|
|
+ JumpYear int `description:"横坐标日期是否跨年,1跨年,0不跨年"`
|
|
|
+ RightAxis []SeasonRightAxis `description:"自定义右轴指标"`
|
|
|
+ MaxMinLimits MaxMinLimits `description:"自定义同期上下限"`
|
|
|
+ SamePeriodAverage SamePeriodAverage `description:"自定义同期均线"`
|
|
|
+ SamePeriodStandardDeviation SamePeriodStandardDeviation `description:"自定义同期标准差"`
|
|
|
}
|
|
|
|
|
|
type SeasonChartLegend struct {
|
|
|
Name string
|
|
|
Value string
|
|
|
}
|
|
|
+
|
|
|
+// 自定义右轴指标
|
|
|
+type SeasonRightAxis struct {
|
|
|
+ IndicatorType int `description:"右轴指标类型 1:左轴指标同比,2:指标库,3:预测指标 "`
|
|
|
+ Style string `description:"生成样式"`
|
|
|
+ Shape string `description:"形状"`
|
|
|
+ ChartColor string `description:"图表颜色"`
|
|
|
+ Size int `description:"大小"`
|
|
|
+ Legend string `description:"图例名称"`
|
|
|
+ NumFormat int `description:"数值格式 1:百分比 2:小数"`
|
|
|
+ IsConnected int `description:"是否连接 0不连接 1连接"`
|
|
|
+ LineColor string `description:"线条颜色"`
|
|
|
+ LineWidth int `description:"线条宽度"`
|
|
|
+ LineStyle string `description:"线条样式"`
|
|
|
+}
|
|
|
+
|
|
|
+// 自定义同期上下限
|
|
|
+type MaxMinLimits struct {
|
|
|
+ Color string `description:"颜色"`
|
|
|
+ year int `description:"上下限取值范围"`
|
|
|
+ Legend string `description:"图例名称"`
|
|
|
+}
|
|
|
+
|
|
|
+// 自定义同期均线
|
|
|
+type SamePeriodAverage struct {
|
|
|
+ Color string `description:"颜色"`
|
|
|
+ Year int `description:"均线取值范围"`
|
|
|
+ Legend string `description:"图例名称"`
|
|
|
+ LineType string `description:"线型"`
|
|
|
+ LineWidth int `description:"线宽"`
|
|
|
+ Value float64 `description:"均线值"`
|
|
|
+}
|
|
|
+
|
|
|
+// 自定义同期标准差
|
|
|
+type SamePeriodStandardDeviation struct {
|
|
|
+ Color string `description:"颜色"`
|
|
|
+ Year int `description:"标准差取值范围"`
|
|
|
+ Legend string `description:"图例名称"`
|
|
|
+ Multiple int `description:"标准差倍数"`
|
|
|
+ MaxValue float64 `description:"上限"`
|
|
|
+ MinValue float64 `description:"上限"`
|
|
|
+}
|
|
|
+
|
|
|
+type SeasonChartResp struct {
|
|
|
+ MaxMinLimits MaxMinLimitsResp `description:"自定义上下限"`
|
|
|
+ SamePeriodAverage SamePeriodAverage `description:"自定义同期均线"`
|
|
|
+ SamePeriodStandardDeviation SamePeriodStandardDeviation `description:"自定义同期标准差线"`
|
|
|
+}
|
|
|
+type MaxMinLimitsResp struct {
|
|
|
+ List []*MaxMinLimitsData `description:"自定义上下限列表"`
|
|
|
+ Color string `description:"颜色"`
|
|
|
+ Value int `description:"上下限取值范围"`
|
|
|
+ Legend string `description:"图例名称"`
|
|
|
+}
|
|
|
+type MaxMinLimitsData struct {
|
|
|
+ DataTime string `description:"数据日期"`
|
|
|
+ DataTimestamp int64 `description:"数据日期时间戳"`
|
|
|
+ MaxValue float64 `description:"最大值"`
|
|
|
+ MinValue float64 `description:"最小值"`
|
|
|
+}
|
|
|
+
|
|
|
type AddChartInfoResp struct {
|
|
|
ChartInfoId int `description:"图表id"`
|
|
|
UniqueCode string `description:"图表唯一编码"`
|