123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152 |
- // Code generated by ent, DO NOT EDIT.
- package wx
- import (
- "time"
- "wechat-api/ent/predicate"
- "entgo.io/ent/dialect/sql"
- "entgo.io/ent/dialect/sql/sqlgraph"
- )
- // ID filters vertices based on their ID field.
- func ID(id uint64) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldID, id))
- }
- // IDEQ applies the EQ predicate on the ID field.
- func IDEQ(id uint64) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldID, id))
- }
- // IDNEQ applies the NEQ predicate on the ID field.
- func IDNEQ(id uint64) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldID, id))
- }
- // IDIn applies the In predicate on the ID field.
- func IDIn(ids ...uint64) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldID, ids...))
- }
- // IDNotIn applies the NotIn predicate on the ID field.
- func IDNotIn(ids ...uint64) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldID, ids...))
- }
- // IDGT applies the GT predicate on the ID field.
- func IDGT(id uint64) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldID, id))
- }
- // IDGTE applies the GTE predicate on the ID field.
- func IDGTE(id uint64) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldID, id))
- }
- // IDLT applies the LT predicate on the ID field.
- func IDLT(id uint64) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldID, id))
- }
- // IDLTE applies the LTE predicate on the ID field.
- func IDLTE(id uint64) predicate.Wx {
- return predicate.Wx(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.Wx {
- return predicate.Wx(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.Wx {
- return predicate.Wx(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
- func Status(v uint8) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldStatus, v))
- }
- // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
- func DeletedAt(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldDeletedAt, v))
- }
- // ServerID applies equality check predicate on the "server_id" field. It's identical to ServerIDEQ.
- func ServerID(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldServerID, v))
- }
- // Port applies equality check predicate on the "port" field. It's identical to PortEQ.
- func Port(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldPort, v))
- }
- // ProcessID applies equality check predicate on the "process_id" field. It's identical to ProcessIDEQ.
- func ProcessID(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldProcessID, v))
- }
- // Callback applies equality check predicate on the "callback" field. It's identical to CallbackEQ.
- func Callback(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldCallback, v))
- }
- // Wxid applies equality check predicate on the "wxid" field. It's identical to WxidEQ.
- func Wxid(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldWxid, v))
- }
- // Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
- func Account(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldAccount, v))
- }
- // Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
- func Nickname(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldNickname, v))
- }
- // Tel applies equality check predicate on the "tel" field. It's identical to TelEQ.
- func Tel(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldTel, v))
- }
- // HeadBig applies equality check predicate on the "head_big" field. It's identical to HeadBigEQ.
- func HeadBig(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldHeadBig, v))
- }
- // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
- func OrganizationID(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldOrganizationID, v))
- }
- // AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
- func AgentID(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldAgentID, v))
- }
- // APIBase applies equality check predicate on the "api_base" field. It's identical to APIBaseEQ.
- func APIBase(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldAPIBase, v))
- }
- // APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.
- func APIKey(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldAPIKey, v))
- }
- // CreatedAtEQ applies the EQ predicate on the "created_at" field.
- func CreatedAtEQ(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldCreatedAt, v))
- }
- // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
- func CreatedAtNEQ(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldCreatedAt, v))
- }
- // CreatedAtIn applies the In predicate on the "created_at" field.
- func CreatedAtIn(vs ...time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldCreatedAt, vs...))
- }
- // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
- func CreatedAtNotIn(vs ...time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldCreatedAt, vs...))
- }
- // CreatedAtGT applies the GT predicate on the "created_at" field.
- func CreatedAtGT(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldCreatedAt, v))
- }
- // CreatedAtGTE applies the GTE predicate on the "created_at" field.
- func CreatedAtGTE(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldCreatedAt, v))
- }
- // CreatedAtLT applies the LT predicate on the "created_at" field.
- func CreatedAtLT(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldCreatedAt, v))
- }
- // CreatedAtLTE applies the LTE predicate on the "created_at" field.
- func CreatedAtLTE(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldCreatedAt, v))
- }
- // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
- func UpdatedAtEQ(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
- func UpdatedAtNEQ(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldUpdatedAt, v))
- }
- // UpdatedAtIn applies the In predicate on the "updated_at" field.
- func UpdatedAtIn(vs ...time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
- func UpdatedAtNotIn(vs ...time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldUpdatedAt, vs...))
- }
- // UpdatedAtGT applies the GT predicate on the "updated_at" field.
- func UpdatedAtGT(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldUpdatedAt, v))
- }
- // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
- func UpdatedAtGTE(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldUpdatedAt, v))
- }
- // UpdatedAtLT applies the LT predicate on the "updated_at" field.
- func UpdatedAtLT(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldUpdatedAt, v))
- }
- // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
- func UpdatedAtLTE(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldUpdatedAt, v))
- }
- // StatusEQ applies the EQ predicate on the "status" field.
- func StatusEQ(v uint8) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldStatus, v))
- }
- // StatusNEQ applies the NEQ predicate on the "status" field.
- func StatusNEQ(v uint8) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldStatus, v))
- }
- // StatusIn applies the In predicate on the "status" field.
- func StatusIn(vs ...uint8) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldStatus, vs...))
- }
- // StatusNotIn applies the NotIn predicate on the "status" field.
- func StatusNotIn(vs ...uint8) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldStatus, vs...))
- }
- // StatusGT applies the GT predicate on the "status" field.
- func StatusGT(v uint8) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldStatus, v))
- }
- // StatusGTE applies the GTE predicate on the "status" field.
- func StatusGTE(v uint8) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldStatus, v))
- }
- // StatusLT applies the LT predicate on the "status" field.
- func StatusLT(v uint8) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldStatus, v))
- }
- // StatusLTE applies the LTE predicate on the "status" field.
- func StatusLTE(v uint8) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldStatus, v))
- }
- // StatusIsNil applies the IsNil predicate on the "status" field.
- func StatusIsNil() predicate.Wx {
- return predicate.Wx(sql.FieldIsNull(FieldStatus))
- }
- // StatusNotNil applies the NotNil predicate on the "status" field.
- func StatusNotNil() predicate.Wx {
- return predicate.Wx(sql.FieldNotNull(FieldStatus))
- }
- // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
- func DeletedAtEQ(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldDeletedAt, v))
- }
- // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
- func DeletedAtNEQ(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldDeletedAt, v))
- }
- // DeletedAtIn applies the In predicate on the "deleted_at" field.
- func DeletedAtIn(vs ...time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldDeletedAt, vs...))
- }
- // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
- func DeletedAtNotIn(vs ...time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldDeletedAt, vs...))
- }
- // DeletedAtGT applies the GT predicate on the "deleted_at" field.
- func DeletedAtGT(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldDeletedAt, v))
- }
- // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
- func DeletedAtGTE(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldDeletedAt, v))
- }
- // DeletedAtLT applies the LT predicate on the "deleted_at" field.
- func DeletedAtLT(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldDeletedAt, v))
- }
- // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
- func DeletedAtLTE(v time.Time) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldDeletedAt, v))
- }
- // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
- func DeletedAtIsNil() predicate.Wx {
- return predicate.Wx(sql.FieldIsNull(FieldDeletedAt))
- }
- // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
- func DeletedAtNotNil() predicate.Wx {
- return predicate.Wx(sql.FieldNotNull(FieldDeletedAt))
- }
- // ServerIDEQ applies the EQ predicate on the "server_id" field.
- func ServerIDEQ(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldServerID, v))
- }
- // ServerIDNEQ applies the NEQ predicate on the "server_id" field.
- func ServerIDNEQ(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldServerID, v))
- }
- // ServerIDIn applies the In predicate on the "server_id" field.
- func ServerIDIn(vs ...uint64) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldServerID, vs...))
- }
- // ServerIDNotIn applies the NotIn predicate on the "server_id" field.
- func ServerIDNotIn(vs ...uint64) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldServerID, vs...))
- }
- // ServerIDIsNil applies the IsNil predicate on the "server_id" field.
- func ServerIDIsNil() predicate.Wx {
- return predicate.Wx(sql.FieldIsNull(FieldServerID))
- }
- // ServerIDNotNil applies the NotNil predicate on the "server_id" field.
- func ServerIDNotNil() predicate.Wx {
- return predicate.Wx(sql.FieldNotNull(FieldServerID))
- }
- // PortEQ applies the EQ predicate on the "port" field.
- func PortEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldPort, v))
- }
- // PortNEQ applies the NEQ predicate on the "port" field.
- func PortNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldPort, v))
- }
- // PortIn applies the In predicate on the "port" field.
- func PortIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldPort, vs...))
- }
- // PortNotIn applies the NotIn predicate on the "port" field.
- func PortNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldPort, vs...))
- }
- // PortGT applies the GT predicate on the "port" field.
- func PortGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldPort, v))
- }
- // PortGTE applies the GTE predicate on the "port" field.
- func PortGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldPort, v))
- }
- // PortLT applies the LT predicate on the "port" field.
- func PortLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldPort, v))
- }
- // PortLTE applies the LTE predicate on the "port" field.
- func PortLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldPort, v))
- }
- // PortContains applies the Contains predicate on the "port" field.
- func PortContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldPort, v))
- }
- // PortHasPrefix applies the HasPrefix predicate on the "port" field.
- func PortHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldPort, v))
- }
- // PortHasSuffix applies the HasSuffix predicate on the "port" field.
- func PortHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldPort, v))
- }
- // PortEqualFold applies the EqualFold predicate on the "port" field.
- func PortEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldPort, v))
- }
- // PortContainsFold applies the ContainsFold predicate on the "port" field.
- func PortContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldPort, v))
- }
- // ProcessIDEQ applies the EQ predicate on the "process_id" field.
- func ProcessIDEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldProcessID, v))
- }
- // ProcessIDNEQ applies the NEQ predicate on the "process_id" field.
- func ProcessIDNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldProcessID, v))
- }
- // ProcessIDIn applies the In predicate on the "process_id" field.
- func ProcessIDIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldProcessID, vs...))
- }
- // ProcessIDNotIn applies the NotIn predicate on the "process_id" field.
- func ProcessIDNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldProcessID, vs...))
- }
- // ProcessIDGT applies the GT predicate on the "process_id" field.
- func ProcessIDGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldProcessID, v))
- }
- // ProcessIDGTE applies the GTE predicate on the "process_id" field.
- func ProcessIDGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldProcessID, v))
- }
- // ProcessIDLT applies the LT predicate on the "process_id" field.
- func ProcessIDLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldProcessID, v))
- }
- // ProcessIDLTE applies the LTE predicate on the "process_id" field.
- func ProcessIDLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldProcessID, v))
- }
- // ProcessIDContains applies the Contains predicate on the "process_id" field.
- func ProcessIDContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldProcessID, v))
- }
- // ProcessIDHasPrefix applies the HasPrefix predicate on the "process_id" field.
- func ProcessIDHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldProcessID, v))
- }
- // ProcessIDHasSuffix applies the HasSuffix predicate on the "process_id" field.
- func ProcessIDHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldProcessID, v))
- }
- // ProcessIDEqualFold applies the EqualFold predicate on the "process_id" field.
- func ProcessIDEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldProcessID, v))
- }
- // ProcessIDContainsFold applies the ContainsFold predicate on the "process_id" field.
- func ProcessIDContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldProcessID, v))
- }
- // CallbackEQ applies the EQ predicate on the "callback" field.
- func CallbackEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldCallback, v))
- }
- // CallbackNEQ applies the NEQ predicate on the "callback" field.
- func CallbackNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldCallback, v))
- }
- // CallbackIn applies the In predicate on the "callback" field.
- func CallbackIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldCallback, vs...))
- }
- // CallbackNotIn applies the NotIn predicate on the "callback" field.
- func CallbackNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldCallback, vs...))
- }
- // CallbackGT applies the GT predicate on the "callback" field.
- func CallbackGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldCallback, v))
- }
- // CallbackGTE applies the GTE predicate on the "callback" field.
- func CallbackGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldCallback, v))
- }
- // CallbackLT applies the LT predicate on the "callback" field.
- func CallbackLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldCallback, v))
- }
- // CallbackLTE applies the LTE predicate on the "callback" field.
- func CallbackLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldCallback, v))
- }
- // CallbackContains applies the Contains predicate on the "callback" field.
- func CallbackContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldCallback, v))
- }
- // CallbackHasPrefix applies the HasPrefix predicate on the "callback" field.
- func CallbackHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldCallback, v))
- }
- // CallbackHasSuffix applies the HasSuffix predicate on the "callback" field.
- func CallbackHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldCallback, v))
- }
- // CallbackEqualFold applies the EqualFold predicate on the "callback" field.
- func CallbackEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldCallback, v))
- }
- // CallbackContainsFold applies the ContainsFold predicate on the "callback" field.
- func CallbackContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldCallback, v))
- }
- // WxidEQ applies the EQ predicate on the "wxid" field.
- func WxidEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldWxid, v))
- }
- // WxidNEQ applies the NEQ predicate on the "wxid" field.
- func WxidNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldWxid, v))
- }
- // WxidIn applies the In predicate on the "wxid" field.
- func WxidIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldWxid, vs...))
- }
- // WxidNotIn applies the NotIn predicate on the "wxid" field.
- func WxidNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldWxid, vs...))
- }
- // WxidGT applies the GT predicate on the "wxid" field.
- func WxidGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldWxid, v))
- }
- // WxidGTE applies the GTE predicate on the "wxid" field.
- func WxidGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldWxid, v))
- }
- // WxidLT applies the LT predicate on the "wxid" field.
- func WxidLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldWxid, v))
- }
- // WxidLTE applies the LTE predicate on the "wxid" field.
- func WxidLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldWxid, v))
- }
- // WxidContains applies the Contains predicate on the "wxid" field.
- func WxidContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldWxid, v))
- }
- // WxidHasPrefix applies the HasPrefix predicate on the "wxid" field.
- func WxidHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldWxid, v))
- }
- // WxidHasSuffix applies the HasSuffix predicate on the "wxid" field.
- func WxidHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldWxid, v))
- }
- // WxidEqualFold applies the EqualFold predicate on the "wxid" field.
- func WxidEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldWxid, v))
- }
- // WxidContainsFold applies the ContainsFold predicate on the "wxid" field.
- func WxidContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldWxid, v))
- }
- // AccountEQ applies the EQ predicate on the "account" field.
- func AccountEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldAccount, v))
- }
- // AccountNEQ applies the NEQ predicate on the "account" field.
- func AccountNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldAccount, v))
- }
- // AccountIn applies the In predicate on the "account" field.
- func AccountIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldAccount, vs...))
- }
- // AccountNotIn applies the NotIn predicate on the "account" field.
- func AccountNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldAccount, vs...))
- }
- // AccountGT applies the GT predicate on the "account" field.
- func AccountGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldAccount, v))
- }
- // AccountGTE applies the GTE predicate on the "account" field.
- func AccountGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldAccount, v))
- }
- // AccountLT applies the LT predicate on the "account" field.
- func AccountLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldAccount, v))
- }
- // AccountLTE applies the LTE predicate on the "account" field.
- func AccountLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldAccount, v))
- }
- // AccountContains applies the Contains predicate on the "account" field.
- func AccountContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldAccount, v))
- }
- // AccountHasPrefix applies the HasPrefix predicate on the "account" field.
- func AccountHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldAccount, v))
- }
- // AccountHasSuffix applies the HasSuffix predicate on the "account" field.
- func AccountHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldAccount, v))
- }
- // AccountEqualFold applies the EqualFold predicate on the "account" field.
- func AccountEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldAccount, v))
- }
- // AccountContainsFold applies the ContainsFold predicate on the "account" field.
- func AccountContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldAccount, v))
- }
- // NicknameEQ applies the EQ predicate on the "nickname" field.
- func NicknameEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldNickname, v))
- }
- // NicknameNEQ applies the NEQ predicate on the "nickname" field.
- func NicknameNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldNickname, v))
- }
- // NicknameIn applies the In predicate on the "nickname" field.
- func NicknameIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldNickname, vs...))
- }
- // NicknameNotIn applies the NotIn predicate on the "nickname" field.
- func NicknameNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldNickname, vs...))
- }
- // NicknameGT applies the GT predicate on the "nickname" field.
- func NicknameGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldNickname, v))
- }
- // NicknameGTE applies the GTE predicate on the "nickname" field.
- func NicknameGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldNickname, v))
- }
- // NicknameLT applies the LT predicate on the "nickname" field.
- func NicknameLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldNickname, v))
- }
- // NicknameLTE applies the LTE predicate on the "nickname" field.
- func NicknameLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldNickname, v))
- }
- // NicknameContains applies the Contains predicate on the "nickname" field.
- func NicknameContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldNickname, v))
- }
- // NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
- func NicknameHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldNickname, v))
- }
- // NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
- func NicknameHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldNickname, v))
- }
- // NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
- func NicknameEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldNickname, v))
- }
- // NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
- func NicknameContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldNickname, v))
- }
- // TelEQ applies the EQ predicate on the "tel" field.
- func TelEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldTel, v))
- }
- // TelNEQ applies the NEQ predicate on the "tel" field.
- func TelNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldTel, v))
- }
- // TelIn applies the In predicate on the "tel" field.
- func TelIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldTel, vs...))
- }
- // TelNotIn applies the NotIn predicate on the "tel" field.
- func TelNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldTel, vs...))
- }
- // TelGT applies the GT predicate on the "tel" field.
- func TelGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldTel, v))
- }
- // TelGTE applies the GTE predicate on the "tel" field.
- func TelGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldTel, v))
- }
- // TelLT applies the LT predicate on the "tel" field.
- func TelLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldTel, v))
- }
- // TelLTE applies the LTE predicate on the "tel" field.
- func TelLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldTel, v))
- }
- // TelContains applies the Contains predicate on the "tel" field.
- func TelContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldTel, v))
- }
- // TelHasPrefix applies the HasPrefix predicate on the "tel" field.
- func TelHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldTel, v))
- }
- // TelHasSuffix applies the HasSuffix predicate on the "tel" field.
- func TelHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldTel, v))
- }
- // TelEqualFold applies the EqualFold predicate on the "tel" field.
- func TelEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldTel, v))
- }
- // TelContainsFold applies the ContainsFold predicate on the "tel" field.
- func TelContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldTel, v))
- }
- // HeadBigEQ applies the EQ predicate on the "head_big" field.
- func HeadBigEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldHeadBig, v))
- }
- // HeadBigNEQ applies the NEQ predicate on the "head_big" field.
- func HeadBigNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldHeadBig, v))
- }
- // HeadBigIn applies the In predicate on the "head_big" field.
- func HeadBigIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldHeadBig, vs...))
- }
- // HeadBigNotIn applies the NotIn predicate on the "head_big" field.
- func HeadBigNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldHeadBig, vs...))
- }
- // HeadBigGT applies the GT predicate on the "head_big" field.
- func HeadBigGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldHeadBig, v))
- }
- // HeadBigGTE applies the GTE predicate on the "head_big" field.
- func HeadBigGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldHeadBig, v))
- }
- // HeadBigLT applies the LT predicate on the "head_big" field.
- func HeadBigLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldHeadBig, v))
- }
- // HeadBigLTE applies the LTE predicate on the "head_big" field.
- func HeadBigLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldHeadBig, v))
- }
- // HeadBigContains applies the Contains predicate on the "head_big" field.
- func HeadBigContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldHeadBig, v))
- }
- // HeadBigHasPrefix applies the HasPrefix predicate on the "head_big" field.
- func HeadBigHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldHeadBig, v))
- }
- // HeadBigHasSuffix applies the HasSuffix predicate on the "head_big" field.
- func HeadBigHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldHeadBig, v))
- }
- // HeadBigEqualFold applies the EqualFold predicate on the "head_big" field.
- func HeadBigEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldHeadBig, v))
- }
- // HeadBigContainsFold applies the ContainsFold predicate on the "head_big" field.
- func HeadBigContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldHeadBig, v))
- }
- // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
- func OrganizationIDEQ(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldOrganizationID, v))
- }
- // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
- func OrganizationIDNEQ(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldOrganizationID, v))
- }
- // OrganizationIDIn applies the In predicate on the "organization_id" field.
- func OrganizationIDIn(vs ...uint64) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldOrganizationID, vs...))
- }
- // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
- func OrganizationIDNotIn(vs ...uint64) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldOrganizationID, vs...))
- }
- // OrganizationIDGT applies the GT predicate on the "organization_id" field.
- func OrganizationIDGT(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldOrganizationID, v))
- }
- // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
- func OrganizationIDGTE(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldOrganizationID, v))
- }
- // OrganizationIDLT applies the LT predicate on the "organization_id" field.
- func OrganizationIDLT(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldOrganizationID, v))
- }
- // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
- func OrganizationIDLTE(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldOrganizationID, v))
- }
- // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
- func OrganizationIDIsNil() predicate.Wx {
- return predicate.Wx(sql.FieldIsNull(FieldOrganizationID))
- }
- // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
- func OrganizationIDNotNil() predicate.Wx {
- return predicate.Wx(sql.FieldNotNull(FieldOrganizationID))
- }
- // AgentIDEQ applies the EQ predicate on the "agent_id" field.
- func AgentIDEQ(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldAgentID, v))
- }
- // AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
- func AgentIDNEQ(v uint64) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldAgentID, v))
- }
- // AgentIDIn applies the In predicate on the "agent_id" field.
- func AgentIDIn(vs ...uint64) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldAgentID, vs...))
- }
- // AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
- func AgentIDNotIn(vs ...uint64) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldAgentID, vs...))
- }
- // APIBaseEQ applies the EQ predicate on the "api_base" field.
- func APIBaseEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldAPIBase, v))
- }
- // APIBaseNEQ applies the NEQ predicate on the "api_base" field.
- func APIBaseNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldAPIBase, v))
- }
- // APIBaseIn applies the In predicate on the "api_base" field.
- func APIBaseIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldAPIBase, vs...))
- }
- // APIBaseNotIn applies the NotIn predicate on the "api_base" field.
- func APIBaseNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldAPIBase, vs...))
- }
- // APIBaseGT applies the GT predicate on the "api_base" field.
- func APIBaseGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldAPIBase, v))
- }
- // APIBaseGTE applies the GTE predicate on the "api_base" field.
- func APIBaseGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldAPIBase, v))
- }
- // APIBaseLT applies the LT predicate on the "api_base" field.
- func APIBaseLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldAPIBase, v))
- }
- // APIBaseLTE applies the LTE predicate on the "api_base" field.
- func APIBaseLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldAPIBase, v))
- }
- // APIBaseContains applies the Contains predicate on the "api_base" field.
- func APIBaseContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldAPIBase, v))
- }
- // APIBaseHasPrefix applies the HasPrefix predicate on the "api_base" field.
- func APIBaseHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldAPIBase, v))
- }
- // APIBaseHasSuffix applies the HasSuffix predicate on the "api_base" field.
- func APIBaseHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldAPIBase, v))
- }
- // APIBaseIsNil applies the IsNil predicate on the "api_base" field.
- func APIBaseIsNil() predicate.Wx {
- return predicate.Wx(sql.FieldIsNull(FieldAPIBase))
- }
- // APIBaseNotNil applies the NotNil predicate on the "api_base" field.
- func APIBaseNotNil() predicate.Wx {
- return predicate.Wx(sql.FieldNotNull(FieldAPIBase))
- }
- // APIBaseEqualFold applies the EqualFold predicate on the "api_base" field.
- func APIBaseEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldAPIBase, v))
- }
- // APIBaseContainsFold applies the ContainsFold predicate on the "api_base" field.
- func APIBaseContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldAPIBase, v))
- }
- // APIKeyEQ applies the EQ predicate on the "api_key" field.
- func APIKeyEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEQ(FieldAPIKey, v))
- }
- // APIKeyNEQ applies the NEQ predicate on the "api_key" field.
- func APIKeyNEQ(v string) predicate.Wx {
- return predicate.Wx(sql.FieldNEQ(FieldAPIKey, v))
- }
- // APIKeyIn applies the In predicate on the "api_key" field.
- func APIKeyIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldIn(FieldAPIKey, vs...))
- }
- // APIKeyNotIn applies the NotIn predicate on the "api_key" field.
- func APIKeyNotIn(vs ...string) predicate.Wx {
- return predicate.Wx(sql.FieldNotIn(FieldAPIKey, vs...))
- }
- // APIKeyGT applies the GT predicate on the "api_key" field.
- func APIKeyGT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGT(FieldAPIKey, v))
- }
- // APIKeyGTE applies the GTE predicate on the "api_key" field.
- func APIKeyGTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldGTE(FieldAPIKey, v))
- }
- // APIKeyLT applies the LT predicate on the "api_key" field.
- func APIKeyLT(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLT(FieldAPIKey, v))
- }
- // APIKeyLTE applies the LTE predicate on the "api_key" field.
- func APIKeyLTE(v string) predicate.Wx {
- return predicate.Wx(sql.FieldLTE(FieldAPIKey, v))
- }
- // APIKeyContains applies the Contains predicate on the "api_key" field.
- func APIKeyContains(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContains(FieldAPIKey, v))
- }
- // APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.
- func APIKeyHasPrefix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasPrefix(FieldAPIKey, v))
- }
- // APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.
- func APIKeyHasSuffix(v string) predicate.Wx {
- return predicate.Wx(sql.FieldHasSuffix(FieldAPIKey, v))
- }
- // APIKeyIsNil applies the IsNil predicate on the "api_key" field.
- func APIKeyIsNil() predicate.Wx {
- return predicate.Wx(sql.FieldIsNull(FieldAPIKey))
- }
- // APIKeyNotNil applies the NotNil predicate on the "api_key" field.
- func APIKeyNotNil() predicate.Wx {
- return predicate.Wx(sql.FieldNotNull(FieldAPIKey))
- }
- // APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.
- func APIKeyEqualFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldEqualFold(FieldAPIKey, v))
- }
- // APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.
- func APIKeyContainsFold(v string) predicate.Wx {
- return predicate.Wx(sql.FieldContainsFold(FieldAPIKey, v))
- }
- // HasServer applies the HasEdge predicate on the "server" edge.
- func HasServer() predicate.Wx {
- return predicate.Wx(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.M2O, true, ServerTable, ServerColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasServerWith applies the HasEdge predicate on the "server" edge with a given conditions (other predicates).
- func HasServerWith(preds ...predicate.Server) predicate.Wx {
- return predicate.Wx(func(s *sql.Selector) {
- step := newServerStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // HasAgent applies the HasEdge predicate on the "agent" edge.
- func HasAgent() predicate.Wx {
- return predicate.Wx(func(s *sql.Selector) {
- step := sqlgraph.NewStep(
- sqlgraph.From(Table, FieldID),
- sqlgraph.Edge(sqlgraph.M2O, true, AgentTable, AgentColumn),
- )
- sqlgraph.HasNeighbors(s, step)
- })
- }
- // HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
- func HasAgentWith(preds ...predicate.Agent) predicate.Wx {
- return predicate.Wx(func(s *sql.Selector) {
- step := newAgentStep()
- sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
- for _, p := range preds {
- p(s)
- }
- })
- })
- }
- // And groups predicates with the AND operator between them.
- func And(predicates ...predicate.Wx) predicate.Wx {
- return predicate.Wx(sql.AndPredicates(predicates...))
- }
- // Or groups predicates with the OR operator between them.
- func Or(predicates ...predicate.Wx) predicate.Wx {
- return predicate.Wx(sql.OrPredicates(predicates...))
- }
- // Not applies the not operator on the given predicate.
- func Not(p predicate.Wx) predicate.Wx {
- return predicate.Wx(sql.NotPredicates(p))
- }
|