form

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoComponents = errors.New("no ErrNoComponents like this")

Functions

func NewAppriseFlow

func NewAppriseFlow(conf *config.Config) (consensus.Guidance, error)

func NewRefs

func NewRefs(conf *config.Config) (consensus.Guidance, error)

func SetFieldValue

func SetFieldValue(ctx context.Context, data interface{}, ptr interface{}) error

SetFieldValue SetFieldValue.

Types

type Base

type Base struct {
	AppID   string
	TableID string

	UserID   string
	DepID    string
	UserName string
}

type CreateReq

type CreateReq struct {
	Base
	Entity consensus.Entity `json:"entity"`
	Ref    types.Ref        `json:"ref"`
}

type DeleteReq

type DeleteReq struct {
	Base
	Query types.Query `json:"query"`
}

type ExtraData

type ExtraData struct {
	AppID   string `json:"appID"`
	TableID string `json:"tableID"`
	ID      string `json:"id"`
}

ExtraData ExtraData.

type GetReq

type GetReq struct {
	Base
	Query types.Query `json:"query"`
	Ref   types.Ref   `json:"ref"`
	Aggs  types.Any   `json:"aggs"`
}

type OptionEntity

type OptionEntity struct {
	Entity map[string]interface{} `json:"entity"`
	Query  map[string]interface{} `json:"query"`
	Ref    map[string]interface{} `json:"ref"`
}

type RefData

type RefData struct {
	AppID         string                 `json:"appID"`
	TableID       string                 `json:"tableID"`
	Type          string                 `json:"type"`
	New           []interface{}          `json:"new"`
	Deleted       []interface{}          `json:"deleted"`
	Updated       []interface{}          `json:"updated"`
	Query         map[string]interface{} `json:"query"`
	SourceFieldID string                 `json:"sourceFieldId"`
	FieldName     string                 `json:"fieldName"`
	AggType       string                 `json:"aggType"`
}

RefData map[string] interface{}.

type SearchReq

type SearchReq struct {
	Base
	Page  int64
	Size  int64
	Sort  []string
	Query types.Query
	Aggs  types.Any `json:"aggs"`
}

type UpdateReq

type UpdateReq struct {
	Base
	Entity consensus.Entity `json:"entity"`
	Ref    types.Ref        `json:"ref"`
	Query  types.Query      `json:"query"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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