scope

package
v1.1.2-alpha4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 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 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