compare

package
v0.0.0-...-afb9b83 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldCompareFloat64

type FieldCompareFloat64 struct {
	//FieldValue float64
	Values []float64
}

func (*FieldCompareFloat64) BETWEEN

func (f *FieldCompareFloat64) BETWEEN(fieldValue interface{}) bool

func (*FieldCompareFloat64) EQ

func (f *FieldCompareFloat64) EQ(fieldValue interface{}) bool

func (*FieldCompareFloat64) GE

func (f *FieldCompareFloat64) GE(fieldValue interface{}) bool

func (*FieldCompareFloat64) GT

func (f *FieldCompareFloat64) GT(fieldValue interface{}) bool

func (*FieldCompareFloat64) IN

func (f *FieldCompareFloat64) IN(fieldValue interface{}) bool

func (*FieldCompareFloat64) LE

func (f *FieldCompareFloat64) LE(fieldValue interface{}) bool

func (*FieldCompareFloat64) LIKE

func (f *FieldCompareFloat64) LIKE(fieldValue interface{}, likeMods []types.LikeMod) bool

func (*FieldCompareFloat64) LT

func (f *FieldCompareFloat64) LT(fieldValue interface{}) bool

func (*FieldCompareFloat64) NE

func (f *FieldCompareFloat64) NE(fieldValue interface{}) bool

func (*FieldCompareFloat64) NOTIN

func (f *FieldCompareFloat64) NOTIN(fieldValue interface{}) bool

type FieldCompareInt

type FieldCompareInt struct {
	//FieldValue int
	Values []int
}

func (*FieldCompareInt) BETWEEN

func (f *FieldCompareInt) BETWEEN(fieldValue interface{}) bool

func (*FieldCompareInt) EQ

func (f *FieldCompareInt) EQ(fieldValue interface{}) bool

func (*FieldCompareInt) GE

func (f *FieldCompareInt) GE(fieldValue interface{}) bool

func (*FieldCompareInt) GT

func (f *FieldCompareInt) GT(fieldValue interface{}) bool

func (*FieldCompareInt) IN

func (f *FieldCompareInt) IN(fieldValue interface{}) bool

func (*FieldCompareInt) LE

func (f *FieldCompareInt) LE(fieldValue interface{}) bool

func (*FieldCompareInt) LIKE

func (f *FieldCompareInt) LIKE(fieldValue interface{}, likeMods []types.LikeMod) bool

func (*FieldCompareInt) LT

func (f *FieldCompareInt) LT(fieldValue interface{}) bool

func (*FieldCompareInt) NE

func (f *FieldCompareInt) NE(fieldValue interface{}) bool

func (*FieldCompareInt) NOTIN

func (f *FieldCompareInt) NOTIN(fieldValue interface{}) bool

type FieldCompareString

type FieldCompareString struct {
	//FieldValue string //struct 字段值
	Values []string
}

func (*FieldCompareString) BETWEEN

func (f *FieldCompareString) BETWEEN(fieldValue interface{}) bool

func (*FieldCompareString) EQ

func (f *FieldCompareString) EQ(fieldValue interface{}) bool

func (*FieldCompareString) GE

func (f *FieldCompareString) GE(fieldValue interface{}) bool

func (*FieldCompareString) GT

func (f *FieldCompareString) GT(fieldValue interface{}) bool

func (*FieldCompareString) IN

func (f *FieldCompareString) IN(fieldValue interface{}) bool

func (*FieldCompareString) LE

func (f *FieldCompareString) LE(fieldValue interface{}) bool

func (*FieldCompareString) LIKE

func (f *FieldCompareString) LIKE(fieldValue interface{}, likeMods []types.LikeMod) bool

func (*FieldCompareString) LT

func (f *FieldCompareString) LT(fieldValue interface{}) bool

func (*FieldCompareString) NE

func (f *FieldCompareString) NE(fieldValue interface{}) bool

func (*FieldCompareString) NOTIN

func (f *FieldCompareString) NOTIN(fieldValue interface{}) bool

type FieldCompareUint

type FieldCompareUint struct {
	//FieldValue uint
	Values []uint
}

func (*FieldCompareUint) BETWEEN

func (f *FieldCompareUint) BETWEEN(fieldValue interface{}) bool

func (*FieldCompareUint) EQ

func (f *FieldCompareUint) EQ(fieldValue interface{}) bool

func (*FieldCompareUint) GE

func (f *FieldCompareUint) GE(fieldValue interface{}) bool

func (*FieldCompareUint) GT

func (f *FieldCompareUint) GT(fieldValue interface{}) bool

func (*FieldCompareUint) IN

func (f *FieldCompareUint) IN(fieldValue interface{}) bool

func (*FieldCompareUint) LE

func (f *FieldCompareUint) LE(fieldValue interface{}) bool

func (*FieldCompareUint) LIKE

func (f *FieldCompareUint) LIKE(fieldValue interface{}, likeMods []types.LikeMod) bool

func (*FieldCompareUint) LT

func (f *FieldCompareUint) LT(fieldValue interface{}) bool

func (*FieldCompareUint) NE

func (f *FieldCompareUint) NE(fieldValue interface{}) bool

func (*FieldCompareUint) NOTIN

func (f *FieldCompareUint) NOTIN(fieldValue interface{}) bool

type IFieldCompare

type IFieldCompare interface {
	EQ(fieldValue interface{}) bool
	NE(fieldValue interface{}) bool
	LT(fieldValue interface{}) bool
	LE(fieldValue interface{}) bool
	GT(fieldValue interface{}) bool
	GE(fieldValue interface{}) bool
	IN(fieldValue interface{}) bool
	NOTIN(fieldValue interface{}) bool
	BETWEEN(fieldValue interface{}) bool
	LIKE(fieldValue interface{}, likeMods []types.LikeMod) bool
}

func GenerateFieldCompareMethod

func GenerateFieldCompareMethod(fieldType reflect.Type, params []types.WhereConditionValue, showLog string) IFieldCompare

func NewFieldCompareFloat64

func NewFieldCompareFloat64(params []types.WhereConditionValue) IFieldCompare

func NewFieldCompareInt

func NewFieldCompareInt(params []types.WhereConditionValue) IFieldCompare

func NewFieldCompareString

func NewFieldCompareString(params []types.WhereConditionValue) IFieldCompare

func NewFieldCompareUint

func NewFieldCompareUint(params []types.WhereConditionValue) IFieldCompare

Jump to

Keyboard shortcuts

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