Documentation ¶
Index ¶
- type AddSceneOperation
- type ComponentFileTree
- func (i *ComponentFileTree) DragScene(from, to int) error
- func (i *ComponentFileTree) DragSceneSet(from, to int, projectId uint64) error
- func (i *ComponentFileTree) DragSceneToSceneSet(from, to int) error
- func (i *ComponentFileTree) GenComponentState(c *cptype.Component) error
- func (i *ComponentFileTree) Render(ctx context.Context, c *cptype.Component, scenario cptype.Scenario, ...) (err error)
- func (i *ComponentFileTree) RenderAddScene(event cptype.ComponentEvent) error
- func (i *ComponentFileTree) RenderClickScene(event cptype.ComponentEvent) error
- func (i *ComponentFileTree) RenderClickSceneSet(event cptype.ComponentEvent) error
- func (i *ComponentFileTree) RenderCopyScene(inParams InParams, event cptype.ComponentEvent) error
- func (i *ComponentFileTree) RenderDeleteScene(event cptype.ComponentEvent) error
- func (i *ComponentFileTree) RenderDeleteSceneSet(event cptype.ComponentEvent, inParams InParams) error
- func (i *ComponentFileTree) RenderDragHelper(inParams InParams) error
- func (i *ComponentFileTree) RenderExpandSceneSet(event cptype.ComponentEvent) error
- func (i *ComponentFileTree) RenderExportSceneSet(event cptype.ComponentEvent, inParams InParams) error
- func (i *ComponentFileTree) RenderFileTree(inParams InParams) error
- func (i *ComponentFileTree) RenderProtocol(c *cptype.Component, g *cptype.GlobalStateData)
- func (i *ComponentFileTree) RenderRefSceneSet(event cptype.ComponentEvent) error
- func (i *ComponentFileTree) RenderSceneSets(inParams InParams, operationKey apistructs.OperationKey) error
- func (i *ComponentFileTree) RenderUpdateScene(event cptype.ComponentEvent) error
- func (i *ComponentFileTree) RenderUpdateSceneSet(event cptype.ComponentEvent) error
- func (i *ComponentFileTree) SetSceneSetClick(setID int)
- type DeleteOperation
- type DeleteOperationData
- type DragParams
- type InParams
- type Operation
- type OperationBase
- type Scene
- type SceneSet
- type SceneSetOperation
- type SceneSetOperationMeta
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddSceneOperation ¶
type AddSceneOperation struct {
OperationBase
}
type ComponentFileTree ¶
type ComponentFileTree struct { CompName string `json:"name"` Data []SceneSet `json:"data"` Operations map[string]interface{} `json:"operations"` State State `json:"state"` Props map[string]interface{} `json:"props"` // contains filtered or unexported fields }
func (*ComponentFileTree) DragScene ¶
func (i *ComponentFileTree) DragScene(from, to int) error
func (*ComponentFileTree) DragSceneSet ¶
func (i *ComponentFileTree) DragSceneSet(from, to int, projectId uint64) error
func (*ComponentFileTree) DragSceneToSceneSet ¶
func (i *ComponentFileTree) DragSceneToSceneSet(from, to int) error
func (*ComponentFileTree) GenComponentState ¶
func (i *ComponentFileTree) GenComponentState(c *cptype.Component) error
GenComponentState 获取state
func (*ComponentFileTree) Render ¶
func (i *ComponentFileTree) Render(ctx context.Context, c *cptype.Component, scenario cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) (err error)
func (*ComponentFileTree) RenderAddScene ¶
func (i *ComponentFileTree) RenderAddScene(event cptype.ComponentEvent) error
func (*ComponentFileTree) RenderClickScene ¶
func (i *ComponentFileTree) RenderClickScene(event cptype.ComponentEvent) error
func (*ComponentFileTree) RenderClickSceneSet ¶
func (i *ComponentFileTree) RenderClickSceneSet(event cptype.ComponentEvent) error
func (*ComponentFileTree) RenderCopyScene ¶
func (i *ComponentFileTree) RenderCopyScene(inParams InParams, event cptype.ComponentEvent) error
func (*ComponentFileTree) RenderDeleteScene ¶
func (i *ComponentFileTree) RenderDeleteScene(event cptype.ComponentEvent) error
func (*ComponentFileTree) RenderDeleteSceneSet ¶
func (i *ComponentFileTree) RenderDeleteSceneSet(event cptype.ComponentEvent, inParams InParams) error
func (*ComponentFileTree) RenderDragHelper ¶
func (i *ComponentFileTree) RenderDragHelper(inParams InParams) error
func (*ComponentFileTree) RenderExpandSceneSet ¶
func (i *ComponentFileTree) RenderExpandSceneSet(event cptype.ComponentEvent) error
func (*ComponentFileTree) RenderExportSceneSet ¶
func (i *ComponentFileTree) RenderExportSceneSet(event cptype.ComponentEvent, inParams InParams) error
func (*ComponentFileTree) RenderFileTree ¶
func (i *ComponentFileTree) RenderFileTree(inParams InParams) error
func (*ComponentFileTree) RenderProtocol ¶
func (i *ComponentFileTree) RenderProtocol(c *cptype.Component, g *cptype.GlobalStateData)
func (*ComponentFileTree) RenderRefSceneSet ¶
func (i *ComponentFileTree) RenderRefSceneSet(event cptype.ComponentEvent) error
func (*ComponentFileTree) RenderSceneSets ¶
func (i *ComponentFileTree) RenderSceneSets(inParams InParams, operationKey apistructs.OperationKey) error
func (*ComponentFileTree) RenderUpdateScene ¶
func (i *ComponentFileTree) RenderUpdateScene(event cptype.ComponentEvent) error
func (*ComponentFileTree) RenderUpdateSceneSet ¶
func (i *ComponentFileTree) RenderUpdateSceneSet(event cptype.ComponentEvent) error
func (*ComponentFileTree) SetSceneSetClick ¶
func (i *ComponentFileTree) SetSceneSetClick(setID int)
type DeleteOperation ¶
type DeleteOperationData ¶
type DeleteOperationData struct {
Key string `json:"key"`
}
type DragParams ¶
type OperationBase ¶
type SceneSet ¶
type SceneSet struct { Key string `json:"key"` Title string `json:"title"` Icon string `json:"icon"` IsColorIcon bool `json:"isColorIcon"` IsLeaf bool `json:"isLeaf"` ClickToExpand bool `json:"clickToExpand"` Selectable bool `json:"selectable"` Operations map[string]interface{} `json:"operations"` Children []Scene `json:"children"` Type string `json:"type"` Draggable bool `json:"draggable"` DropPosition []int `json:"dropPosition"` }
type SceneSetOperation ¶
type SceneSetOperationMeta ¶
type State ¶
type State struct { ExpandedKeys []string `json:"expandedKeys"` SelectedKeys []string `json:"selectedKeys"` FormVisible bool `json:"formVisible"` SceneSetKey int `json:"sceneSetKey"` ActionType string `json:"actionType"` SetId__urlQuery string `json:"setId__urlQuery"` SceneId__urlQuery string `json:"sceneId__urlQuery"` SceneId uint64 `json:"sceneId"` DragParams DragParams `json:"dragParams"` PageNo int `json:"pageNo"` IsClickScene bool `json:"isClickScene"` IsClickFolderTable bool `json:"isClickFolderTable"` ClickFolderTableSceneID uint64 `json:"clickFolderTableSceneID"` IsAddParallel bool `json:"isAddParallel"` }
Click to show internal directories.
Click to hide internal directories.