scope

package
v0.0.0-...-6e4d488 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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 []string) func(db *gorm.DB) *gorm.DB

InIdsScope 根据 id 查询 - ids 数据id

func MobileScope

func MobileScope(mobile string) func(db *gorm.DB) *gorm.DB

MobileScope 根据 Mobile 查询 - Mobile 数据Mobile

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