folderDetailTable

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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