fix: some api bug
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
package userverifications
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
@@ -60,8 +62,10 @@ func ValidColumn(column string) bool {
|
||||
var (
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// DefaultRejectReason holds the default value on creation for the "reject_reason" field.
|
||||
DefaultRejectReason string
|
||||
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
|
||||
DefaultUpdatedAt func() time.Time
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the UserVerifications queries.
|
||||
|
||||
@@ -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...))
|
||||
|
||||
Reference in New Issue
Block a user