types

package
v0.0.0-...-dae8c3a Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound 判断是否为未找到

Types

type Cond

type Cond struct {
	Ands []string
	Ors  []string
}

Cond 查询条件

func (Cond) And

func (ths Cond) And(key string, value interface{}) *Cond

And 条件: and

func (Cond) Build

func (ths Cond) Build() string

Build 构建查询条件

func (Cond) Eq

func (ths Cond) Eq(key string, value interface{}) *Cond

Eq 条件: =

func (Cond) Ge

func (ths Cond) Ge(key string, value interface{}) *Cond

Ge 条件: >=

func (Cond) Gt

func (ths Cond) Gt(key string, value interface{}) *Cond

Gt 条件: >

func (Cond) Le

func (ths Cond) Le(key string, value interface{}) *Cond

Le 条件: <=

func (Cond) Like

func (ths Cond) Like(key string, value interface{}) *Cond

Like 条件: like

func (Cond) Lt

func (ths Cond) Lt(key string, value interface{}) *Cond

Lt 条件: <

func (Cond) Or

func (ths Cond) Or(key string, value interface{}) *Cond

Or 条件: or

func (Cond) Where

func (ths Cond) Where(wh string, args ...interface{}) *Cond

Where 条件: where

type QueryID

type QueryID struct {
	ID int64 `json:"id" form:"id" binding:"required"`
}

QueryID 查询ID

Jump to

Keyboard shortcuts

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