adapters

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var QueryMap = map[string]string{"Equal": "=", "Like": "LIKE", "Inc": "IN", "Lte": "<=", "Gte": ">="}

Functions

This section is empty.

Types

type BaseRepo

type BaseRepo struct{}

func (*BaseRepo) QueryCondition

func (s *BaseRepo) QueryCondition(c Condition, tx *gorm.DB) *gorm.DB

type Condition

type Condition struct {
	Fields []string

	Equal map[string]interface{}
	Like  map[string]interface{}
	Inc   map[string]interface{}
	Lte   map[string]interface{}
	Gte   map[string]interface{}
	Not   map[string]interface{}
	Or    map[string]interface{}

	Offset int
	Limit  int
}

Jump to

Keyboard shortcuts

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