123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420 |
- // Code generated by ent, DO NOT EDIT.
- package token
- import (
- "time"
- "wechat-api/ent/predicate"
- "entgo.io/ent/dialect/sql"
- )
- // ID filters vertices based on their ID field.
- func ID(id uint64) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldID, id))
- }
- // IDEQ applies the EQ predicate on the ID field.
- func IDEQ(id uint64) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldID, id))
- }
- // IDNEQ applies the NEQ predicate on the ID field.
- func IDNEQ(id uint64) predicate.Token {
- return predicate.Token(sql.FieldNEQ(FieldID, id))
- }
- // IDIn applies the In predicate on the ID field.
- func IDIn(ids ...uint64) predicate.Token {
- return predicate.Token(sql.FieldIn(FieldID, ids...))
- }
- // IDNotIn applies the NotIn predicate on the ID field.
- func IDNotIn(ids ...uint64) predicate.Token {
- return predicate.Token(sql.FieldNotIn(FieldID, ids...))
- }
- // IDGT applies the GT predicate on the ID field.
- func IDGT(id uint64) predicate.Token {
- return predicate.Token(sql.FieldGT(FieldID, id))
- }
- // IDGTE applies the GTE predicate on the ID field.
- func IDGTE(id uint64) predicate.Token {
- return predicate.Token(sql.FieldGTE(FieldID, id))
- }
- // IDLT applies the LT predicate on the ID field.
- func IDLT(id uint64) predicate.Token {
- return predicate.Token(sql.FieldLT(FieldID, id))
- }
- // IDLTE applies the LTE predicate on the ID field.
- func IDLTE(id uint64) predicate.Token {
- return predicate.Token(sql.FieldLTE(FieldID, id))
- }
- // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
- func CreatedAt(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldCreatedAt, v))
- }
- // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
- func UpdatedAt(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
- func DeletedAt(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldDeletedAt, v))
- }
- // ExpireAt applies equality check predicate on the "expire_at" field. It's identical to ExpireAtEQ.
- func ExpireAt(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldExpireAt, v))
- }
- // Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
- func Token(v string) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldToken, v))
- }
- // MAC applies equality check predicate on the "mac" field. It's identical to MACEQ.
- func MAC(v string) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldMAC, v))
- }
- // CreatedAtEQ applies the EQ predicate on the "created_at" field.
- func CreatedAtEQ(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldCreatedAt, v))
- }
- // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
- func CreatedAtNEQ(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldNEQ(FieldCreatedAt, v))
- }
- // CreatedAtIn applies the In predicate on the "created_at" field.
- func CreatedAtIn(vs ...time.Time) predicate.Token {
- return predicate.Token(sql.FieldIn(FieldCreatedAt, vs...))
- }
- // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
- func CreatedAtNotIn(vs ...time.Time) predicate.Token {
- return predicate.Token(sql.FieldNotIn(FieldCreatedAt, vs...))
- }
- // CreatedAtGT applies the GT predicate on the "created_at" field.
- func CreatedAtGT(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldGT(FieldCreatedAt, v))
- }
- // CreatedAtGTE applies the GTE predicate on the "created_at" field.
- func CreatedAtGTE(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldGTE(FieldCreatedAt, v))
- }
- // CreatedAtLT applies the LT predicate on the "created_at" field.
- func CreatedAtLT(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldLT(FieldCreatedAt, v))
- }
- // CreatedAtLTE applies the LTE predicate on the "created_at" field.
- func CreatedAtLTE(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldLTE(FieldCreatedAt, v))
- }
- // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
- func UpdatedAtEQ(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
- func UpdatedAtNEQ(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldNEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtIn applies the In predicate on the "updated_at" field.
- func UpdatedAtIn(vs ...time.Time) predicate.Token {
- return predicate.Token(sql.FieldIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
- func UpdatedAtNotIn(vs ...time.Time) predicate.Token {
- return predicate.Token(sql.FieldNotIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtGT applies the GT predicate on the "updated_at" field.
- func UpdatedAtGT(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldGT(FieldUpdatedAt, v))
- }
- // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
- func UpdatedAtGTE(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldGTE(FieldUpdatedAt, v))
- }
- // UpdatedAtLT applies the LT predicate on the "updated_at" field.
- func UpdatedAtLT(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldLT(FieldUpdatedAt, v))
- }
- // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
- func UpdatedAtLTE(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldLTE(FieldUpdatedAt, v))
- }
- // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
- func DeletedAtEQ(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldDeletedAt, v))
- }
- // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
- func DeletedAtNEQ(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldNEQ(FieldDeletedAt, v))
- }
- // DeletedAtIn applies the In predicate on the "deleted_at" field.
- func DeletedAtIn(vs ...time.Time) predicate.Token {
- return predicate.Token(sql.FieldIn(FieldDeletedAt, vs...))
- }
- // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
- func DeletedAtNotIn(vs ...time.Time) predicate.Token {
- return predicate.Token(sql.FieldNotIn(FieldDeletedAt, vs...))
- }
- // DeletedAtGT applies the GT predicate on the "deleted_at" field.
- func DeletedAtGT(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldGT(FieldDeletedAt, v))
- }
- // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
- func DeletedAtGTE(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldGTE(FieldDeletedAt, v))
- }
- // DeletedAtLT applies the LT predicate on the "deleted_at" field.
- func DeletedAtLT(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldLT(FieldDeletedAt, v))
- }
- // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
- func DeletedAtLTE(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldLTE(FieldDeletedAt, v))
- }
- // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
- func DeletedAtIsNil() predicate.Token {
- return predicate.Token(sql.FieldIsNull(FieldDeletedAt))
- }
- // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
- func DeletedAtNotNil() predicate.Token {
- return predicate.Token(sql.FieldNotNull(FieldDeletedAt))
- }
- // ExpireAtEQ applies the EQ predicate on the "expire_at" field.
- func ExpireAtEQ(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldExpireAt, v))
- }
- // ExpireAtNEQ applies the NEQ predicate on the "expire_at" field.
- func ExpireAtNEQ(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldNEQ(FieldExpireAt, v))
- }
- // ExpireAtIn applies the In predicate on the "expire_at" field.
- func ExpireAtIn(vs ...time.Time) predicate.Token {
- return predicate.Token(sql.FieldIn(FieldExpireAt, vs...))
- }
- // ExpireAtNotIn applies the NotIn predicate on the "expire_at" field.
- func ExpireAtNotIn(vs ...time.Time) predicate.Token {
- return predicate.Token(sql.FieldNotIn(FieldExpireAt, vs...))
- }
- // ExpireAtGT applies the GT predicate on the "expire_at" field.
- func ExpireAtGT(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldGT(FieldExpireAt, v))
- }
- // ExpireAtGTE applies the GTE predicate on the "expire_at" field.
- func ExpireAtGTE(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldGTE(FieldExpireAt, v))
- }
- // ExpireAtLT applies the LT predicate on the "expire_at" field.
- func ExpireAtLT(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldLT(FieldExpireAt, v))
- }
- // ExpireAtLTE applies the LTE predicate on the "expire_at" field.
- func ExpireAtLTE(v time.Time) predicate.Token {
- return predicate.Token(sql.FieldLTE(FieldExpireAt, v))
- }
- // ExpireAtIsNil applies the IsNil predicate on the "expire_at" field.
- func ExpireAtIsNil() predicate.Token {
- return predicate.Token(sql.FieldIsNull(FieldExpireAt))
- }
- // ExpireAtNotNil applies the NotNil predicate on the "expire_at" field.
- func ExpireAtNotNil() predicate.Token {
- return predicate.Token(sql.FieldNotNull(FieldExpireAt))
- }
- // TokenEQ applies the EQ predicate on the "token" field.
- func TokenEQ(v string) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldToken, v))
- }
- // TokenNEQ applies the NEQ predicate on the "token" field.
- func TokenNEQ(v string) predicate.Token {
- return predicate.Token(sql.FieldNEQ(FieldToken, v))
- }
- // TokenIn applies the In predicate on the "token" field.
- func TokenIn(vs ...string) predicate.Token {
- return predicate.Token(sql.FieldIn(FieldToken, vs...))
- }
- // TokenNotIn applies the NotIn predicate on the "token" field.
- func TokenNotIn(vs ...string) predicate.Token {
- return predicate.Token(sql.FieldNotIn(FieldToken, vs...))
- }
- // TokenGT applies the GT predicate on the "token" field.
- func TokenGT(v string) predicate.Token {
- return predicate.Token(sql.FieldGT(FieldToken, v))
- }
- // TokenGTE applies the GTE predicate on the "token" field.
- func TokenGTE(v string) predicate.Token {
- return predicate.Token(sql.FieldGTE(FieldToken, v))
- }
- // TokenLT applies the LT predicate on the "token" field.
- func TokenLT(v string) predicate.Token {
- return predicate.Token(sql.FieldLT(FieldToken, v))
- }
- // TokenLTE applies the LTE predicate on the "token" field.
- func TokenLTE(v string) predicate.Token {
- return predicate.Token(sql.FieldLTE(FieldToken, v))
- }
- // TokenContains applies the Contains predicate on the "token" field.
- func TokenContains(v string) predicate.Token {
- return predicate.Token(sql.FieldContains(FieldToken, v))
- }
- // TokenHasPrefix applies the HasPrefix predicate on the "token" field.
- func TokenHasPrefix(v string) predicate.Token {
- return predicate.Token(sql.FieldHasPrefix(FieldToken, v))
- }
- // TokenHasSuffix applies the HasSuffix predicate on the "token" field.
- func TokenHasSuffix(v string) predicate.Token {
- return predicate.Token(sql.FieldHasSuffix(FieldToken, v))
- }
- // TokenIsNil applies the IsNil predicate on the "token" field.
- func TokenIsNil() predicate.Token {
- return predicate.Token(sql.FieldIsNull(FieldToken))
- }
- // TokenNotNil applies the NotNil predicate on the "token" field.
- func TokenNotNil() predicate.Token {
- return predicate.Token(sql.FieldNotNull(FieldToken))
- }
- // TokenEqualFold applies the EqualFold predicate on the "token" field.
- func TokenEqualFold(v string) predicate.Token {
- return predicate.Token(sql.FieldEqualFold(FieldToken, v))
- }
- // TokenContainsFold applies the ContainsFold predicate on the "token" field.
- func TokenContainsFold(v string) predicate.Token {
- return predicate.Token(sql.FieldContainsFold(FieldToken, v))
- }
- // MACEQ applies the EQ predicate on the "mac" field.
- func MACEQ(v string) predicate.Token {
- return predicate.Token(sql.FieldEQ(FieldMAC, v))
- }
- // MACNEQ applies the NEQ predicate on the "mac" field.
- func MACNEQ(v string) predicate.Token {
- return predicate.Token(sql.FieldNEQ(FieldMAC, v))
- }
- // MACIn applies the In predicate on the "mac" field.
- func MACIn(vs ...string) predicate.Token {
- return predicate.Token(sql.FieldIn(FieldMAC, vs...))
- }
- // MACNotIn applies the NotIn predicate on the "mac" field.
- func MACNotIn(vs ...string) predicate.Token {
- return predicate.Token(sql.FieldNotIn(FieldMAC, vs...))
- }
- // MACGT applies the GT predicate on the "mac" field.
- func MACGT(v string) predicate.Token {
- return predicate.Token(sql.FieldGT(FieldMAC, v))
- }
- // MACGTE applies the GTE predicate on the "mac" field.
- func MACGTE(v string) predicate.Token {
- return predicate.Token(sql.FieldGTE(FieldMAC, v))
- }
- // MACLT applies the LT predicate on the "mac" field.
- func MACLT(v string) predicate.Token {
- return predicate.Token(sql.FieldLT(FieldMAC, v))
- }
- // MACLTE applies the LTE predicate on the "mac" field.
- func MACLTE(v string) predicate.Token {
- return predicate.Token(sql.FieldLTE(FieldMAC, v))
- }
- // MACContains applies the Contains predicate on the "mac" field.
- func MACContains(v string) predicate.Token {
- return predicate.Token(sql.FieldContains(FieldMAC, v))
- }
- // MACHasPrefix applies the HasPrefix predicate on the "mac" field.
- func MACHasPrefix(v string) predicate.Token {
- return predicate.Token(sql.FieldHasPrefix(FieldMAC, v))
- }
- // MACHasSuffix applies the HasSuffix predicate on the "mac" field.
- func MACHasSuffix(v string) predicate.Token {
- return predicate.Token(sql.FieldHasSuffix(FieldMAC, v))
- }
- // MACEqualFold applies the EqualFold predicate on the "mac" field.
- func MACEqualFold(v string) predicate.Token {
- return predicate.Token(sql.FieldEqualFold(FieldMAC, v))
- }
- // MACContainsFold applies the ContainsFold predicate on the "mac" field.
- func MACContainsFold(v string) predicate.Token {
- return predicate.Token(sql.FieldContainsFold(FieldMAC, v))
- }
- // And groups predicates with the AND operator between them.
- func And(predicates ...predicate.Token) predicate.Token {
- return predicate.Token(sql.AndPredicates(predicates...))
- }
- // Or groups predicates with the OR operator between them.
- func Or(predicates ...predicate.Token) predicate.Token {
- return predicate.Token(sql.OrPredicates(predicates...))
- }
- // Not applies the not operator on the given predicate.
- func Not(p predicate.Token) predicate.Token {
- return predicate.Token(sql.NotPredicates(p))
- }
|