definition

package
v1.1.17 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCondition

func AddCondition(conditions *clause.Conditions, op string, columnName string, value any) error

func GetColumnName

func GetColumnName(domainName string, fieldName string) (string, error)

func IsSupportedOperator

func IsSupportedOperator(op string) bool

func RegisterByDomainEntity

func RegisterByDomainEntity(items ...RegisterByEntityItem) error

Types

type Entity

type Entity struct {
	FieldType   string
	FieldName   string
	FieldCNName string
	Operators   []Operator
	ColumnName  string
}

func GetQueryRuleDefinitions

func GetQueryRuleDefinitions(domainName string) []Entity

type GetQueryRuleDefinitionQueryParams

type GetQueryRuleDefinitionQueryParams struct {
	DomainName string `form:"domainName" binding:"required" assign:"toField:DomainName"`
}

type Info

type Info struct {
	FieldType   string     `json:"fieldType"`
	FieldName   string     `json:"fieldName"`
	FieldCNName string     `json:"fieldCNName"`
	Operators   []Operator `json:"operators"`
}

type Operator

type Operator struct {
	Name   string `json:"name"`
	CNName string `json:"cnName"`
}

type RegisterByEntityItem

type RegisterByEntityItem struct {
	Entity   entity.Entity
	FieldMap map[string]string
}

type Simple

type Simple struct {
	// schema
	Schema string
}

Simple Bind参数

func (*Simple) Bind

func (simple *Simple) Bind(binder *binding.Binder)

Jump to

Keyboard shortcuts

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