go-view-server/internal/model/json_obj.go

110 lines
4.3 KiB
Go

package model
type JsonObj struct {
EditCanvasConfig *EditCanvasConfig `json:"editCanvasConfig"`
ComponentList []*Component `json:"componentList"`
RequestGlobalConfig interface{} `json:"requestGlobalConfig"`
StaticFile interface{} `json:"staticFile"`
GlobalVarList []interface{} `json:"globalVarList"`
}
type Component struct {
Id string `json:"id"`
IsGroup bool `json:"isGroup"`
Attr interface{} `json:"attr"`
Styles interface{} `json:"styles"`
Preview struct {
OverFlowHidden bool `json:"overFlowHidden"`
} `json:"preview"`
Status struct {
Lock bool `json:"lock"`
Hide bool `json:"hide"`
} `json:"status"`
Request interface{} `json:"request"`
Filter interface{} `json:"filter"`
Events interface{} `json:"events"`
Key string `json:"key"`
ChartConfig struct {
Key string `json:"key"`
ChartKey string `json:"chartKey"`
ConKey string `json:"conKey"`
Title string `json:"title"`
Category string `json:"category"`
CategoryName string `json:"categoryName"`
Package string `json:"package"`
ChartFrame string `json:"chartFrame"`
Image string `json:"image"`
} `json:"chartConfig"`
Option struct {
Type string `json:"type"`
Dataset interface{} `json:"dataset"`
Fit string `json:"fit"`
BorderRadius int `json:"borderRadius,omitempty"`
Loop bool `json:"loop,omitempty"`
Muted bool `json:"muted,omitempty"`
Autoplay bool `json:"autoplay,omitempty"`
Interval int `json:"interval,omitempty"`
SlidesPerview int `json:"slidesPerview,omitempty"`
Direction string `json:"direction,omitempty"`
Draggable bool `json:"draggable,omitempty"`
CenteredSlides bool `json:"centeredSlides,omitempty"`
Effect string `json:"effect,omitempty"`
ShowDots bool `json:"showDots,omitempty"`
DotType string `json:"dotType,omitempty"`
DotPlacement string `json:"dotPlacement,omitempty"`
ShowArrow bool `json:"showArrow,omitempty"`
} `json:"option"`
}
type EditCanvasConfig struct {
ProjectName string `json:"projectName"`
Width int `json:"width"`
Height int `json:"height"`
FilterShow bool `json:"filterShow"`
HueRotate int `json:"hueRotate"`
Saturate int `json:"saturate"`
Contrast int `json:"contrast"`
Brightness int `json:"brightness"`
Opacity int `json:"opacity"`
RotateZ int `json:"rotateZ"`
RotateX int `json:"rotateX"`
RotateY int `json:"rotateY"`
SkewX int `json:"skewX"`
SkewY int `json:"skewY"`
BlendMode string `json:"blendMode"`
Background interface{} `json:"background"`
BackgroundImage string `json:"backgroundImage"`
SelectColor bool `json:"selectColor"`
ChartThemeColor string `json:"chartThemeColor"`
ChartCustomThemeColorInfo interface{} `json:"chartCustomThemeColorInfo"`
ChartThemeSetting interface{} `json:"chartThemeSetting"`
PreviewScaleType string `json:"previewScaleType"`
}
type RequestObj struct {
RequestDataType int `json:"requestDataType"`
RequestHttpType string `json:"requestHttpType"`
RequestUrl string `json:"requestUrl"`
RequestInterval interface{} `json:"requestInterval"`
RequestIntervalUnit string `json:"requestIntervalUnit"`
RequestContentType int `json:"requestContentType"`
RequestParamsBodyType string `json:"requestParamsBodyType"`
RequestSQLContent struct {
Sql string `json:"sql"`
} `json:"requestSQLContent"`
RequestParams struct {
Body struct {
FormData struct {
} `json:"form-data"`
XWwwFormUrlencoded struct {
} `json:"x-www-form-urlencoded"`
Json string `json:"json"`
Xml string `json:"xml"`
} `json:"Body"`
Header struct {
} `json:"Header"`
Params struct {
} `json:"Params"`
} `json:"requestParams"`
}