parser

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandClicks added in v1.1.1

func ExpandClicks(keys []string, allKeys []string) []string

[NAME][*] => 从 source.Clicks 中收集所有以 [NAME] 为前缀的 key,作为展开结果

Types

type ICallable

type ICallable interface {
	InputSchema(*schema.Input)
	SearchSchema(*schema.Table)
}

type IParser

type IParser interface {
	Using(ICallable)
	Build(*source.Value, *request.Search, *request.Account) (*any, error)
}

type InputParser

type InputParser struct {
	// contains filtered or unexported fields
}

func NewInputParser

func NewInputParser(handles []ICallable) *InputParser

func (*InputParser) Build

func (self *InputParser) Build(value *source.Value, request *request.Record) (any, error)

func (*InputParser) BuildClicks

func (self *InputParser) BuildClicks(input *source.Input) []source.Click

func (*InputParser) BuildFields

func (self *InputParser) BuildFields(input *source.Input) []source.Field

func (*InputParser) BuildInputs

func (self *InputParser) BuildInputs() []source.Input

func (*InputParser) BuildModel

func (self *InputParser) BuildModel() *source.Model

func (*InputParser) BuildXRules

func (self *InputParser) BuildXRules(input *source.Input) []source.XRule

func (*InputParser) CheckShown

func (self *InputParser) CheckShown(field source.Field, input *source.Input) string

func (*InputParser) PrepareReq

func (self *InputParser) PrepareReq(req *request.Record) *request.Record

func (*InputParser) Using

func (self *InputParser) Using(handle ICallable)

type TableParser

type TableParser struct {
	// contains filtered or unexported fields
}

func NewTableParser

func NewTableParser(handles []ICallable) *TableParser

func (*TableParser) Build

func (self *TableParser) Build(value *source.Value, request *request.Search) (*schema.Table, error)

func (*TableParser) BuildClicks

func (self *TableParser) BuildClicks(table *source.Table) []source.Click

func (*TableParser) BuildFields

func (self *TableParser) BuildFields(table *source.Table) []source.Field

func (*TableParser) BuildModel

func (self *TableParser) BuildModel() *source.Model

func (*TableParser) BuildTables

func (self *TableParser) BuildTables() []source.Table

func (*TableParser) CheckShown

func (self *TableParser) CheckShown(field source.Field, table *source.Table) string

func (*TableParser) PrepareReq

func (self *TableParser) PrepareReq(req *request.Search) *request.Search

func (*TableParser) Using

func (self *TableParser) Using(handle ICallable)

Jump to

Keyboard shortcuts

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