fix: some api bug

This commit is contained in:
wwweww
2026-03-31 22:12:06 +08:00
parent c5ff4f0216
commit e7970ac25f
219 changed files with 16195 additions and 2126 deletions
@@ -319,6 +319,16 @@ func RejectReasonHasSuffix(v string) predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldHasSuffix(FieldRejectReason, v))
}
// RejectReasonIsNil applies the IsNil predicate on the "reject_reason" field.
func RejectReasonIsNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldIsNull(FieldRejectReason))
}
// RejectReasonNotNil applies the NotNil predicate on the "reject_reason" field.
func RejectReasonNotNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldNotNull(FieldRejectReason))
}
// RejectReasonEqualFold applies the EqualFold predicate on the "reject_reason" field.
func RejectReasonEqualFold(v string) predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldEqualFold(FieldRejectReason, v))
@@ -369,6 +379,16 @@ func ReviewedByLTE(v int64) predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldLTE(FieldReviewedBy, v))
}
// ReviewedByIsNil applies the IsNil predicate on the "reviewed_by" field.
func ReviewedByIsNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldIsNull(FieldReviewedBy))
}
// ReviewedByNotNil applies the NotNil predicate on the "reviewed_by" field.
func ReviewedByNotNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldNotNull(FieldReviewedBy))
}
// ReviewedAtEQ applies the EQ predicate on the "reviewed_at" field.
func ReviewedAtEQ(v time.Time) predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldEQ(FieldReviewedAt, v))
@@ -409,6 +429,16 @@ func ReviewedAtLTE(v time.Time) predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldLTE(FieldReviewedAt, v))
}
// ReviewedAtIsNil applies the IsNil predicate on the "reviewed_at" field.
func ReviewedAtIsNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldIsNull(FieldReviewedAt))
}
// ReviewedAtNotNil applies the NotNil predicate on the "reviewed_at" field.
func ReviewedAtNotNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldNotNull(FieldReviewedAt))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldEQ(FieldCreatedAt, v))
@@ -449,6 +479,16 @@ func CreatedAtLTE(v time.Time) predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldLTE(FieldCreatedAt, v))
}
// CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtIsNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldIsNull(FieldCreatedAt))
}
// CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedAtNotNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldNotNull(FieldCreatedAt))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldEQ(FieldUpdatedAt, v))
@@ -489,6 +529,16 @@ func UpdatedAtLTE(v time.Time) predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldLTE(FieldUpdatedAt, v))
}
// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtIsNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldIsNull(FieldUpdatedAt))
}
// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedAtNotNil() predicate.UserVerifications {
return predicate.UserVerifications(sql.FieldNotNull(FieldUpdatedAt))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.UserVerifications) predicate.UserVerifications {
return predicate.UserVerifications(sql.AndPredicates(predicates...))