Documentation ¶
Index ¶
- Constants
- Variables
- func Ancestors(v string) predicate.Department
- func AncestorsContains(v string) predicate.Department
- func AncestorsContainsFold(v string) predicate.Department
- func AncestorsEQ(v string) predicate.Department
- func AncestorsEqualFold(v string) predicate.Department
- func AncestorsGT(v string) predicate.Department
- func AncestorsGTE(v string) predicate.Department
- func AncestorsHasPrefix(v string) predicate.Department
- func AncestorsHasSuffix(v string) predicate.Department
- func AncestorsIn(vs ...string) predicate.Department
- func AncestorsIsNil() predicate.Department
- func AncestorsLT(v string) predicate.Department
- func AncestorsLTE(v string) predicate.Department
- func AncestorsNEQ(v string) predicate.Department
- func AncestorsNotIn(vs ...string) predicate.Department
- func AncestorsNotNil() predicate.Department
- func And(predicates ...predicate.Department) predicate.Department
- func CreatedAt(v time.Time) predicate.Department
- func CreatedAtEQ(v time.Time) predicate.Department
- func CreatedAtGT(v time.Time) predicate.Department
- func CreatedAtGTE(v time.Time) predicate.Department
- func CreatedAtIn(vs ...time.Time) predicate.Department
- func CreatedAtLT(v time.Time) predicate.Department
- func CreatedAtLTE(v time.Time) predicate.Department
- func CreatedAtNEQ(v time.Time) predicate.Department
- func CreatedAtNotIn(vs ...time.Time) predicate.Department
- func Email(v string) predicate.Department
- func EmailContains(v string) predicate.Department
- func EmailContainsFold(v string) predicate.Department
- func EmailEQ(v string) predicate.Department
- func EmailEqualFold(v string) predicate.Department
- func EmailGT(v string) predicate.Department
- func EmailGTE(v string) predicate.Department
- func EmailHasPrefix(v string) predicate.Department
- func EmailHasSuffix(v string) predicate.Department
- func EmailIn(vs ...string) predicate.Department
- func EmailLT(v string) predicate.Department
- func EmailLTE(v string) predicate.Department
- func EmailNEQ(v string) predicate.Department
- func EmailNotIn(vs ...string) predicate.Department
- func HasChildren() predicate.Department
- func HasChildrenWith(preds ...predicate.Department) predicate.Department
- func HasParent() predicate.Department
- func HasParentWith(preds ...predicate.Department) predicate.Department
- func HasUsers() predicate.Department
- func HasUsersWith(preds ...predicate.User) predicate.Department
- func ID(id uint64) predicate.Department
- func IDEQ(id uint64) predicate.Department
- func IDGT(id uint64) predicate.Department
- func IDGTE(id uint64) predicate.Department
- func IDIn(ids ...uint64) predicate.Department
- func IDLT(id uint64) predicate.Department
- func IDLTE(id uint64) predicate.Department
- func IDNEQ(id uint64) predicate.Department
- func IDNotIn(ids ...uint64) predicate.Department
- func Leader(v string) predicate.Department
- func LeaderContains(v string) predicate.Department
- func LeaderContainsFold(v string) predicate.Department
- func LeaderEQ(v string) predicate.Department
- func LeaderEqualFold(v string) predicate.Department
- func LeaderGT(v string) predicate.Department
- func LeaderGTE(v string) predicate.Department
- func LeaderHasPrefix(v string) predicate.Department
- func LeaderHasSuffix(v string) predicate.Department
- func LeaderIn(vs ...string) predicate.Department
- func LeaderLT(v string) predicate.Department
- func LeaderLTE(v string) predicate.Department
- func LeaderNEQ(v string) predicate.Department
- func LeaderNotIn(vs ...string) predicate.Department
- func Name(v string) predicate.Department
- func NameContains(v string) predicate.Department
- func NameContainsFold(v string) predicate.Department
- func NameEQ(v string) predicate.Department
- func NameEqualFold(v string) predicate.Department
- func NameGT(v string) predicate.Department
- func NameGTE(v string) predicate.Department
- func NameHasPrefix(v string) predicate.Department
- func NameHasSuffix(v string) predicate.Department
- func NameIn(vs ...string) predicate.Department
- func NameLT(v string) predicate.Department
- func NameLTE(v string) predicate.Department
- func NameNEQ(v string) predicate.Department
- func NameNotIn(vs ...string) predicate.Department
- func Not(p predicate.Department) predicate.Department
- func Or(predicates ...predicate.Department) predicate.Department
- func ParentID(v uint64) predicate.Department
- func ParentIDEQ(v uint64) predicate.Department
- func ParentIDIn(vs ...uint64) predicate.Department
- func ParentIDIsNil() predicate.Department
- func ParentIDNEQ(v uint64) predicate.Department
- func ParentIDNotIn(vs ...uint64) predicate.Department
- func ParentIDNotNil() predicate.Department
- func Phone(v string) predicate.Department
- func PhoneContains(v string) predicate.Department
- func PhoneContainsFold(v string) predicate.Department
- func PhoneEQ(v string) predicate.Department
- func PhoneEqualFold(v string) predicate.Department
- func PhoneGT(v string) predicate.Department
- func PhoneGTE(v string) predicate.Department
- func PhoneHasPrefix(v string) predicate.Department
- func PhoneHasSuffix(v string) predicate.Department
- func PhoneIn(vs ...string) predicate.Department
- func PhoneLT(v string) predicate.Department
- func PhoneLTE(v string) predicate.Department
- func PhoneNEQ(v string) predicate.Department
- func PhoneNotIn(vs ...string) predicate.Department
- func Remark(v string) predicate.Department
- func RemarkContains(v string) predicate.Department
- func RemarkContainsFold(v string) predicate.Department
- func RemarkEQ(v string) predicate.Department
- func RemarkEqualFold(v string) predicate.Department
- func RemarkGT(v string) predicate.Department
- func RemarkGTE(v string) predicate.Department
- func RemarkHasPrefix(v string) predicate.Department
- func RemarkHasSuffix(v string) predicate.Department
- func RemarkIn(vs ...string) predicate.Department
- func RemarkIsNil() predicate.Department
- func RemarkLT(v string) predicate.Department
- func RemarkLTE(v string) predicate.Department
- func RemarkNEQ(v string) predicate.Department
- func RemarkNotIn(vs ...string) predicate.Department
- func RemarkNotNil() predicate.Department
- func Sort(v uint32) predicate.Department
- func SortEQ(v uint32) predicate.Department
- func SortGT(v uint32) predicate.Department
- func SortGTE(v uint32) predicate.Department
- func SortIn(vs ...uint32) predicate.Department
- func SortLT(v uint32) predicate.Department
- func SortLTE(v uint32) predicate.Department
- func SortNEQ(v uint32) predicate.Department
- func SortNotIn(vs ...uint32) predicate.Department
- func Status(v uint8) predicate.Department
- func StatusEQ(v uint8) predicate.Department
- func StatusGT(v uint8) predicate.Department
- func StatusGTE(v uint8) predicate.Department
- func StatusIn(vs ...uint8) predicate.Department
- func StatusIsNil() predicate.Department
- func StatusLT(v uint8) predicate.Department
- func StatusLTE(v uint8) predicate.Department
- func StatusNEQ(v uint8) predicate.Department
- func StatusNotIn(vs ...uint8) predicate.Department
- func StatusNotNil() predicate.Department
- func UpdatedAt(v time.Time) predicate.Department
- func UpdatedAtEQ(v time.Time) predicate.Department
- func UpdatedAtGT(v time.Time) predicate.Department
- func UpdatedAtGTE(v time.Time) predicate.Department
- func UpdatedAtIn(vs ...time.Time) predicate.Department
- func UpdatedAtLT(v time.Time) predicate.Department
- func UpdatedAtLTE(v time.Time) predicate.Department
- func UpdatedAtNEQ(v time.Time) predicate.Department
- func UpdatedAtNotIn(vs ...time.Time) predicate.Department
- func ValidColumn(column string) bool
- type OrderOption
- func ByAncestors(opts ...sql.OrderTermOption) OrderOption
- func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLeader(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentID(opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByRemark(opts ...sql.OrderTermOption) OrderOption
- func BySort(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the department type in the database. Label = "department" // 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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldAncestors holds the string denoting the ancestors field in the database. FieldAncestors = "ancestors" // FieldLeader holds the string denoting the leader field in the database. FieldLeader = "leader" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldRemark holds the string denoting the remark field in the database. FieldRemark = "remark" // FieldParentID holds the string denoting the parent_id field in the database. FieldParentID = "parent_id" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // Table holds the table name of the department in the database. Table = "sys_departments" // ParentTable is the table that holds the parent relation/edge. ParentTable = "sys_departments" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_id" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "sys_departments" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_id" // UsersTable is the table that holds the users relation/edge. UsersTable = "sys_users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "sys_users" // UsersColumn is the table column denoting the users relation/edge. UsersColumn = "department_id" )
Variables ¶
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 // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus uint8 // DefaultSort holds the default value on creation for the "sort" field. DefaultSort uint32 // DefaultParentID holds the default value on creation for the "parent_id" field. DefaultParentID uint64 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldSort, FieldName, FieldAncestors, FieldLeader, FieldPhone, FieldEmail, FieldRemark, FieldParentID, }
Columns holds all SQL columns for department fields.
Functions ¶
func Ancestors ¶
func Ancestors(v string) predicate.Department
Ancestors applies equality check predicate on the "ancestors" field. It's identical to AncestorsEQ.
func AncestorsContains ¶
func AncestorsContains(v string) predicate.Department
AncestorsContains applies the Contains predicate on the "ancestors" field.
func AncestorsContainsFold ¶
func AncestorsContainsFold(v string) predicate.Department
AncestorsContainsFold applies the ContainsFold predicate on the "ancestors" field.
func AncestorsEQ ¶
func AncestorsEQ(v string) predicate.Department
AncestorsEQ applies the EQ predicate on the "ancestors" field.
func AncestorsEqualFold ¶
func AncestorsEqualFold(v string) predicate.Department
AncestorsEqualFold applies the EqualFold predicate on the "ancestors" field.
func AncestorsGT ¶
func AncestorsGT(v string) predicate.Department
AncestorsGT applies the GT predicate on the "ancestors" field.
func AncestorsGTE ¶
func AncestorsGTE(v string) predicate.Department
AncestorsGTE applies the GTE predicate on the "ancestors" field.
func AncestorsHasPrefix ¶
func AncestorsHasPrefix(v string) predicate.Department
AncestorsHasPrefix applies the HasPrefix predicate on the "ancestors" field.
func AncestorsHasSuffix ¶
func AncestorsHasSuffix(v string) predicate.Department
AncestorsHasSuffix applies the HasSuffix predicate on the "ancestors" field.
func AncestorsIn ¶
func AncestorsIn(vs ...string) predicate.Department
AncestorsIn applies the In predicate on the "ancestors" field.
func AncestorsIsNil ¶
func AncestorsIsNil() predicate.Department
AncestorsIsNil applies the IsNil predicate on the "ancestors" field.
func AncestorsLT ¶
func AncestorsLT(v string) predicate.Department
AncestorsLT applies the LT predicate on the "ancestors" field.
func AncestorsLTE ¶
func AncestorsLTE(v string) predicate.Department
AncestorsLTE applies the LTE predicate on the "ancestors" field.
func AncestorsNEQ ¶
func AncestorsNEQ(v string) predicate.Department
AncestorsNEQ applies the NEQ predicate on the "ancestors" field.
func AncestorsNotIn ¶
func AncestorsNotIn(vs ...string) predicate.Department
AncestorsNotIn applies the NotIn predicate on the "ancestors" field.
func AncestorsNotNil ¶
func AncestorsNotNil() predicate.Department
AncestorsNotNil applies the NotNil predicate on the "ancestors" field.
func And ¶
func And(predicates ...predicate.Department) predicate.Department
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Department
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Department
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Department
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Department
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Department
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Department
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Department
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Department
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Department
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Email ¶
func Email(v string) predicate.Department
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
func EmailContains(v string) predicate.Department
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
func EmailContainsFold(v string) predicate.Department
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEQ ¶
func EmailEQ(v string) predicate.Department
EmailEQ applies the EQ predicate on the "email" field.
func EmailEqualFold ¶
func EmailEqualFold(v string) predicate.Department
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailGT ¶
func EmailGT(v string) predicate.Department
EmailGT applies the GT predicate on the "email" field.
func EmailGTE ¶
func EmailGTE(v string) predicate.Department
EmailGTE applies the GTE predicate on the "email" field.
func EmailHasPrefix ¶
func EmailHasPrefix(v string) predicate.Department
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
func EmailHasSuffix(v string) predicate.Department
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailIn ¶
func EmailIn(vs ...string) predicate.Department
EmailIn applies the In predicate on the "email" field.
func EmailLT ¶
func EmailLT(v string) predicate.Department
EmailLT applies the LT predicate on the "email" field.
func EmailLTE ¶
func EmailLTE(v string) predicate.Department
EmailLTE applies the LTE predicate on the "email" field.
func EmailNEQ ¶
func EmailNEQ(v string) predicate.Department
EmailNEQ applies the NEQ predicate on the "email" field.
func EmailNotIn ¶
func EmailNotIn(vs ...string) predicate.Department
EmailNotIn applies the NotIn predicate on the "email" field.
func HasChildren ¶
func HasChildren() predicate.Department
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
func HasChildrenWith(preds ...predicate.Department) predicate.Department
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasParent ¶
func HasParent() predicate.Department
HasParent applies the HasEdge predicate on the "parent" edge.
func HasParentWith ¶
func HasParentWith(preds ...predicate.Department) predicate.Department
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func HasUsers ¶
func HasUsers() predicate.Department
HasUsers applies the HasEdge predicate on the "users" edge.
func HasUsersWith ¶
func HasUsersWith(preds ...predicate.User) predicate.Department
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uint64) predicate.Department
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uint64) predicate.Department
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uint64) predicate.Department
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uint64) predicate.Department
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uint64) predicate.Department
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uint64) predicate.Department
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uint64) predicate.Department
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uint64) predicate.Department
IDNotIn applies the NotIn predicate on the ID field.
func Leader ¶
func Leader(v string) predicate.Department
Leader applies equality check predicate on the "leader" field. It's identical to LeaderEQ.
func LeaderContains ¶
func LeaderContains(v string) predicate.Department
LeaderContains applies the Contains predicate on the "leader" field.
func LeaderContainsFold ¶
func LeaderContainsFold(v string) predicate.Department
LeaderContainsFold applies the ContainsFold predicate on the "leader" field.
func LeaderEQ ¶
func LeaderEQ(v string) predicate.Department
LeaderEQ applies the EQ predicate on the "leader" field.
func LeaderEqualFold ¶
func LeaderEqualFold(v string) predicate.Department
LeaderEqualFold applies the EqualFold predicate on the "leader" field.
func LeaderGT ¶
func LeaderGT(v string) predicate.Department
LeaderGT applies the GT predicate on the "leader" field.
func LeaderGTE ¶
func LeaderGTE(v string) predicate.Department
LeaderGTE applies the GTE predicate on the "leader" field.
func LeaderHasPrefix ¶
func LeaderHasPrefix(v string) predicate.Department
LeaderHasPrefix applies the HasPrefix predicate on the "leader" field.
func LeaderHasSuffix ¶
func LeaderHasSuffix(v string) predicate.Department
LeaderHasSuffix applies the HasSuffix predicate on the "leader" field.
func LeaderIn ¶
func LeaderIn(vs ...string) predicate.Department
LeaderIn applies the In predicate on the "leader" field.
func LeaderLT ¶
func LeaderLT(v string) predicate.Department
LeaderLT applies the LT predicate on the "leader" field.
func LeaderLTE ¶
func LeaderLTE(v string) predicate.Department
LeaderLTE applies the LTE predicate on the "leader" field.
func LeaderNEQ ¶
func LeaderNEQ(v string) predicate.Department
LeaderNEQ applies the NEQ predicate on the "leader" field.
func LeaderNotIn ¶
func LeaderNotIn(vs ...string) predicate.Department
LeaderNotIn applies the NotIn predicate on the "leader" field.
func Name ¶
func Name(v string) predicate.Department
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Department
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Department
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Department
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Department
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Department
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Department
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Department
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Department
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Department
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Department
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Department
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Department
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Department
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.Department) predicate.Department
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Department) predicate.Department
Or groups predicates with the OR operator between them.
func ParentID ¶
func ParentID(v uint64) predicate.Department
ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentIDEQ ¶
func ParentIDEQ(v uint64) predicate.Department
ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDIn ¶
func ParentIDIn(vs ...uint64) predicate.Department
ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDIsNil ¶
func ParentIDIsNil() predicate.Department
ParentIDIsNil applies the IsNil predicate on the "parent_id" field.
func ParentIDNEQ ¶
func ParentIDNEQ(v uint64) predicate.Department
ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNotIn ¶
func ParentIDNotIn(vs ...uint64) predicate.Department
ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func ParentIDNotNil ¶
func ParentIDNotNil() predicate.Department
ParentIDNotNil applies the NotNil predicate on the "parent_id" field.
func Phone ¶
func Phone(v string) predicate.Department
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
func PhoneContains(v string) predicate.Department
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
func PhoneContainsFold(v string) predicate.Department
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEQ ¶
func PhoneEQ(v string) predicate.Department
PhoneEQ applies the EQ predicate on the "phone" field.
func PhoneEqualFold ¶
func PhoneEqualFold(v string) predicate.Department
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneGT ¶
func PhoneGT(v string) predicate.Department
PhoneGT applies the GT predicate on the "phone" field.
func PhoneGTE ¶
func PhoneGTE(v string) predicate.Department
PhoneGTE applies the GTE predicate on the "phone" field.
func PhoneHasPrefix ¶
func PhoneHasPrefix(v string) predicate.Department
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
func PhoneHasSuffix(v string) predicate.Department
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneIn ¶
func PhoneIn(vs ...string) predicate.Department
PhoneIn applies the In predicate on the "phone" field.
func PhoneLT ¶
func PhoneLT(v string) predicate.Department
PhoneLT applies the LT predicate on the "phone" field.
func PhoneLTE ¶
func PhoneLTE(v string) predicate.Department
PhoneLTE applies the LTE predicate on the "phone" field.
func PhoneNEQ ¶
func PhoneNEQ(v string) predicate.Department
PhoneNEQ applies the NEQ predicate on the "phone" field.
func PhoneNotIn ¶
func PhoneNotIn(vs ...string) predicate.Department
PhoneNotIn applies the NotIn predicate on the "phone" field.
func Remark ¶
func Remark(v string) predicate.Department
Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func RemarkContains ¶
func RemarkContains(v string) predicate.Department
RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContainsFold ¶
func RemarkContainsFold(v string) predicate.Department
RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkEQ ¶
func RemarkEQ(v string) predicate.Department
RemarkEQ applies the EQ predicate on the "remark" field.
func RemarkEqualFold ¶
func RemarkEqualFold(v string) predicate.Department
RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkGT ¶
func RemarkGT(v string) predicate.Department
RemarkGT applies the GT predicate on the "remark" field.
func RemarkGTE ¶
func RemarkGTE(v string) predicate.Department
RemarkGTE applies the GTE predicate on the "remark" field.
func RemarkHasPrefix ¶
func RemarkHasPrefix(v string) predicate.Department
RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasSuffix ¶
func RemarkHasSuffix(v string) predicate.Department
RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkIn ¶
func RemarkIn(vs ...string) predicate.Department
RemarkIn applies the In predicate on the "remark" field.
func RemarkIsNil ¶
func RemarkIsNil() predicate.Department
RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkLT ¶
func RemarkLT(v string) predicate.Department
RemarkLT applies the LT predicate on the "remark" field.
func RemarkLTE ¶
func RemarkLTE(v string) predicate.Department
RemarkLTE applies the LTE predicate on the "remark" field.
func RemarkNEQ ¶
func RemarkNEQ(v string) predicate.Department
RemarkNEQ applies the NEQ predicate on the "remark" field.
func RemarkNotIn ¶
func RemarkNotIn(vs ...string) predicate.Department
RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotNil ¶
func RemarkNotNil() predicate.Department
RemarkNotNil applies the NotNil predicate on the "remark" field.
func Sort ¶
func Sort(v uint32) predicate.Department
Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.
func SortEQ ¶
func SortEQ(v uint32) predicate.Department
SortEQ applies the EQ predicate on the "sort" field.
func SortGT ¶
func SortGT(v uint32) predicate.Department
SortGT applies the GT predicate on the "sort" field.
func SortGTE ¶
func SortGTE(v uint32) predicate.Department
SortGTE applies the GTE predicate on the "sort" field.
func SortIn ¶
func SortIn(vs ...uint32) predicate.Department
SortIn applies the In predicate on the "sort" field.
func SortLT ¶
func SortLT(v uint32) predicate.Department
SortLT applies the LT predicate on the "sort" field.
func SortLTE ¶
func SortLTE(v uint32) predicate.Department
SortLTE applies the LTE predicate on the "sort" field.
func SortNEQ ¶
func SortNEQ(v uint32) predicate.Department
SortNEQ applies the NEQ predicate on the "sort" field.
func SortNotIn ¶
func SortNotIn(vs ...uint32) predicate.Department
SortNotIn applies the NotIn predicate on the "sort" field.
func Status ¶
func Status(v uint8) predicate.Department
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusEQ ¶
func StatusEQ(v uint8) predicate.Department
StatusEQ applies the EQ predicate on the "status" field.
func StatusGT ¶
func StatusGT(v uint8) predicate.Department
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v uint8) predicate.Department
StatusGTE applies the GTE predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...uint8) predicate.Department
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
func StatusIsNil() predicate.Department
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusLT ¶
func StatusLT(v uint8) predicate.Department
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v uint8) predicate.Department
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v uint8) predicate.Department
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...uint8) predicate.Department
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
func StatusNotNil() predicate.Department
StatusNotNil applies the NotNil predicate on the "status" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Department
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Department
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Department
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Department
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Department
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Department
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Department
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Department
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Department
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Department queries.
func ByAncestors ¶
func ByAncestors(opts ...sql.OrderTermOption) OrderOption
ByAncestors orders the results by the ancestors field.
func ByChildren ¶
func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChildren orders the results by children terms.
func ByChildrenCount ¶
func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
ByChildrenCount orders the results by children count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLeader ¶
func ByLeader(opts ...sql.OrderTermOption) OrderOption
ByLeader orders the results by the leader field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByParentField ¶
func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentField orders the results by parent field.
func ByParentID ¶
func ByParentID(opts ...sql.OrderTermOption) OrderOption
ByParentID orders the results by the parent_id field.
func ByPhone ¶
func ByPhone(opts ...sql.OrderTermOption) OrderOption
ByPhone orders the results by the phone field.
func ByRemark ¶
func ByRemark(opts ...sql.OrderTermOption) OrderOption
ByRemark orders the results by the remark field.
func BySort ¶
func BySort(opts ...sql.OrderTermOption) OrderOption
BySort orders the results by the sort field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.