folderDetailTable

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type ClickMeta

type ClickMeta struct {
	RowData Data `json:"rowData"`
}

type ClickRowOperation

type ClickRowOperation struct {
	Key      string    `json:"key"`
	Reload   bool      `json:"reload"`
	FillMeta string    `json:"fillMeta"`
	Meta     ClickMeta `json:"meta"`
}

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) 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 Creator

type Creator struct {
	RenderType string `json:"renderType"`
	Value      string `json:"value"`
}

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 DataOperate struct {
	RenderType string                 `json:"renderType"`
	Operations map[string]interface{} `json:"operations"`
}

type DataOperation

type DataOperation struct {
	Key     string `json:"key"`
	Text    string `json:"text"`
	Reload  bool   `json:"reload"`
	Confirm string `json:"confirm"`
	Meta    Meta   `json:"meta"`
}

type InParams

type InParams struct {
	SpaceId uint64 `json:"spaceId"`
	SceneID string `json:"sceneId__urlQuery"`
}

type LatestStatus

type LatestStatus struct {
	RenderType string                 `json:"renderType"`
	Value      string                 `json:"value"`
	Status     apistructs.SceneStatus `json:"status"`
}

type Meta

type Meta struct {
	ID uint64 `json:"id"`
}

func GetOpsInfo

func GetOpsInfo(opsData interface{}) (*Meta, error)

type Operation

type Operation struct {
	Key    string `json:"key"`
	Reload bool   `json:"reload"`
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL