query

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserExtFilter

type UserExtFilter struct {
	AccountID []uint64
	UserID    []uint64
	Emails    []string
	Roles     []uint64
}

UserExtFilter of the objects list with extended fields

func (*UserExtFilter) AdjustPermissions

func (fl *UserExtFilter) AdjustPermissions(ctx context.Context) error

AdjustPermissions adjusts the filter based on the current user's permissions.

func (*UserExtFilter) PrepareQuery

func (fl *UserExtFilter) PrepareQuery(q *gorm.DB) *gorm.DB

PrepareQuery returns the query with applied filters

Jump to

Keyboard shortcuts

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