scope

package
v1.1.6-alpha1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdScope

func IdScope(id uint) func(db *gorm.DB) *gorm.DB

IdScope 根据 id 查询 - id 数据id

func InIdsScope

func InIdsScope(ids []uint) func(db *gorm.DB) *gorm.DB

InIdsScope 根据 id 查询 - ids 数据id

func InNamesScope added in v1.1.7

func InNamesScope(names []string) func(db *gorm.DB) *gorm.DB

InNamesScope 根据 name 查询 - names 数据

func InUuidsScope added in v1.1.7

func InUuidsScope(uuids []string) func(db *gorm.DB) *gorm.DB

InUuidsScope 根据 uuid 查询 - uuid

func NeIdScope

func NeIdScope(id uint) func(db *gorm.DB) *gorm.DB

NeIdScope 根据 !=id 查询 - id id

func PaginateScope

func PaginateScope(page, pageSize int, sort, orderBy string) func(db *gorm.DB) *gorm.DB

PaginateScope 分页方法 - page 页码 - pageSize 每页数量 - sort 排序方式 - orderBy 排序字段

Types

This section is empty.

Jump to

Keyboard shortcuts

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