apiEditor

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptySpecID string = "undefined"
)
View Source
const LoopFormFieldDefaultExpand = optionKey("defaultExpand")

placeholder for whether the loop strategy is expanded by default

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiEditor

type ApiEditor struct {
	base.DefaultProvider

	State State `json:"state"`
	// contains filtered or unexported fields
}

func (*ApiEditor) ExecuteApi

func (ae *ApiEditor) ExecuteApi(ops interface{}) error

ExecuteApi 小试一把

func (*ApiEditor) GenExecuteButton

func (ae *ApiEditor) GenExecuteButton(ctx context.Context) (string, error)

func (*ApiEditor) Render

func (*ApiEditor) Save

func (ae *ApiEditor) Save(c *cptype.Component) error

Save 保存

type AttemptTestAll

type AttemptTestAll struct {
	Visible bool                   `json:"visible"`
	Status  string                 `json:"status"`
	Data    map[string]interface{} `json:"data"`
}

type ClickOperation

type ClickOperation struct {
	Key    string      `json:"key"`
	Reload bool        `json:"reload"`
	Meta   interface{} `json:"meta"`
}

type Input

type Input struct {
	Label    string  `json:"label"`
	Value    string  `json:"value"`
	IsLeaf   bool    `json:"isLeaf"`
	ToolTip  string  `json:"tooltip"`
	Children []Input `json:"children"`
}

Input 接口入参结构体

type Menu struct {
	Text       string                 `json:"text"`
	Key        string                 `json:"key"`
	Operations map[string]interface{} `json:"operations"`
}

type Meta

type Meta struct {
	Env       string `json:"env"`
	ScenesID  uint64 `json:"scenesID"`
	ConfigEnv string `json:"configEnv"`
}

func GetOpsInfo

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

type OpMetaInfo

type OpMetaInfo struct {
	Meta Meta `json:"meta"`
}

type State

type State struct {
	// 小试一把
	AttemptTest            AttemptTestAll `json:"attemptTest"`
	ConfigManageNamespaces string         `json:"configManageNamespaces"`

	// 步骤信息
	StepId    uint64 `json:"stepId"`
	SceneId   uint64 `json:"sceneId"`
	IsFirstIn bool   `json:"isFirstIn"` // 是否从步骤中点击进入
}

Jump to

Keyboard shortcuts

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