Documentation ¶
Index ¶
- func RenderCreator() protocol.CompRender
- type ClickMeta
- type ClickRowOperation
- type ComponentAction
- func (ca *ComponentAction) ClickScene(event apistructs.ComponentEvent) error
- func (ca *ComponentAction) CopyScene(ops interface{}, c *apistructs.Component, inParams InParams) error
- func (ca *ComponentAction) DeleteScene(ops interface{}) error
- func (ca *ComponentAction) ListScene() error
- func (ca *ComponentAction) Render(ctx context.Context, c *apistructs.Component, ...) error
- func (ca *ComponentAction) RenderState(c *apistructs.Component) error
- func (i *ComponentAction) SetCtxBundle(b protocol.ContextBundle) error
- func (ca *ComponentAction) UpdateScene(ops interface{}, c *apistructs.Component) error
- type Creator
- type Data
- type DataOperate
- type DataOperation
- type InParams
- type LatestStatus
- type Meta
- type Operation
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type ClickRowOperation ¶
type ComponentAction ¶
type ComponentAction struct { State State `json:"state"` Data []Data `json:"data"` Props map[string]interface{} `json:"props"` Operations map[string]interface{} `json:"operations"` UserIDs []string `json:"-"` // contains filtered or unexported fields }
func (*ComponentAction) ClickScene ¶
func (ca *ComponentAction) ClickScene(event apistructs.ComponentEvent) error
func (*ComponentAction) CopyScene ¶
func (ca *ComponentAction) CopyScene(ops interface{}, c *apistructs.Component, inParams InParams) error
func (*ComponentAction) DeleteScene ¶
func (ca *ComponentAction) DeleteScene(ops interface{}) error
func (*ComponentAction) ListScene ¶
func (ca *ComponentAction) ListScene() error
func (*ComponentAction) Render ¶
func (ca *ComponentAction) Render(ctx context.Context, c *apistructs.Component, scenario apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) error
func (*ComponentAction) RenderState ¶
func (ca *ComponentAction) RenderState(c *apistructs.Component) error
func (*ComponentAction) SetCtxBundle ¶
func (i *ComponentAction) SetCtxBundle(b protocol.ContextBundle) error
SetCtxBundle 设置bundle
func (*ComponentAction) UpdateScene ¶
func (ca *ComponentAction) UpdateScene(ops interface{}, c *apistructs.Component) error
type Data ¶
type Data struct { ID uint64 `json:"id"` CaseName string `json:"caseName"` StepCount string `json:"stepCount"` LatestStatus LatestStatus `json:"latestStatus"` Creator Creator `json:"creator"` CreatedAt string `json:"createdAt"` Operate DataOperate `json:"operate"` }
type DataOperate ¶
type DataOperation ¶
type LatestStatus ¶
type LatestStatus struct { RenderType string `json:"renderType"` Value string `json:"value"` Status apistructs.SceneStatus `json:"status"` }
type State ¶
type State struct { AutotestSceneRequest apistructs.AutotestSceneRequest `json:"autotestSceneRequest"` SceneId uint64 `json:"sceneId"` SetId uint64 `json:"setId"` Total uint64 `json:"total"` PageNo uint64 `json:"pageNo"` PageSize uint64 `json:"pageSize"` IsClick bool `json:"isClick"` // 点击目录树 IsClickFolderTableRow bool `json:"isClickFolderTableRow"` // 点击场景列表的一行 ClickFolderTableRowID uint64 `json:"clickFolderTableRowID"` // 点击行的ID }
Click to show internal directories.
Click to hide internal directories.