fileInfo

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type CommonFileInfo

type CommonFileInfo struct {
	Version    string                                           `json:"version,omitempty"`
	Name       string                                           `json:"name,omitempty"`
	Type       string                                           `json:"type,omitempty"`
	Props      map[string]interface{}                           `json:"props,omitempty"`
	State      State                                            `json:"state,omitempty"`
	Operations map[apistructs.OperationKey]apistructs.Operation `json:"operations,omitempty"`
	Data       Data                                             `json:"data,omitempty"`
	InParams   InParams                                         `json:"inParams,omitempty"`
}

type ComponentFileInfo

type ComponentFileInfo struct {
	CommonFileInfo
	// contains filtered or unexported fields
}

func (*ComponentFileInfo) GenComponentState

func (i *ComponentFileInfo) GenComponentState(c *apistructs.Component) error

GenComponentState 获取state

func (*ComponentFileInfo) GetInParams

func (i *ComponentFileInfo) GetInParams() error

func (ComponentFileInfo) GetReq

func (i ComponentFileInfo) GetReq() error

GetReq 从InParams中获取请求参数

func (*ComponentFileInfo) RenderProtocol

func (*ComponentFileInfo) SetCtxBundle

func (i *ComponentFileInfo) SetCtxBundle(b protocol.ContextBundle) error

SetCtxBundle 设置bundle

type Data

type Data struct {
	apistructs.AutoTestScene
	CreateATString string `json:"createAtString"`
	UpdateATString string `json:"updateAtString"`
}

type InParams

type InParams struct {
	SceneID    uint64 `json:"sceneId__urlQuery"`
	SceneSetID uint64 `json:"sceneSetId__urlQuery"`
}

type PropColumn

type PropColumn struct {
	Label      string `json:"label"`
	ValueKey   string `json:"valueKey"`
	RenderType string `json:"renderType,omitempty"`
}

type State

type State struct {
	AutotestSceneRequest apistructs.AutotestSceneRequest `json:"autotestSceneRequest"`
	SceneId              uint64                          `json:"sceneId"`
}

Jump to

Keyboard shortcuts

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