12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- package request
- // AddThemeReq
- // @Description: 新增主题请求参数
- type AddThemeReq struct {
- ChartThemeName string `description:"主题名称"`
- ChartThemeTypeId int `description:"图表类型id"`
- }
- // EditThemeReq
- // @Description: 编辑主题请求参数
- type EditThemeReq struct {
- ChartThemeId int `description:"主题id"`
- ChartThemeName string `description:"主题名称"`
- Config string `description:"配置的值"`
- ChartImage string `description:"缩略图"`
- }
- // DeleteThemeReq
- // @Description: 删除主题请求参数
- type DeleteThemeReq struct {
- ChartThemeId int `description:"配置id"`
- }
- // SetDefaultThemeReq
- // @Description: 配置默认主题请求参数
- type SetDefaultThemeReq struct {
- ChartThemeId int `description:"主题id"`
- ChartThemeTypeId int `description:"主题类型id"`
- }
- type ColorsOptions []string
- type LineOptions struct {
- DashStyle string `json:"dashStyle"`
- LineWidth int `json:"lineWidth"`
- LineType string `json:"lineType"`
- Radius float64 `json:"radius"`
- }
- type LegendOptions struct {
- VerticalAlign string `json:"verticalAlign"`
- ItemStyle struct {
- Color string `json:"color"`
- FontSize int `json:"fontSize"`
- Cursor string `json:"cursor"`
- FontWeight string `json:"fontWeight"`
- TextOverflow string `json:"textOverflow"`
- } `json:"itemStyle"`
- }
- type TitleOptions struct {
- Align string `json:"align"`
- Style struct {
- Color string `json:"color"`
- FontSize int `json:"fontSize"`
- } `json:"style"`
- }
- type MarkerOptions struct {
- Style struct {
- Color string `json:"color"`
- FontSize int `json:"fontSize"`
- } `json:"style"`
- }
- type AxisOptions struct {
- Style struct {
- Color string `json:"color"`
- FontSize int `json:"fontSize"`
- } `json:"style"`
- }
- type DrawOption struct {
- PlotBackgroundColor string `json:"plotBackgroundColor"`
- }
- type OldChartOptions struct {
- ColorsOptions []string `json:"colorsOptions"`
- LineOptions LineOptions `json:"lineOptions"`
- LegendOptions interface{} `json:"legendOptions"`
- TitleOptions interface{} `json:"titleOptions"`
- MarkerOptions interface{} `json:"markerOptions"`
- XAxisOptions interface{} `json:"xAxisOptions"`
- YAxisOptions interface{} `json:"yAxisOptions"`
- DrawOption interface{} `json:"drawOption"`
- }
- type NewChartOptions struct {
- OldChartOptions
- LineOptionList []NewLineOptions `json:"lineOptionList"`
- }
- type NewLineOptions struct {
- LineOptions
- Color string `json:"color"`
- }
|