Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { URL string `json:"url"` Query map[string]interface{} `json:"query"` Body map[string]interface{} `json:"body"` Header map[string]interface{} `json:"header"` ExtraData map[string]interface{} `json:"extraData"` Method string `json:"method"` }
API .
type Template ¶
type Template struct { ID string `gorm:"not null;unique_index: Name, Scope, ScopeID,ID;type:varchar(64)" json:"id"` Name string `gorm:"not null;type:varchar(32);unique_index: Name, Scope, ScopeID,ID" json:"name" binding:"required"` Description string `json:"description"` Scope string `gorm:"unique_index: Name, Scope, ScopeID,ID" json:"scope"` ScopeID string `gorm:"unique_index: Name, Scope, ScopeID,ID" json:"scopeId"` ViewConfig *ViewConfigDTO `gorm:"type:text;not null" json:"viewConfig"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` Version string `json:"version"` Type int64 `json:"type" default:"1"` //TODO auth }
type View ¶
type View struct { Title string `json:"title"` Description string `json:"description"` ChartType string `json:"chartType"` DataSourceType string `json:"dataSourceType"` StaticData interface{} `json:"staticData"` Config config `json:"config"` API *API `json:"api"` Controls interface{} `json:"controls"` }
ViewResp .
type ViewConfigDTO ¶
type ViewConfigDTO []*ViewConfigItem
ViewConfigDTO .
func (*ViewConfigDTO) Scan ¶
func (vc *ViewConfigDTO) Scan(value interface{}) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.