fix
This commit is contained in:
@ -86,12 +86,12 @@ func Did(v string) predicate.Sev {
|
||||
}
|
||||
|
||||
// UID applies equality check predicate on the "uid" field. It's identical to UIDEQ.
|
||||
func UID(v string) predicate.Sev {
|
||||
func UID(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEQ(FieldUID, v))
|
||||
}
|
||||
|
||||
// Cid applies equality check predicate on the "cid" field. It's identical to CidEQ.
|
||||
func Cid(v string) predicate.Sev {
|
||||
func Cid(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEQ(FieldCid, v))
|
||||
}
|
||||
|
||||
@ -466,60 +466,45 @@ func DidContainsFold(v string) predicate.Sev {
|
||||
}
|
||||
|
||||
// UIDEQ applies the EQ predicate on the "uid" field.
|
||||
func UIDEQ(v string) predicate.Sev {
|
||||
func UIDEQ(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEQ(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDNEQ applies the NEQ predicate on the "uid" field.
|
||||
func UIDNEQ(v string) predicate.Sev {
|
||||
func UIDNEQ(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNEQ(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDIn applies the In predicate on the "uid" field.
|
||||
func UIDIn(vs ...string) predicate.Sev {
|
||||
func UIDIn(vs ...int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldIn(FieldUID, vs...))
|
||||
}
|
||||
|
||||
// UIDNotIn applies the NotIn predicate on the "uid" field.
|
||||
func UIDNotIn(vs ...string) predicate.Sev {
|
||||
func UIDNotIn(vs ...int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNotIn(FieldUID, vs...))
|
||||
}
|
||||
|
||||
// UIDGT applies the GT predicate on the "uid" field.
|
||||
func UIDGT(v string) predicate.Sev {
|
||||
func UIDGT(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldGT(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDGTE applies the GTE predicate on the "uid" field.
|
||||
func UIDGTE(v string) predicate.Sev {
|
||||
func UIDGTE(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldGTE(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDLT applies the LT predicate on the "uid" field.
|
||||
func UIDLT(v string) predicate.Sev {
|
||||
func UIDLT(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldLT(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDLTE applies the LTE predicate on the "uid" field.
|
||||
func UIDLTE(v string) predicate.Sev {
|
||||
func UIDLTE(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldLTE(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDContains applies the Contains predicate on the "uid" field.
|
||||
func UIDContains(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldContains(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDHasPrefix applies the HasPrefix predicate on the "uid" field.
|
||||
func UIDHasPrefix(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldHasPrefix(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDHasSuffix applies the HasSuffix predicate on the "uid" field.
|
||||
func UIDHasSuffix(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldHasSuffix(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDIsNil applies the IsNil predicate on the "uid" field.
|
||||
func UIDIsNil() predicate.Sev {
|
||||
return predicate.Sev(sql.FieldIsNull(FieldUID))
|
||||
@ -530,71 +515,46 @@ func UIDNotNil() predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNotNull(FieldUID))
|
||||
}
|
||||
|
||||
// UIDEqualFold applies the EqualFold predicate on the "uid" field.
|
||||
func UIDEqualFold(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEqualFold(FieldUID, v))
|
||||
}
|
||||
|
||||
// UIDContainsFold applies the ContainsFold predicate on the "uid" field.
|
||||
func UIDContainsFold(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldContainsFold(FieldUID, v))
|
||||
}
|
||||
|
||||
// CidEQ applies the EQ predicate on the "cid" field.
|
||||
func CidEQ(v string) predicate.Sev {
|
||||
func CidEQ(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEQ(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidNEQ applies the NEQ predicate on the "cid" field.
|
||||
func CidNEQ(v string) predicate.Sev {
|
||||
func CidNEQ(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNEQ(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidIn applies the In predicate on the "cid" field.
|
||||
func CidIn(vs ...string) predicate.Sev {
|
||||
func CidIn(vs ...int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldIn(FieldCid, vs...))
|
||||
}
|
||||
|
||||
// CidNotIn applies the NotIn predicate on the "cid" field.
|
||||
func CidNotIn(vs ...string) predicate.Sev {
|
||||
func CidNotIn(vs ...int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNotIn(FieldCid, vs...))
|
||||
}
|
||||
|
||||
// CidGT applies the GT predicate on the "cid" field.
|
||||
func CidGT(v string) predicate.Sev {
|
||||
func CidGT(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldGT(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidGTE applies the GTE predicate on the "cid" field.
|
||||
func CidGTE(v string) predicate.Sev {
|
||||
func CidGTE(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldGTE(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidLT applies the LT predicate on the "cid" field.
|
||||
func CidLT(v string) predicate.Sev {
|
||||
func CidLT(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldLT(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidLTE applies the LTE predicate on the "cid" field.
|
||||
func CidLTE(v string) predicate.Sev {
|
||||
func CidLTE(v int) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldLTE(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidContains applies the Contains predicate on the "cid" field.
|
||||
func CidContains(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldContains(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidHasPrefix applies the HasPrefix predicate on the "cid" field.
|
||||
func CidHasPrefix(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldHasPrefix(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidHasSuffix applies the HasSuffix predicate on the "cid" field.
|
||||
func CidHasSuffix(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldHasSuffix(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidIsNil applies the IsNil predicate on the "cid" field.
|
||||
func CidIsNil() predicate.Sev {
|
||||
return predicate.Sev(sql.FieldIsNull(FieldCid))
|
||||
@ -605,16 +565,6 @@ func CidNotNil() predicate.Sev {
|
||||
return predicate.Sev(sql.FieldNotNull(FieldCid))
|
||||
}
|
||||
|
||||
// CidEqualFold applies the EqualFold predicate on the "cid" field.
|
||||
func CidEqualFold(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldEqualFold(FieldCid, v))
|
||||
}
|
||||
|
||||
// CidContainsFold applies the ContainsFold predicate on the "cid" field.
|
||||
func CidContainsFold(v string) predicate.Sev {
|
||||
return predicate.Sev(sql.FieldContainsFold(FieldCid, v))
|
||||
}
|
||||
|
||||
// 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