dep upgrade, regenerate
This commit is contained in:
@ -1,9 +1,12 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package mailbox
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
const (
|
||||
@ -86,3 +89,85 @@ var (
|
||||
// UpdateDefaultModified holds the default value on update for the "modified" field.
|
||||
UpdateDefaultModified func() time.Time
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the Mailbox queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByActive orders the results by the active field.
|
||||
func ByActive(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldActive, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreated orders the results by the created field.
|
||||
func ByCreated(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreated, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByModified orders the results by the modified field.
|
||||
func ByModified(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldModified, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDomainID orders the results by the domain_id field.
|
||||
func ByDomainID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDomainID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUsername orders the results by the username field.
|
||||
func ByUsername(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUsername, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByQuota orders the results by the quota field.
|
||||
func ByQuota(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldQuota, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByLocalPart orders the results by the local_part field.
|
||||
func ByLocalPart(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldLocalPart, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByHomedir orders the results by the homedir field.
|
||||
func ByHomedir(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldHomedir, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByMaildir orders the results by the maildir field.
|
||||
func ByMaildir(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldMaildir, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByUID orders the results by the uid field.
|
||||
func ByUID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByGid orders the results by the gid field.
|
||||
func ByGid(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldGid, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDomainField orders the results by domain field.
|
||||
func ByDomainField(field string, opts ...sql.OrderTermOption) OrderOption {
|
||||
return func(s *sql.Selector) {
|
||||
sqlgraph.OrderByNeighborTerms(s, newDomainStep(), sql.OrderByField(field, opts...))
|
||||
}
|
||||
}
|
||||
func newDomainStep() *sqlgraph.Step {
|
||||
return sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(DomainInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, DomainTable, DomainColumn),
|
||||
)
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user