where.go 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152
  1. // Code generated by ent, DO NOT EDIT.
  2. package wx
  3. import (
  4. "time"
  5. "wechat-api/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. "entgo.io/ent/dialect/sql/sqlgraph"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id uint64) predicate.Wx {
  11. return predicate.Wx(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id uint64) predicate.Wx {
  15. return predicate.Wx(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id uint64) predicate.Wx {
  19. return predicate.Wx(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...uint64) predicate.Wx {
  23. return predicate.Wx(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...uint64) predicate.Wx {
  27. return predicate.Wx(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id uint64) predicate.Wx {
  31. return predicate.Wx(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id uint64) predicate.Wx {
  35. return predicate.Wx(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id uint64) predicate.Wx {
  39. return predicate.Wx(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id uint64) predicate.Wx {
  43. return predicate.Wx(sql.FieldLTE(FieldID, id))
  44. }
  45. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  46. func CreatedAt(v time.Time) predicate.Wx {
  47. return predicate.Wx(sql.FieldEQ(FieldCreatedAt, v))
  48. }
  49. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  50. func UpdatedAt(v time.Time) predicate.Wx {
  51. return predicate.Wx(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  54. func Status(v uint8) predicate.Wx {
  55. return predicate.Wx(sql.FieldEQ(FieldStatus, v))
  56. }
  57. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  58. func DeletedAt(v time.Time) predicate.Wx {
  59. return predicate.Wx(sql.FieldEQ(FieldDeletedAt, v))
  60. }
  61. // ServerID applies equality check predicate on the "server_id" field. It's identical to ServerIDEQ.
  62. func ServerID(v uint64) predicate.Wx {
  63. return predicate.Wx(sql.FieldEQ(FieldServerID, v))
  64. }
  65. // Port applies equality check predicate on the "port" field. It's identical to PortEQ.
  66. func Port(v string) predicate.Wx {
  67. return predicate.Wx(sql.FieldEQ(FieldPort, v))
  68. }
  69. // ProcessID applies equality check predicate on the "process_id" field. It's identical to ProcessIDEQ.
  70. func ProcessID(v string) predicate.Wx {
  71. return predicate.Wx(sql.FieldEQ(FieldProcessID, v))
  72. }
  73. // Callback applies equality check predicate on the "callback" field. It's identical to CallbackEQ.
  74. func Callback(v string) predicate.Wx {
  75. return predicate.Wx(sql.FieldEQ(FieldCallback, v))
  76. }
  77. // Wxid applies equality check predicate on the "wxid" field. It's identical to WxidEQ.
  78. func Wxid(v string) predicate.Wx {
  79. return predicate.Wx(sql.FieldEQ(FieldWxid, v))
  80. }
  81. // Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
  82. func Account(v string) predicate.Wx {
  83. return predicate.Wx(sql.FieldEQ(FieldAccount, v))
  84. }
  85. // Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
  86. func Nickname(v string) predicate.Wx {
  87. return predicate.Wx(sql.FieldEQ(FieldNickname, v))
  88. }
  89. // Tel applies equality check predicate on the "tel" field. It's identical to TelEQ.
  90. func Tel(v string) predicate.Wx {
  91. return predicate.Wx(sql.FieldEQ(FieldTel, v))
  92. }
  93. // HeadBig applies equality check predicate on the "head_big" field. It's identical to HeadBigEQ.
  94. func HeadBig(v string) predicate.Wx {
  95. return predicate.Wx(sql.FieldEQ(FieldHeadBig, v))
  96. }
  97. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  98. func OrganizationID(v uint64) predicate.Wx {
  99. return predicate.Wx(sql.FieldEQ(FieldOrganizationID, v))
  100. }
  101. // AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
  102. func AgentID(v uint64) predicate.Wx {
  103. return predicate.Wx(sql.FieldEQ(FieldAgentID, v))
  104. }
  105. // APIBase applies equality check predicate on the "api_base" field. It's identical to APIBaseEQ.
  106. func APIBase(v string) predicate.Wx {
  107. return predicate.Wx(sql.FieldEQ(FieldAPIBase, v))
  108. }
  109. // APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.
  110. func APIKey(v string) predicate.Wx {
  111. return predicate.Wx(sql.FieldEQ(FieldAPIKey, v))
  112. }
  113. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  114. func CreatedAtEQ(v time.Time) predicate.Wx {
  115. return predicate.Wx(sql.FieldEQ(FieldCreatedAt, v))
  116. }
  117. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  118. func CreatedAtNEQ(v time.Time) predicate.Wx {
  119. return predicate.Wx(sql.FieldNEQ(FieldCreatedAt, v))
  120. }
  121. // CreatedAtIn applies the In predicate on the "created_at" field.
  122. func CreatedAtIn(vs ...time.Time) predicate.Wx {
  123. return predicate.Wx(sql.FieldIn(FieldCreatedAt, vs...))
  124. }
  125. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  126. func CreatedAtNotIn(vs ...time.Time) predicate.Wx {
  127. return predicate.Wx(sql.FieldNotIn(FieldCreatedAt, vs...))
  128. }
  129. // CreatedAtGT applies the GT predicate on the "created_at" field.
  130. func CreatedAtGT(v time.Time) predicate.Wx {
  131. return predicate.Wx(sql.FieldGT(FieldCreatedAt, v))
  132. }
  133. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  134. func CreatedAtGTE(v time.Time) predicate.Wx {
  135. return predicate.Wx(sql.FieldGTE(FieldCreatedAt, v))
  136. }
  137. // CreatedAtLT applies the LT predicate on the "created_at" field.
  138. func CreatedAtLT(v time.Time) predicate.Wx {
  139. return predicate.Wx(sql.FieldLT(FieldCreatedAt, v))
  140. }
  141. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  142. func CreatedAtLTE(v time.Time) predicate.Wx {
  143. return predicate.Wx(sql.FieldLTE(FieldCreatedAt, v))
  144. }
  145. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  146. func UpdatedAtEQ(v time.Time) predicate.Wx {
  147. return predicate.Wx(sql.FieldEQ(FieldUpdatedAt, v))
  148. }
  149. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  150. func UpdatedAtNEQ(v time.Time) predicate.Wx {
  151. return predicate.Wx(sql.FieldNEQ(FieldUpdatedAt, v))
  152. }
  153. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  154. func UpdatedAtIn(vs ...time.Time) predicate.Wx {
  155. return predicate.Wx(sql.FieldIn(FieldUpdatedAt, vs...))
  156. }
  157. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  158. func UpdatedAtNotIn(vs ...time.Time) predicate.Wx {
  159. return predicate.Wx(sql.FieldNotIn(FieldUpdatedAt, vs...))
  160. }
  161. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  162. func UpdatedAtGT(v time.Time) predicate.Wx {
  163. return predicate.Wx(sql.FieldGT(FieldUpdatedAt, v))
  164. }
  165. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  166. func UpdatedAtGTE(v time.Time) predicate.Wx {
  167. return predicate.Wx(sql.FieldGTE(FieldUpdatedAt, v))
  168. }
  169. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  170. func UpdatedAtLT(v time.Time) predicate.Wx {
  171. return predicate.Wx(sql.FieldLT(FieldUpdatedAt, v))
  172. }
  173. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  174. func UpdatedAtLTE(v time.Time) predicate.Wx {
  175. return predicate.Wx(sql.FieldLTE(FieldUpdatedAt, v))
  176. }
  177. // StatusEQ applies the EQ predicate on the "status" field.
  178. func StatusEQ(v uint8) predicate.Wx {
  179. return predicate.Wx(sql.FieldEQ(FieldStatus, v))
  180. }
  181. // StatusNEQ applies the NEQ predicate on the "status" field.
  182. func StatusNEQ(v uint8) predicate.Wx {
  183. return predicate.Wx(sql.FieldNEQ(FieldStatus, v))
  184. }
  185. // StatusIn applies the In predicate on the "status" field.
  186. func StatusIn(vs ...uint8) predicate.Wx {
  187. return predicate.Wx(sql.FieldIn(FieldStatus, vs...))
  188. }
  189. // StatusNotIn applies the NotIn predicate on the "status" field.
  190. func StatusNotIn(vs ...uint8) predicate.Wx {
  191. return predicate.Wx(sql.FieldNotIn(FieldStatus, vs...))
  192. }
  193. // StatusGT applies the GT predicate on the "status" field.
  194. func StatusGT(v uint8) predicate.Wx {
  195. return predicate.Wx(sql.FieldGT(FieldStatus, v))
  196. }
  197. // StatusGTE applies the GTE predicate on the "status" field.
  198. func StatusGTE(v uint8) predicate.Wx {
  199. return predicate.Wx(sql.FieldGTE(FieldStatus, v))
  200. }
  201. // StatusLT applies the LT predicate on the "status" field.
  202. func StatusLT(v uint8) predicate.Wx {
  203. return predicate.Wx(sql.FieldLT(FieldStatus, v))
  204. }
  205. // StatusLTE applies the LTE predicate on the "status" field.
  206. func StatusLTE(v uint8) predicate.Wx {
  207. return predicate.Wx(sql.FieldLTE(FieldStatus, v))
  208. }
  209. // StatusIsNil applies the IsNil predicate on the "status" field.
  210. func StatusIsNil() predicate.Wx {
  211. return predicate.Wx(sql.FieldIsNull(FieldStatus))
  212. }
  213. // StatusNotNil applies the NotNil predicate on the "status" field.
  214. func StatusNotNil() predicate.Wx {
  215. return predicate.Wx(sql.FieldNotNull(FieldStatus))
  216. }
  217. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  218. func DeletedAtEQ(v time.Time) predicate.Wx {
  219. return predicate.Wx(sql.FieldEQ(FieldDeletedAt, v))
  220. }
  221. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  222. func DeletedAtNEQ(v time.Time) predicate.Wx {
  223. return predicate.Wx(sql.FieldNEQ(FieldDeletedAt, v))
  224. }
  225. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  226. func DeletedAtIn(vs ...time.Time) predicate.Wx {
  227. return predicate.Wx(sql.FieldIn(FieldDeletedAt, vs...))
  228. }
  229. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  230. func DeletedAtNotIn(vs ...time.Time) predicate.Wx {
  231. return predicate.Wx(sql.FieldNotIn(FieldDeletedAt, vs...))
  232. }
  233. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  234. func DeletedAtGT(v time.Time) predicate.Wx {
  235. return predicate.Wx(sql.FieldGT(FieldDeletedAt, v))
  236. }
  237. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  238. func DeletedAtGTE(v time.Time) predicate.Wx {
  239. return predicate.Wx(sql.FieldGTE(FieldDeletedAt, v))
  240. }
  241. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  242. func DeletedAtLT(v time.Time) predicate.Wx {
  243. return predicate.Wx(sql.FieldLT(FieldDeletedAt, v))
  244. }
  245. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  246. func DeletedAtLTE(v time.Time) predicate.Wx {
  247. return predicate.Wx(sql.FieldLTE(FieldDeletedAt, v))
  248. }
  249. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  250. func DeletedAtIsNil() predicate.Wx {
  251. return predicate.Wx(sql.FieldIsNull(FieldDeletedAt))
  252. }
  253. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  254. func DeletedAtNotNil() predicate.Wx {
  255. return predicate.Wx(sql.FieldNotNull(FieldDeletedAt))
  256. }
  257. // ServerIDEQ applies the EQ predicate on the "server_id" field.
  258. func ServerIDEQ(v uint64) predicate.Wx {
  259. return predicate.Wx(sql.FieldEQ(FieldServerID, v))
  260. }
  261. // ServerIDNEQ applies the NEQ predicate on the "server_id" field.
  262. func ServerIDNEQ(v uint64) predicate.Wx {
  263. return predicate.Wx(sql.FieldNEQ(FieldServerID, v))
  264. }
  265. // ServerIDIn applies the In predicate on the "server_id" field.
  266. func ServerIDIn(vs ...uint64) predicate.Wx {
  267. return predicate.Wx(sql.FieldIn(FieldServerID, vs...))
  268. }
  269. // ServerIDNotIn applies the NotIn predicate on the "server_id" field.
  270. func ServerIDNotIn(vs ...uint64) predicate.Wx {
  271. return predicate.Wx(sql.FieldNotIn(FieldServerID, vs...))
  272. }
  273. // ServerIDIsNil applies the IsNil predicate on the "server_id" field.
  274. func ServerIDIsNil() predicate.Wx {
  275. return predicate.Wx(sql.FieldIsNull(FieldServerID))
  276. }
  277. // ServerIDNotNil applies the NotNil predicate on the "server_id" field.
  278. func ServerIDNotNil() predicate.Wx {
  279. return predicate.Wx(sql.FieldNotNull(FieldServerID))
  280. }
  281. // PortEQ applies the EQ predicate on the "port" field.
  282. func PortEQ(v string) predicate.Wx {
  283. return predicate.Wx(sql.FieldEQ(FieldPort, v))
  284. }
  285. // PortNEQ applies the NEQ predicate on the "port" field.
  286. func PortNEQ(v string) predicate.Wx {
  287. return predicate.Wx(sql.FieldNEQ(FieldPort, v))
  288. }
  289. // PortIn applies the In predicate on the "port" field.
  290. func PortIn(vs ...string) predicate.Wx {
  291. return predicate.Wx(sql.FieldIn(FieldPort, vs...))
  292. }
  293. // PortNotIn applies the NotIn predicate on the "port" field.
  294. func PortNotIn(vs ...string) predicate.Wx {
  295. return predicate.Wx(sql.FieldNotIn(FieldPort, vs...))
  296. }
  297. // PortGT applies the GT predicate on the "port" field.
  298. func PortGT(v string) predicate.Wx {
  299. return predicate.Wx(sql.FieldGT(FieldPort, v))
  300. }
  301. // PortGTE applies the GTE predicate on the "port" field.
  302. func PortGTE(v string) predicate.Wx {
  303. return predicate.Wx(sql.FieldGTE(FieldPort, v))
  304. }
  305. // PortLT applies the LT predicate on the "port" field.
  306. func PortLT(v string) predicate.Wx {
  307. return predicate.Wx(sql.FieldLT(FieldPort, v))
  308. }
  309. // PortLTE applies the LTE predicate on the "port" field.
  310. func PortLTE(v string) predicate.Wx {
  311. return predicate.Wx(sql.FieldLTE(FieldPort, v))
  312. }
  313. // PortContains applies the Contains predicate on the "port" field.
  314. func PortContains(v string) predicate.Wx {
  315. return predicate.Wx(sql.FieldContains(FieldPort, v))
  316. }
  317. // PortHasPrefix applies the HasPrefix predicate on the "port" field.
  318. func PortHasPrefix(v string) predicate.Wx {
  319. return predicate.Wx(sql.FieldHasPrefix(FieldPort, v))
  320. }
  321. // PortHasSuffix applies the HasSuffix predicate on the "port" field.
  322. func PortHasSuffix(v string) predicate.Wx {
  323. return predicate.Wx(sql.FieldHasSuffix(FieldPort, v))
  324. }
  325. // PortEqualFold applies the EqualFold predicate on the "port" field.
  326. func PortEqualFold(v string) predicate.Wx {
  327. return predicate.Wx(sql.FieldEqualFold(FieldPort, v))
  328. }
  329. // PortContainsFold applies the ContainsFold predicate on the "port" field.
  330. func PortContainsFold(v string) predicate.Wx {
  331. return predicate.Wx(sql.FieldContainsFold(FieldPort, v))
  332. }
  333. // ProcessIDEQ applies the EQ predicate on the "process_id" field.
  334. func ProcessIDEQ(v string) predicate.Wx {
  335. return predicate.Wx(sql.FieldEQ(FieldProcessID, v))
  336. }
  337. // ProcessIDNEQ applies the NEQ predicate on the "process_id" field.
  338. func ProcessIDNEQ(v string) predicate.Wx {
  339. return predicate.Wx(sql.FieldNEQ(FieldProcessID, v))
  340. }
  341. // ProcessIDIn applies the In predicate on the "process_id" field.
  342. func ProcessIDIn(vs ...string) predicate.Wx {
  343. return predicate.Wx(sql.FieldIn(FieldProcessID, vs...))
  344. }
  345. // ProcessIDNotIn applies the NotIn predicate on the "process_id" field.
  346. func ProcessIDNotIn(vs ...string) predicate.Wx {
  347. return predicate.Wx(sql.FieldNotIn(FieldProcessID, vs...))
  348. }
  349. // ProcessIDGT applies the GT predicate on the "process_id" field.
  350. func ProcessIDGT(v string) predicate.Wx {
  351. return predicate.Wx(sql.FieldGT(FieldProcessID, v))
  352. }
  353. // ProcessIDGTE applies the GTE predicate on the "process_id" field.
  354. func ProcessIDGTE(v string) predicate.Wx {
  355. return predicate.Wx(sql.FieldGTE(FieldProcessID, v))
  356. }
  357. // ProcessIDLT applies the LT predicate on the "process_id" field.
  358. func ProcessIDLT(v string) predicate.Wx {
  359. return predicate.Wx(sql.FieldLT(FieldProcessID, v))
  360. }
  361. // ProcessIDLTE applies the LTE predicate on the "process_id" field.
  362. func ProcessIDLTE(v string) predicate.Wx {
  363. return predicate.Wx(sql.FieldLTE(FieldProcessID, v))
  364. }
  365. // ProcessIDContains applies the Contains predicate on the "process_id" field.
  366. func ProcessIDContains(v string) predicate.Wx {
  367. return predicate.Wx(sql.FieldContains(FieldProcessID, v))
  368. }
  369. // ProcessIDHasPrefix applies the HasPrefix predicate on the "process_id" field.
  370. func ProcessIDHasPrefix(v string) predicate.Wx {
  371. return predicate.Wx(sql.FieldHasPrefix(FieldProcessID, v))
  372. }
  373. // ProcessIDHasSuffix applies the HasSuffix predicate on the "process_id" field.
  374. func ProcessIDHasSuffix(v string) predicate.Wx {
  375. return predicate.Wx(sql.FieldHasSuffix(FieldProcessID, v))
  376. }
  377. // ProcessIDEqualFold applies the EqualFold predicate on the "process_id" field.
  378. func ProcessIDEqualFold(v string) predicate.Wx {
  379. return predicate.Wx(sql.FieldEqualFold(FieldProcessID, v))
  380. }
  381. // ProcessIDContainsFold applies the ContainsFold predicate on the "process_id" field.
  382. func ProcessIDContainsFold(v string) predicate.Wx {
  383. return predicate.Wx(sql.FieldContainsFold(FieldProcessID, v))
  384. }
  385. // CallbackEQ applies the EQ predicate on the "callback" field.
  386. func CallbackEQ(v string) predicate.Wx {
  387. return predicate.Wx(sql.FieldEQ(FieldCallback, v))
  388. }
  389. // CallbackNEQ applies the NEQ predicate on the "callback" field.
  390. func CallbackNEQ(v string) predicate.Wx {
  391. return predicate.Wx(sql.FieldNEQ(FieldCallback, v))
  392. }
  393. // CallbackIn applies the In predicate on the "callback" field.
  394. func CallbackIn(vs ...string) predicate.Wx {
  395. return predicate.Wx(sql.FieldIn(FieldCallback, vs...))
  396. }
  397. // CallbackNotIn applies the NotIn predicate on the "callback" field.
  398. func CallbackNotIn(vs ...string) predicate.Wx {
  399. return predicate.Wx(sql.FieldNotIn(FieldCallback, vs...))
  400. }
  401. // CallbackGT applies the GT predicate on the "callback" field.
  402. func CallbackGT(v string) predicate.Wx {
  403. return predicate.Wx(sql.FieldGT(FieldCallback, v))
  404. }
  405. // CallbackGTE applies the GTE predicate on the "callback" field.
  406. func CallbackGTE(v string) predicate.Wx {
  407. return predicate.Wx(sql.FieldGTE(FieldCallback, v))
  408. }
  409. // CallbackLT applies the LT predicate on the "callback" field.
  410. func CallbackLT(v string) predicate.Wx {
  411. return predicate.Wx(sql.FieldLT(FieldCallback, v))
  412. }
  413. // CallbackLTE applies the LTE predicate on the "callback" field.
  414. func CallbackLTE(v string) predicate.Wx {
  415. return predicate.Wx(sql.FieldLTE(FieldCallback, v))
  416. }
  417. // CallbackContains applies the Contains predicate on the "callback" field.
  418. func CallbackContains(v string) predicate.Wx {
  419. return predicate.Wx(sql.FieldContains(FieldCallback, v))
  420. }
  421. // CallbackHasPrefix applies the HasPrefix predicate on the "callback" field.
  422. func CallbackHasPrefix(v string) predicate.Wx {
  423. return predicate.Wx(sql.FieldHasPrefix(FieldCallback, v))
  424. }
  425. // CallbackHasSuffix applies the HasSuffix predicate on the "callback" field.
  426. func CallbackHasSuffix(v string) predicate.Wx {
  427. return predicate.Wx(sql.FieldHasSuffix(FieldCallback, v))
  428. }
  429. // CallbackEqualFold applies the EqualFold predicate on the "callback" field.
  430. func CallbackEqualFold(v string) predicate.Wx {
  431. return predicate.Wx(sql.FieldEqualFold(FieldCallback, v))
  432. }
  433. // CallbackContainsFold applies the ContainsFold predicate on the "callback" field.
  434. func CallbackContainsFold(v string) predicate.Wx {
  435. return predicate.Wx(sql.FieldContainsFold(FieldCallback, v))
  436. }
  437. // WxidEQ applies the EQ predicate on the "wxid" field.
  438. func WxidEQ(v string) predicate.Wx {
  439. return predicate.Wx(sql.FieldEQ(FieldWxid, v))
  440. }
  441. // WxidNEQ applies the NEQ predicate on the "wxid" field.
  442. func WxidNEQ(v string) predicate.Wx {
  443. return predicate.Wx(sql.FieldNEQ(FieldWxid, v))
  444. }
  445. // WxidIn applies the In predicate on the "wxid" field.
  446. func WxidIn(vs ...string) predicate.Wx {
  447. return predicate.Wx(sql.FieldIn(FieldWxid, vs...))
  448. }
  449. // WxidNotIn applies the NotIn predicate on the "wxid" field.
  450. func WxidNotIn(vs ...string) predicate.Wx {
  451. return predicate.Wx(sql.FieldNotIn(FieldWxid, vs...))
  452. }
  453. // WxidGT applies the GT predicate on the "wxid" field.
  454. func WxidGT(v string) predicate.Wx {
  455. return predicate.Wx(sql.FieldGT(FieldWxid, v))
  456. }
  457. // WxidGTE applies the GTE predicate on the "wxid" field.
  458. func WxidGTE(v string) predicate.Wx {
  459. return predicate.Wx(sql.FieldGTE(FieldWxid, v))
  460. }
  461. // WxidLT applies the LT predicate on the "wxid" field.
  462. func WxidLT(v string) predicate.Wx {
  463. return predicate.Wx(sql.FieldLT(FieldWxid, v))
  464. }
  465. // WxidLTE applies the LTE predicate on the "wxid" field.
  466. func WxidLTE(v string) predicate.Wx {
  467. return predicate.Wx(sql.FieldLTE(FieldWxid, v))
  468. }
  469. // WxidContains applies the Contains predicate on the "wxid" field.
  470. func WxidContains(v string) predicate.Wx {
  471. return predicate.Wx(sql.FieldContains(FieldWxid, v))
  472. }
  473. // WxidHasPrefix applies the HasPrefix predicate on the "wxid" field.
  474. func WxidHasPrefix(v string) predicate.Wx {
  475. return predicate.Wx(sql.FieldHasPrefix(FieldWxid, v))
  476. }
  477. // WxidHasSuffix applies the HasSuffix predicate on the "wxid" field.
  478. func WxidHasSuffix(v string) predicate.Wx {
  479. return predicate.Wx(sql.FieldHasSuffix(FieldWxid, v))
  480. }
  481. // WxidEqualFold applies the EqualFold predicate on the "wxid" field.
  482. func WxidEqualFold(v string) predicate.Wx {
  483. return predicate.Wx(sql.FieldEqualFold(FieldWxid, v))
  484. }
  485. // WxidContainsFold applies the ContainsFold predicate on the "wxid" field.
  486. func WxidContainsFold(v string) predicate.Wx {
  487. return predicate.Wx(sql.FieldContainsFold(FieldWxid, v))
  488. }
  489. // AccountEQ applies the EQ predicate on the "account" field.
  490. func AccountEQ(v string) predicate.Wx {
  491. return predicate.Wx(sql.FieldEQ(FieldAccount, v))
  492. }
  493. // AccountNEQ applies the NEQ predicate on the "account" field.
  494. func AccountNEQ(v string) predicate.Wx {
  495. return predicate.Wx(sql.FieldNEQ(FieldAccount, v))
  496. }
  497. // AccountIn applies the In predicate on the "account" field.
  498. func AccountIn(vs ...string) predicate.Wx {
  499. return predicate.Wx(sql.FieldIn(FieldAccount, vs...))
  500. }
  501. // AccountNotIn applies the NotIn predicate on the "account" field.
  502. func AccountNotIn(vs ...string) predicate.Wx {
  503. return predicate.Wx(sql.FieldNotIn(FieldAccount, vs...))
  504. }
  505. // AccountGT applies the GT predicate on the "account" field.
  506. func AccountGT(v string) predicate.Wx {
  507. return predicate.Wx(sql.FieldGT(FieldAccount, v))
  508. }
  509. // AccountGTE applies the GTE predicate on the "account" field.
  510. func AccountGTE(v string) predicate.Wx {
  511. return predicate.Wx(sql.FieldGTE(FieldAccount, v))
  512. }
  513. // AccountLT applies the LT predicate on the "account" field.
  514. func AccountLT(v string) predicate.Wx {
  515. return predicate.Wx(sql.FieldLT(FieldAccount, v))
  516. }
  517. // AccountLTE applies the LTE predicate on the "account" field.
  518. func AccountLTE(v string) predicate.Wx {
  519. return predicate.Wx(sql.FieldLTE(FieldAccount, v))
  520. }
  521. // AccountContains applies the Contains predicate on the "account" field.
  522. func AccountContains(v string) predicate.Wx {
  523. return predicate.Wx(sql.FieldContains(FieldAccount, v))
  524. }
  525. // AccountHasPrefix applies the HasPrefix predicate on the "account" field.
  526. func AccountHasPrefix(v string) predicate.Wx {
  527. return predicate.Wx(sql.FieldHasPrefix(FieldAccount, v))
  528. }
  529. // AccountHasSuffix applies the HasSuffix predicate on the "account" field.
  530. func AccountHasSuffix(v string) predicate.Wx {
  531. return predicate.Wx(sql.FieldHasSuffix(FieldAccount, v))
  532. }
  533. // AccountEqualFold applies the EqualFold predicate on the "account" field.
  534. func AccountEqualFold(v string) predicate.Wx {
  535. return predicate.Wx(sql.FieldEqualFold(FieldAccount, v))
  536. }
  537. // AccountContainsFold applies the ContainsFold predicate on the "account" field.
  538. func AccountContainsFold(v string) predicate.Wx {
  539. return predicate.Wx(sql.FieldContainsFold(FieldAccount, v))
  540. }
  541. // NicknameEQ applies the EQ predicate on the "nickname" field.
  542. func NicknameEQ(v string) predicate.Wx {
  543. return predicate.Wx(sql.FieldEQ(FieldNickname, v))
  544. }
  545. // NicknameNEQ applies the NEQ predicate on the "nickname" field.
  546. func NicknameNEQ(v string) predicate.Wx {
  547. return predicate.Wx(sql.FieldNEQ(FieldNickname, v))
  548. }
  549. // NicknameIn applies the In predicate on the "nickname" field.
  550. func NicknameIn(vs ...string) predicate.Wx {
  551. return predicate.Wx(sql.FieldIn(FieldNickname, vs...))
  552. }
  553. // NicknameNotIn applies the NotIn predicate on the "nickname" field.
  554. func NicknameNotIn(vs ...string) predicate.Wx {
  555. return predicate.Wx(sql.FieldNotIn(FieldNickname, vs...))
  556. }
  557. // NicknameGT applies the GT predicate on the "nickname" field.
  558. func NicknameGT(v string) predicate.Wx {
  559. return predicate.Wx(sql.FieldGT(FieldNickname, v))
  560. }
  561. // NicknameGTE applies the GTE predicate on the "nickname" field.
  562. func NicknameGTE(v string) predicate.Wx {
  563. return predicate.Wx(sql.FieldGTE(FieldNickname, v))
  564. }
  565. // NicknameLT applies the LT predicate on the "nickname" field.
  566. func NicknameLT(v string) predicate.Wx {
  567. return predicate.Wx(sql.FieldLT(FieldNickname, v))
  568. }
  569. // NicknameLTE applies the LTE predicate on the "nickname" field.
  570. func NicknameLTE(v string) predicate.Wx {
  571. return predicate.Wx(sql.FieldLTE(FieldNickname, v))
  572. }
  573. // NicknameContains applies the Contains predicate on the "nickname" field.
  574. func NicknameContains(v string) predicate.Wx {
  575. return predicate.Wx(sql.FieldContains(FieldNickname, v))
  576. }
  577. // NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
  578. func NicknameHasPrefix(v string) predicate.Wx {
  579. return predicate.Wx(sql.FieldHasPrefix(FieldNickname, v))
  580. }
  581. // NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
  582. func NicknameHasSuffix(v string) predicate.Wx {
  583. return predicate.Wx(sql.FieldHasSuffix(FieldNickname, v))
  584. }
  585. // NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
  586. func NicknameEqualFold(v string) predicate.Wx {
  587. return predicate.Wx(sql.FieldEqualFold(FieldNickname, v))
  588. }
  589. // NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
  590. func NicknameContainsFold(v string) predicate.Wx {
  591. return predicate.Wx(sql.FieldContainsFold(FieldNickname, v))
  592. }
  593. // TelEQ applies the EQ predicate on the "tel" field.
  594. func TelEQ(v string) predicate.Wx {
  595. return predicate.Wx(sql.FieldEQ(FieldTel, v))
  596. }
  597. // TelNEQ applies the NEQ predicate on the "tel" field.
  598. func TelNEQ(v string) predicate.Wx {
  599. return predicate.Wx(sql.FieldNEQ(FieldTel, v))
  600. }
  601. // TelIn applies the In predicate on the "tel" field.
  602. func TelIn(vs ...string) predicate.Wx {
  603. return predicate.Wx(sql.FieldIn(FieldTel, vs...))
  604. }
  605. // TelNotIn applies the NotIn predicate on the "tel" field.
  606. func TelNotIn(vs ...string) predicate.Wx {
  607. return predicate.Wx(sql.FieldNotIn(FieldTel, vs...))
  608. }
  609. // TelGT applies the GT predicate on the "tel" field.
  610. func TelGT(v string) predicate.Wx {
  611. return predicate.Wx(sql.FieldGT(FieldTel, v))
  612. }
  613. // TelGTE applies the GTE predicate on the "tel" field.
  614. func TelGTE(v string) predicate.Wx {
  615. return predicate.Wx(sql.FieldGTE(FieldTel, v))
  616. }
  617. // TelLT applies the LT predicate on the "tel" field.
  618. func TelLT(v string) predicate.Wx {
  619. return predicate.Wx(sql.FieldLT(FieldTel, v))
  620. }
  621. // TelLTE applies the LTE predicate on the "tel" field.
  622. func TelLTE(v string) predicate.Wx {
  623. return predicate.Wx(sql.FieldLTE(FieldTel, v))
  624. }
  625. // TelContains applies the Contains predicate on the "tel" field.
  626. func TelContains(v string) predicate.Wx {
  627. return predicate.Wx(sql.FieldContains(FieldTel, v))
  628. }
  629. // TelHasPrefix applies the HasPrefix predicate on the "tel" field.
  630. func TelHasPrefix(v string) predicate.Wx {
  631. return predicate.Wx(sql.FieldHasPrefix(FieldTel, v))
  632. }
  633. // TelHasSuffix applies the HasSuffix predicate on the "tel" field.
  634. func TelHasSuffix(v string) predicate.Wx {
  635. return predicate.Wx(sql.FieldHasSuffix(FieldTel, v))
  636. }
  637. // TelEqualFold applies the EqualFold predicate on the "tel" field.
  638. func TelEqualFold(v string) predicate.Wx {
  639. return predicate.Wx(sql.FieldEqualFold(FieldTel, v))
  640. }
  641. // TelContainsFold applies the ContainsFold predicate on the "tel" field.
  642. func TelContainsFold(v string) predicate.Wx {
  643. return predicate.Wx(sql.FieldContainsFold(FieldTel, v))
  644. }
  645. // HeadBigEQ applies the EQ predicate on the "head_big" field.
  646. func HeadBigEQ(v string) predicate.Wx {
  647. return predicate.Wx(sql.FieldEQ(FieldHeadBig, v))
  648. }
  649. // HeadBigNEQ applies the NEQ predicate on the "head_big" field.
  650. func HeadBigNEQ(v string) predicate.Wx {
  651. return predicate.Wx(sql.FieldNEQ(FieldHeadBig, v))
  652. }
  653. // HeadBigIn applies the In predicate on the "head_big" field.
  654. func HeadBigIn(vs ...string) predicate.Wx {
  655. return predicate.Wx(sql.FieldIn(FieldHeadBig, vs...))
  656. }
  657. // HeadBigNotIn applies the NotIn predicate on the "head_big" field.
  658. func HeadBigNotIn(vs ...string) predicate.Wx {
  659. return predicate.Wx(sql.FieldNotIn(FieldHeadBig, vs...))
  660. }
  661. // HeadBigGT applies the GT predicate on the "head_big" field.
  662. func HeadBigGT(v string) predicate.Wx {
  663. return predicate.Wx(sql.FieldGT(FieldHeadBig, v))
  664. }
  665. // HeadBigGTE applies the GTE predicate on the "head_big" field.
  666. func HeadBigGTE(v string) predicate.Wx {
  667. return predicate.Wx(sql.FieldGTE(FieldHeadBig, v))
  668. }
  669. // HeadBigLT applies the LT predicate on the "head_big" field.
  670. func HeadBigLT(v string) predicate.Wx {
  671. return predicate.Wx(sql.FieldLT(FieldHeadBig, v))
  672. }
  673. // HeadBigLTE applies the LTE predicate on the "head_big" field.
  674. func HeadBigLTE(v string) predicate.Wx {
  675. return predicate.Wx(sql.FieldLTE(FieldHeadBig, v))
  676. }
  677. // HeadBigContains applies the Contains predicate on the "head_big" field.
  678. func HeadBigContains(v string) predicate.Wx {
  679. return predicate.Wx(sql.FieldContains(FieldHeadBig, v))
  680. }
  681. // HeadBigHasPrefix applies the HasPrefix predicate on the "head_big" field.
  682. func HeadBigHasPrefix(v string) predicate.Wx {
  683. return predicate.Wx(sql.FieldHasPrefix(FieldHeadBig, v))
  684. }
  685. // HeadBigHasSuffix applies the HasSuffix predicate on the "head_big" field.
  686. func HeadBigHasSuffix(v string) predicate.Wx {
  687. return predicate.Wx(sql.FieldHasSuffix(FieldHeadBig, v))
  688. }
  689. // HeadBigEqualFold applies the EqualFold predicate on the "head_big" field.
  690. func HeadBigEqualFold(v string) predicate.Wx {
  691. return predicate.Wx(sql.FieldEqualFold(FieldHeadBig, v))
  692. }
  693. // HeadBigContainsFold applies the ContainsFold predicate on the "head_big" field.
  694. func HeadBigContainsFold(v string) predicate.Wx {
  695. return predicate.Wx(sql.FieldContainsFold(FieldHeadBig, v))
  696. }
  697. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  698. func OrganizationIDEQ(v uint64) predicate.Wx {
  699. return predicate.Wx(sql.FieldEQ(FieldOrganizationID, v))
  700. }
  701. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  702. func OrganizationIDNEQ(v uint64) predicate.Wx {
  703. return predicate.Wx(sql.FieldNEQ(FieldOrganizationID, v))
  704. }
  705. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  706. func OrganizationIDIn(vs ...uint64) predicate.Wx {
  707. return predicate.Wx(sql.FieldIn(FieldOrganizationID, vs...))
  708. }
  709. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  710. func OrganizationIDNotIn(vs ...uint64) predicate.Wx {
  711. return predicate.Wx(sql.FieldNotIn(FieldOrganizationID, vs...))
  712. }
  713. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  714. func OrganizationIDGT(v uint64) predicate.Wx {
  715. return predicate.Wx(sql.FieldGT(FieldOrganizationID, v))
  716. }
  717. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  718. func OrganizationIDGTE(v uint64) predicate.Wx {
  719. return predicate.Wx(sql.FieldGTE(FieldOrganizationID, v))
  720. }
  721. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  722. func OrganizationIDLT(v uint64) predicate.Wx {
  723. return predicate.Wx(sql.FieldLT(FieldOrganizationID, v))
  724. }
  725. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  726. func OrganizationIDLTE(v uint64) predicate.Wx {
  727. return predicate.Wx(sql.FieldLTE(FieldOrganizationID, v))
  728. }
  729. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  730. func OrganizationIDIsNil() predicate.Wx {
  731. return predicate.Wx(sql.FieldIsNull(FieldOrganizationID))
  732. }
  733. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  734. func OrganizationIDNotNil() predicate.Wx {
  735. return predicate.Wx(sql.FieldNotNull(FieldOrganizationID))
  736. }
  737. // AgentIDEQ applies the EQ predicate on the "agent_id" field.
  738. func AgentIDEQ(v uint64) predicate.Wx {
  739. return predicate.Wx(sql.FieldEQ(FieldAgentID, v))
  740. }
  741. // AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
  742. func AgentIDNEQ(v uint64) predicate.Wx {
  743. return predicate.Wx(sql.FieldNEQ(FieldAgentID, v))
  744. }
  745. // AgentIDIn applies the In predicate on the "agent_id" field.
  746. func AgentIDIn(vs ...uint64) predicate.Wx {
  747. return predicate.Wx(sql.FieldIn(FieldAgentID, vs...))
  748. }
  749. // AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
  750. func AgentIDNotIn(vs ...uint64) predicate.Wx {
  751. return predicate.Wx(sql.FieldNotIn(FieldAgentID, vs...))
  752. }
  753. // APIBaseEQ applies the EQ predicate on the "api_base" field.
  754. func APIBaseEQ(v string) predicate.Wx {
  755. return predicate.Wx(sql.FieldEQ(FieldAPIBase, v))
  756. }
  757. // APIBaseNEQ applies the NEQ predicate on the "api_base" field.
  758. func APIBaseNEQ(v string) predicate.Wx {
  759. return predicate.Wx(sql.FieldNEQ(FieldAPIBase, v))
  760. }
  761. // APIBaseIn applies the In predicate on the "api_base" field.
  762. func APIBaseIn(vs ...string) predicate.Wx {
  763. return predicate.Wx(sql.FieldIn(FieldAPIBase, vs...))
  764. }
  765. // APIBaseNotIn applies the NotIn predicate on the "api_base" field.
  766. func APIBaseNotIn(vs ...string) predicate.Wx {
  767. return predicate.Wx(sql.FieldNotIn(FieldAPIBase, vs...))
  768. }
  769. // APIBaseGT applies the GT predicate on the "api_base" field.
  770. func APIBaseGT(v string) predicate.Wx {
  771. return predicate.Wx(sql.FieldGT(FieldAPIBase, v))
  772. }
  773. // APIBaseGTE applies the GTE predicate on the "api_base" field.
  774. func APIBaseGTE(v string) predicate.Wx {
  775. return predicate.Wx(sql.FieldGTE(FieldAPIBase, v))
  776. }
  777. // APIBaseLT applies the LT predicate on the "api_base" field.
  778. func APIBaseLT(v string) predicate.Wx {
  779. return predicate.Wx(sql.FieldLT(FieldAPIBase, v))
  780. }
  781. // APIBaseLTE applies the LTE predicate on the "api_base" field.
  782. func APIBaseLTE(v string) predicate.Wx {
  783. return predicate.Wx(sql.FieldLTE(FieldAPIBase, v))
  784. }
  785. // APIBaseContains applies the Contains predicate on the "api_base" field.
  786. func APIBaseContains(v string) predicate.Wx {
  787. return predicate.Wx(sql.FieldContains(FieldAPIBase, v))
  788. }
  789. // APIBaseHasPrefix applies the HasPrefix predicate on the "api_base" field.
  790. func APIBaseHasPrefix(v string) predicate.Wx {
  791. return predicate.Wx(sql.FieldHasPrefix(FieldAPIBase, v))
  792. }
  793. // APIBaseHasSuffix applies the HasSuffix predicate on the "api_base" field.
  794. func APIBaseHasSuffix(v string) predicate.Wx {
  795. return predicate.Wx(sql.FieldHasSuffix(FieldAPIBase, v))
  796. }
  797. // APIBaseIsNil applies the IsNil predicate on the "api_base" field.
  798. func APIBaseIsNil() predicate.Wx {
  799. return predicate.Wx(sql.FieldIsNull(FieldAPIBase))
  800. }
  801. // APIBaseNotNil applies the NotNil predicate on the "api_base" field.
  802. func APIBaseNotNil() predicate.Wx {
  803. return predicate.Wx(sql.FieldNotNull(FieldAPIBase))
  804. }
  805. // APIBaseEqualFold applies the EqualFold predicate on the "api_base" field.
  806. func APIBaseEqualFold(v string) predicate.Wx {
  807. return predicate.Wx(sql.FieldEqualFold(FieldAPIBase, v))
  808. }
  809. // APIBaseContainsFold applies the ContainsFold predicate on the "api_base" field.
  810. func APIBaseContainsFold(v string) predicate.Wx {
  811. return predicate.Wx(sql.FieldContainsFold(FieldAPIBase, v))
  812. }
  813. // APIKeyEQ applies the EQ predicate on the "api_key" field.
  814. func APIKeyEQ(v string) predicate.Wx {
  815. return predicate.Wx(sql.FieldEQ(FieldAPIKey, v))
  816. }
  817. // APIKeyNEQ applies the NEQ predicate on the "api_key" field.
  818. func APIKeyNEQ(v string) predicate.Wx {
  819. return predicate.Wx(sql.FieldNEQ(FieldAPIKey, v))
  820. }
  821. // APIKeyIn applies the In predicate on the "api_key" field.
  822. func APIKeyIn(vs ...string) predicate.Wx {
  823. return predicate.Wx(sql.FieldIn(FieldAPIKey, vs...))
  824. }
  825. // APIKeyNotIn applies the NotIn predicate on the "api_key" field.
  826. func APIKeyNotIn(vs ...string) predicate.Wx {
  827. return predicate.Wx(sql.FieldNotIn(FieldAPIKey, vs...))
  828. }
  829. // APIKeyGT applies the GT predicate on the "api_key" field.
  830. func APIKeyGT(v string) predicate.Wx {
  831. return predicate.Wx(sql.FieldGT(FieldAPIKey, v))
  832. }
  833. // APIKeyGTE applies the GTE predicate on the "api_key" field.
  834. func APIKeyGTE(v string) predicate.Wx {
  835. return predicate.Wx(sql.FieldGTE(FieldAPIKey, v))
  836. }
  837. // APIKeyLT applies the LT predicate on the "api_key" field.
  838. func APIKeyLT(v string) predicate.Wx {
  839. return predicate.Wx(sql.FieldLT(FieldAPIKey, v))
  840. }
  841. // APIKeyLTE applies the LTE predicate on the "api_key" field.
  842. func APIKeyLTE(v string) predicate.Wx {
  843. return predicate.Wx(sql.FieldLTE(FieldAPIKey, v))
  844. }
  845. // APIKeyContains applies the Contains predicate on the "api_key" field.
  846. func APIKeyContains(v string) predicate.Wx {
  847. return predicate.Wx(sql.FieldContains(FieldAPIKey, v))
  848. }
  849. // APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.
  850. func APIKeyHasPrefix(v string) predicate.Wx {
  851. return predicate.Wx(sql.FieldHasPrefix(FieldAPIKey, v))
  852. }
  853. // APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.
  854. func APIKeyHasSuffix(v string) predicate.Wx {
  855. return predicate.Wx(sql.FieldHasSuffix(FieldAPIKey, v))
  856. }
  857. // APIKeyIsNil applies the IsNil predicate on the "api_key" field.
  858. func APIKeyIsNil() predicate.Wx {
  859. return predicate.Wx(sql.FieldIsNull(FieldAPIKey))
  860. }
  861. // APIKeyNotNil applies the NotNil predicate on the "api_key" field.
  862. func APIKeyNotNil() predicate.Wx {
  863. return predicate.Wx(sql.FieldNotNull(FieldAPIKey))
  864. }
  865. // APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.
  866. func APIKeyEqualFold(v string) predicate.Wx {
  867. return predicate.Wx(sql.FieldEqualFold(FieldAPIKey, v))
  868. }
  869. // APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.
  870. func APIKeyContainsFold(v string) predicate.Wx {
  871. return predicate.Wx(sql.FieldContainsFold(FieldAPIKey, v))
  872. }
  873. // HasServer applies the HasEdge predicate on the "server" edge.
  874. func HasServer() predicate.Wx {
  875. return predicate.Wx(func(s *sql.Selector) {
  876. step := sqlgraph.NewStep(
  877. sqlgraph.From(Table, FieldID),
  878. sqlgraph.Edge(sqlgraph.M2O, true, ServerTable, ServerColumn),
  879. )
  880. sqlgraph.HasNeighbors(s, step)
  881. })
  882. }
  883. // HasServerWith applies the HasEdge predicate on the "server" edge with a given conditions (other predicates).
  884. func HasServerWith(preds ...predicate.Server) predicate.Wx {
  885. return predicate.Wx(func(s *sql.Selector) {
  886. step := newServerStep()
  887. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  888. for _, p := range preds {
  889. p(s)
  890. }
  891. })
  892. })
  893. }
  894. // HasAgent applies the HasEdge predicate on the "agent" edge.
  895. func HasAgent() predicate.Wx {
  896. return predicate.Wx(func(s *sql.Selector) {
  897. step := sqlgraph.NewStep(
  898. sqlgraph.From(Table, FieldID),
  899. sqlgraph.Edge(sqlgraph.M2O, true, AgentTable, AgentColumn),
  900. )
  901. sqlgraph.HasNeighbors(s, step)
  902. })
  903. }
  904. // HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
  905. func HasAgentWith(preds ...predicate.Agent) predicate.Wx {
  906. return predicate.Wx(func(s *sql.Selector) {
  907. step := newAgentStep()
  908. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  909. for _, p := range preds {
  910. p(s)
  911. }
  912. })
  913. })
  914. }
  915. // And groups predicates with the AND operator between them.
  916. func And(predicates ...predicate.Wx) predicate.Wx {
  917. return predicate.Wx(sql.AndPredicates(predicates...))
  918. }
  919. // Or groups predicates with the OR operator between them.
  920. func Or(predicates ...predicate.Wx) predicate.Wx {
  921. return predicate.Wx(sql.OrPredicates(predicates...))
  922. }
  923. // Not applies the not operator on the given predicate.
  924. func Not(p predicate.Wx) predicate.Wx {
  925. return predicate.Wx(sql.NotPredicates(p))
  926. }