fix
This commit is contained in:
@ -95,6 +95,11 @@ func Cid(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEQ(FieldCid, v))
|
||||
}
|
||||
|
||||
// Card applies equality check predicate on the "card" field. It's identical to CardEQ.
|
||||
func Card(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEQ(FieldCard, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
@ -565,6 +570,56 @@ func CidNotNil() predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNotNull(FieldCid))
|
||||
}
|
||||
|
||||
// CardEQ applies the EQ predicate on the "card" field.
|
||||
func CardEQ(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEQ(FieldCard, v))
|
||||
}
|
||||
|
||||
// CardNEQ applies the NEQ predicate on the "card" field.
|
||||
func CardNEQ(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNEQ(FieldCard, v))
|
||||
}
|
||||
|
||||
// CardIn applies the In predicate on the "card" field.
|
||||
func CardIn(vs ...int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldIn(FieldCard, vs...))
|
||||
}
|
||||
|
||||
// CardNotIn applies the NotIn predicate on the "card" field.
|
||||
func CardNotIn(vs ...int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNotIn(FieldCard, vs...))
|
||||
}
|
||||
|
||||
// CardGT applies the GT predicate on the "card" field.
|
||||
func CardGT(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldGT(FieldCard, v))
|
||||
}
|
||||
|
||||
// CardGTE applies the GTE predicate on the "card" field.
|
||||
func CardGTE(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldGTE(FieldCard, v))
|
||||
}
|
||||
|
||||
// CardLT applies the LT predicate on the "card" field.
|
||||
func CardLT(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldLT(FieldCard, v))
|
||||
}
|
||||
|
||||
// CardLTE applies the LTE predicate on the "card" field.
|
||||
func CardLTE(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldLTE(FieldCard, v))
|
||||
}
|
||||
|
||||
// CardIsNil applies the IsNil predicate on the "card" field.
|
||||
func CardIsNil() predicate.Sev {
|
||||
return predicate.Sev(sql.FieldIsNull(FieldCard))
|
||||
}
|
||||
|
||||
// CardNotNil applies the NotNil predicate on the "card" field.
|
||||
func CardNotNil() predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNotNull(FieldCard))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
|
Reference in New Issue
Block a user