forked from mirrors/homebox
chore: bump all go deps (#507)
* bump all deps
* run code-gen
Former-commit-id: a042496c71
This commit is contained in:
parent
feab9f4c46
commit
a3e607a887
96 changed files with 1651 additions and 491 deletions
|
@ -21,7 +21,7 @@ import (
|
|||
type NotifierQuery struct {
|
||||
config
|
||||
ctx *QueryContext
|
||||
order []OrderFunc
|
||||
order []notifier.OrderOption
|
||||
inters []Interceptor
|
||||
predicates []predicate.Notifier
|
||||
withGroup *GroupQuery
|
||||
|
@ -57,7 +57,7 @@ func (nq *NotifierQuery) Unique(unique bool) *NotifierQuery {
|
|||
}
|
||||
|
||||
// Order specifies how the records should be ordered.
|
||||
func (nq *NotifierQuery) Order(o ...OrderFunc) *NotifierQuery {
|
||||
func (nq *NotifierQuery) Order(o ...notifier.OrderOption) *NotifierQuery {
|
||||
nq.order = append(nq.order, o...)
|
||||
return nq
|
||||
}
|
||||
|
@ -295,7 +295,7 @@ func (nq *NotifierQuery) Clone() *NotifierQuery {
|
|||
return &NotifierQuery{
|
||||
config: nq.config,
|
||||
ctx: nq.ctx.Clone(),
|
||||
order: append([]OrderFunc{}, nq.order...),
|
||||
order: append([]notifier.OrderOption{}, nq.order...),
|
||||
inters: append([]Interceptor{}, nq.inters...),
|
||||
predicates: append([]predicate.Notifier{}, nq.predicates...),
|
||||
withGroup: nq.withGroup.Clone(),
|
||||
|
@ -528,6 +528,12 @@ func (nq *NotifierQuery) querySpec() *sqlgraph.QuerySpec {
|
|||
_spec.Node.Columns = append(_spec.Node.Columns, fields[i])
|
||||
}
|
||||
}
|
||||
if nq.withGroup != nil {
|
||||
_spec.Node.AddColumnOnce(notifier.FieldGroupID)
|
||||
}
|
||||
if nq.withUser != nil {
|
||||
_spec.Node.AddColumnOnce(notifier.FieldUserID)
|
||||
}
|
||||
}
|
||||
if ps := nq.predicates; len(ps) > 0 {
|
||||
_spec.Predicate = func(selector *sql.Selector) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue