roles

package
v0.3.9-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the roles type in the database.
	Label = "roles"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldRoleType holds the string denoting the role_type field in the database.
	FieldRoleType = "role_type"
	// FieldRoleStatus holds the string denoting the role_status field in the database.
	FieldRoleStatus = "role_status"
	// FieldSortOrder holds the string denoting the sort_order field in the database.
	FieldSortOrder = "sort_order"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// EdgeLionRolePermissions holds the string denoting the lion_role_permissions edge name in mutations.
	EdgeLionRolePermissions = "lion_role_permissions"
	// EdgeLionUserRoles holds the string denoting the lion_user_roles edge name in mutations.
	EdgeLionUserRoles = "lion_user_roles"
	// EdgeLionRoleGroups holds the string denoting the lion_role_groups edge name in mutations.
	EdgeLionRoleGroups = "lion_role_groups"
	// EdgeLionDepartmentRoles holds the string denoting the lion_department_roles edge name in mutations.
	EdgeLionDepartmentRoles = "lion_department_roles"
	// Table holds the table name of the roles in the database.
	Table = "lion_roles"
	// LionRolePermissionsTable is the table that holds the lion_role_permissions relation/edge.
	LionRolePermissionsTable = "lion_role_permissions"
	// LionRolePermissionsInverseTable is the table name for the RolePermissions entity.
	// It exists in this package in order to avoid circular dependency with the "rolepermissions" package.
	LionRolePermissionsInverseTable = "lion_role_permissions"
	// LionRolePermissionsColumn is the table column denoting the lion_role_permissions relation/edge.
	LionRolePermissionsColumn = "role_id"
	// LionUserRolesTable is the table that holds the lion_user_roles relation/edge.
	LionUserRolesTable = "lion_user_roles"
	// LionUserRolesInverseTable is the table name for the UserRoles entity.
	// It exists in this package in order to avoid circular dependency with the "userroles" package.
	LionUserRolesInverseTable = "lion_user_roles"
	// LionUserRolesColumn is the table column denoting the lion_user_roles relation/edge.
	LionUserRolesColumn = "role_id"
	// LionRoleGroupsTable is the table that holds the lion_role_groups relation/edge.
	LionRoleGroupsTable = "lion_group_roles"
	// LionRoleGroupsInverseTable is the table name for the GroupRoles entity.
	// It exists in this package in order to avoid circular dependency with the "grouproles" package.
	LionRoleGroupsInverseTable = "lion_group_roles"
	// LionRoleGroupsColumn is the table column denoting the lion_role_groups relation/edge.
	LionRoleGroupsColumn = "role_id"
	// LionDepartmentRolesTable is the table that holds the lion_department_roles relation/edge.
	LionDepartmentRolesTable = "lion_department_roles"
	// LionDepartmentRolesInverseTable is the table name for the DepartmentRoles entity.
	// It exists in this package in order to avoid circular dependency with the "departmentroles" package.
	LionDepartmentRolesInverseTable = "lion_department_roles"
	// LionDepartmentRolesColumn is the table column denoting the lion_department_roles relation/edge.
	LionDepartmentRolesColumn = "role_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultCreatedBy holds the default value on creation for the "created_by" field.
	DefaultCreatedBy int64
	// DefaultUpdatedBy holds the default value on creation for the "updated_by" field.
	DefaultUpdatedBy int64
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultRoleType holds the default value on creation for the "role_type" field.
	DefaultRoleType int
	// DefaultRoleStatus holds the default value on creation for the "role_status" field.
	DefaultRoleStatus int
	// DefaultSortOrder holds the default value on creation for the "sort_order" field.
	DefaultSortOrder int
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
)

Columns holds all SQL columns for roles fields.

Functions

func And

func And(predicates ...predicate.Roles) predicate.Roles

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Roles

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Roles

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Roles

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Roles

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Roles

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Roles

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Roles

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Roles

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Roles

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int64) predicate.Roles

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int64) predicate.Roles

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int64) predicate.Roles

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int64) predicate.Roles

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int64) predicate.Roles

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Roles

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int64) predicate.Roles

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int64) predicate.Roles

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.Roles

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int64) predicate.Roles

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Roles

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Roles

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Roles

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Roles

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Roles

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Roles

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Roles

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Roles

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Roles

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Roles

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Roles

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Roles

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.Roles

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Roles

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Roles

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Roles

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Roles

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Roles

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Roles

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Roles

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Roles

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Roles

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Roles

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Roles

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Roles

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Roles

DescriptionNotIn applies the NotIn predicate on the "description" field.

func HasLionDepartmentRoles

func HasLionDepartmentRoles() predicate.Roles

HasLionDepartmentRoles applies the HasEdge predicate on the "lion_department_roles" edge.

func HasLionDepartmentRolesWith

func HasLionDepartmentRolesWith(preds ...predicate.DepartmentRoles) predicate.Roles

HasLionDepartmentRolesWith applies the HasEdge predicate on the "lion_department_roles" edge with a given conditions (other predicates).

func HasLionRoleGroups

func HasLionRoleGroups() predicate.Roles

HasLionRoleGroups applies the HasEdge predicate on the "lion_role_groups" edge.

func HasLionRoleGroupsWith

func HasLionRoleGroupsWith(preds ...predicate.GroupRoles) predicate.Roles

HasLionRoleGroupsWith applies the HasEdge predicate on the "lion_role_groups" edge with a given conditions (other predicates).

func HasLionRolePermissions

func HasLionRolePermissions() predicate.Roles

HasLionRolePermissions applies the HasEdge predicate on the "lion_role_permissions" edge.

func HasLionRolePermissionsWith

func HasLionRolePermissionsWith(preds ...predicate.RolePermissions) predicate.Roles

HasLionRolePermissionsWith applies the HasEdge predicate on the "lion_role_permissions" edge with a given conditions (other predicates).

func HasLionUserRoles

func HasLionUserRoles() predicate.Roles

HasLionUserRoles applies the HasEdge predicate on the "lion_user_roles" edge.

func HasLionUserRolesWith

func HasLionUserRolesWith(preds ...predicate.UserRoles) predicate.Roles

HasLionUserRolesWith applies the HasEdge predicate on the "lion_user_roles" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Roles

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Roles

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Roles

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Roles

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Roles

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Roles

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Roles

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Roles

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Roles

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Roles

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Roles

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Roles

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Roles

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Roles

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Roles

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Roles

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Roles

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Roles

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Roles

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Roles

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Roles

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Roles

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Roles

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Roles) predicate.Roles

Or groups predicates with the OR operator between them.

func RoleStatus

func RoleStatus(v int) predicate.Roles

RoleStatus applies equality check predicate on the "role_status" field. It's identical to RoleStatusEQ.

func RoleStatusEQ

func RoleStatusEQ(v int) predicate.Roles

RoleStatusEQ applies the EQ predicate on the "role_status" field.

func RoleStatusGT

func RoleStatusGT(v int) predicate.Roles

RoleStatusGT applies the GT predicate on the "role_status" field.

func RoleStatusGTE

func RoleStatusGTE(v int) predicate.Roles

RoleStatusGTE applies the GTE predicate on the "role_status" field.

func RoleStatusIn

func RoleStatusIn(vs ...int) predicate.Roles

RoleStatusIn applies the In predicate on the "role_status" field.

func RoleStatusLT

func RoleStatusLT(v int) predicate.Roles

RoleStatusLT applies the LT predicate on the "role_status" field.

func RoleStatusLTE

func RoleStatusLTE(v int) predicate.Roles

RoleStatusLTE applies the LTE predicate on the "role_status" field.

func RoleStatusNEQ

func RoleStatusNEQ(v int) predicate.Roles

RoleStatusNEQ applies the NEQ predicate on the "role_status" field.

func RoleStatusNotIn

func RoleStatusNotIn(vs ...int) predicate.Roles

RoleStatusNotIn applies the NotIn predicate on the "role_status" field.

func RoleType

func RoleType(v int) predicate.Roles

RoleType applies equality check predicate on the "role_type" field. It's identical to RoleTypeEQ.

func RoleTypeEQ

func RoleTypeEQ(v int) predicate.Roles

RoleTypeEQ applies the EQ predicate on the "role_type" field.

func RoleTypeGT

func RoleTypeGT(v int) predicate.Roles

RoleTypeGT applies the GT predicate on the "role_type" field.

func RoleTypeGTE

func RoleTypeGTE(v int) predicate.Roles

RoleTypeGTE applies the GTE predicate on the "role_type" field.

func RoleTypeIn

func RoleTypeIn(vs ...int) predicate.Roles

RoleTypeIn applies the In predicate on the "role_type" field.

func RoleTypeLT

func RoleTypeLT(v int) predicate.Roles

RoleTypeLT applies the LT predicate on the "role_type" field.

func RoleTypeLTE

func RoleTypeLTE(v int) predicate.Roles

RoleTypeLTE applies the LTE predicate on the "role_type" field.

func RoleTypeNEQ

func RoleTypeNEQ(v int) predicate.Roles

RoleTypeNEQ applies the NEQ predicate on the "role_type" field.

func RoleTypeNotIn

func RoleTypeNotIn(vs ...int) predicate.Roles

RoleTypeNotIn applies the NotIn predicate on the "role_type" field.

func SortOrder

func SortOrder(v int) predicate.Roles

SortOrder applies equality check predicate on the "sort_order" field. It's identical to SortOrderEQ.

func SortOrderEQ

func SortOrderEQ(v int) predicate.Roles

SortOrderEQ applies the EQ predicate on the "sort_order" field.

func SortOrderGT

func SortOrderGT(v int) predicate.Roles

SortOrderGT applies the GT predicate on the "sort_order" field.

func SortOrderGTE

func SortOrderGTE(v int) predicate.Roles

SortOrderGTE applies the GTE predicate on the "sort_order" field.

func SortOrderIn

func SortOrderIn(vs ...int) predicate.Roles

SortOrderIn applies the In predicate on the "sort_order" field.

func SortOrderLT

func SortOrderLT(v int) predicate.Roles

SortOrderLT applies the LT predicate on the "sort_order" field.

func SortOrderLTE

func SortOrderLTE(v int) predicate.Roles

SortOrderLTE applies the LTE predicate on the "sort_order" field.

func SortOrderNEQ

func SortOrderNEQ(v int) predicate.Roles

SortOrderNEQ applies the NEQ predicate on the "sort_order" field.

func SortOrderNotIn

func SortOrderNotIn(vs ...int) predicate.Roles

SortOrderNotIn applies the NotIn predicate on the "sort_order" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Roles

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Roles

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Roles

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Roles

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Roles

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Roles

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Roles

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Roles

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Roles

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int64) predicate.Roles

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.Roles

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int64) predicate.Roles

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.Roles

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int64) predicate.Roles

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Roles

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int64) predicate.Roles

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.Roles

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.Roles

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int64) predicate.Roles

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Roles

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Roles queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByLionDepartmentRoles

func ByLionDepartmentRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLionDepartmentRoles orders the results by lion_department_roles terms.

func ByLionDepartmentRolesCount

func ByLionDepartmentRolesCount(opts ...sql.OrderTermOption) OrderOption

ByLionDepartmentRolesCount orders the results by lion_department_roles count.

func ByLionRoleGroups

func ByLionRoleGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLionRoleGroups orders the results by lion_role_groups terms.

func ByLionRoleGroupsCount

func ByLionRoleGroupsCount(opts ...sql.OrderTermOption) OrderOption

ByLionRoleGroupsCount orders the results by lion_role_groups count.

func ByLionRolePermissions

func ByLionRolePermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLionRolePermissions orders the results by lion_role_permissions terms.

func ByLionRolePermissionsCount

func ByLionRolePermissionsCount(opts ...sql.OrderTermOption) OrderOption

ByLionRolePermissionsCount orders the results by lion_role_permissions count.

func ByLionUserRoles

func ByLionUserRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByLionUserRoles orders the results by lion_user_roles terms.

func ByLionUserRolesCount

func ByLionUserRolesCount(opts ...sql.OrderTermOption) OrderOption

ByLionUserRolesCount orders the results by lion_user_roles count.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByRoleStatus

func ByRoleStatus(opts ...sql.OrderTermOption) OrderOption

ByRoleStatus orders the results by the role_status field.

func ByRoleType

func ByRoleType(opts ...sql.OrderTermOption) OrderOption

ByRoleType orders the results by the role_type field.

func BySortOrder

func BySortOrder(opts ...sql.OrderTermOption) OrderOption

BySortOrder orders the results by the sort_order field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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