where.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944
  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. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  102. func CreatedAtEQ(v time.Time) predicate.Wx {
  103. return predicate.Wx(sql.FieldEQ(FieldCreatedAt, v))
  104. }
  105. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  106. func CreatedAtNEQ(v time.Time) predicate.Wx {
  107. return predicate.Wx(sql.FieldNEQ(FieldCreatedAt, v))
  108. }
  109. // CreatedAtIn applies the In predicate on the "created_at" field.
  110. func CreatedAtIn(vs ...time.Time) predicate.Wx {
  111. return predicate.Wx(sql.FieldIn(FieldCreatedAt, vs...))
  112. }
  113. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  114. func CreatedAtNotIn(vs ...time.Time) predicate.Wx {
  115. return predicate.Wx(sql.FieldNotIn(FieldCreatedAt, vs...))
  116. }
  117. // CreatedAtGT applies the GT predicate on the "created_at" field.
  118. func CreatedAtGT(v time.Time) predicate.Wx {
  119. return predicate.Wx(sql.FieldGT(FieldCreatedAt, v))
  120. }
  121. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  122. func CreatedAtGTE(v time.Time) predicate.Wx {
  123. return predicate.Wx(sql.FieldGTE(FieldCreatedAt, v))
  124. }
  125. // CreatedAtLT applies the LT predicate on the "created_at" field.
  126. func CreatedAtLT(v time.Time) predicate.Wx {
  127. return predicate.Wx(sql.FieldLT(FieldCreatedAt, v))
  128. }
  129. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  130. func CreatedAtLTE(v time.Time) predicate.Wx {
  131. return predicate.Wx(sql.FieldLTE(FieldCreatedAt, v))
  132. }
  133. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  134. func UpdatedAtEQ(v time.Time) predicate.Wx {
  135. return predicate.Wx(sql.FieldEQ(FieldUpdatedAt, v))
  136. }
  137. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  138. func UpdatedAtNEQ(v time.Time) predicate.Wx {
  139. return predicate.Wx(sql.FieldNEQ(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  142. func UpdatedAtIn(vs ...time.Time) predicate.Wx {
  143. return predicate.Wx(sql.FieldIn(FieldUpdatedAt, vs...))
  144. }
  145. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  146. func UpdatedAtNotIn(vs ...time.Time) predicate.Wx {
  147. return predicate.Wx(sql.FieldNotIn(FieldUpdatedAt, vs...))
  148. }
  149. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  150. func UpdatedAtGT(v time.Time) predicate.Wx {
  151. return predicate.Wx(sql.FieldGT(FieldUpdatedAt, v))
  152. }
  153. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  154. func UpdatedAtGTE(v time.Time) predicate.Wx {
  155. return predicate.Wx(sql.FieldGTE(FieldUpdatedAt, v))
  156. }
  157. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  158. func UpdatedAtLT(v time.Time) predicate.Wx {
  159. return predicate.Wx(sql.FieldLT(FieldUpdatedAt, v))
  160. }
  161. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  162. func UpdatedAtLTE(v time.Time) predicate.Wx {
  163. return predicate.Wx(sql.FieldLTE(FieldUpdatedAt, v))
  164. }
  165. // StatusEQ applies the EQ predicate on the "status" field.
  166. func StatusEQ(v uint8) predicate.Wx {
  167. return predicate.Wx(sql.FieldEQ(FieldStatus, v))
  168. }
  169. // StatusNEQ applies the NEQ predicate on the "status" field.
  170. func StatusNEQ(v uint8) predicate.Wx {
  171. return predicate.Wx(sql.FieldNEQ(FieldStatus, v))
  172. }
  173. // StatusIn applies the In predicate on the "status" field.
  174. func StatusIn(vs ...uint8) predicate.Wx {
  175. return predicate.Wx(sql.FieldIn(FieldStatus, vs...))
  176. }
  177. // StatusNotIn applies the NotIn predicate on the "status" field.
  178. func StatusNotIn(vs ...uint8) predicate.Wx {
  179. return predicate.Wx(sql.FieldNotIn(FieldStatus, vs...))
  180. }
  181. // StatusGT applies the GT predicate on the "status" field.
  182. func StatusGT(v uint8) predicate.Wx {
  183. return predicate.Wx(sql.FieldGT(FieldStatus, v))
  184. }
  185. // StatusGTE applies the GTE predicate on the "status" field.
  186. func StatusGTE(v uint8) predicate.Wx {
  187. return predicate.Wx(sql.FieldGTE(FieldStatus, v))
  188. }
  189. // StatusLT applies the LT predicate on the "status" field.
  190. func StatusLT(v uint8) predicate.Wx {
  191. return predicate.Wx(sql.FieldLT(FieldStatus, v))
  192. }
  193. // StatusLTE applies the LTE predicate on the "status" field.
  194. func StatusLTE(v uint8) predicate.Wx {
  195. return predicate.Wx(sql.FieldLTE(FieldStatus, v))
  196. }
  197. // StatusIsNil applies the IsNil predicate on the "status" field.
  198. func StatusIsNil() predicate.Wx {
  199. return predicate.Wx(sql.FieldIsNull(FieldStatus))
  200. }
  201. // StatusNotNil applies the NotNil predicate on the "status" field.
  202. func StatusNotNil() predicate.Wx {
  203. return predicate.Wx(sql.FieldNotNull(FieldStatus))
  204. }
  205. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  206. func DeletedAtEQ(v time.Time) predicate.Wx {
  207. return predicate.Wx(sql.FieldEQ(FieldDeletedAt, v))
  208. }
  209. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  210. func DeletedAtNEQ(v time.Time) predicate.Wx {
  211. return predicate.Wx(sql.FieldNEQ(FieldDeletedAt, v))
  212. }
  213. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  214. func DeletedAtIn(vs ...time.Time) predicate.Wx {
  215. return predicate.Wx(sql.FieldIn(FieldDeletedAt, vs...))
  216. }
  217. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  218. func DeletedAtNotIn(vs ...time.Time) predicate.Wx {
  219. return predicate.Wx(sql.FieldNotIn(FieldDeletedAt, vs...))
  220. }
  221. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  222. func DeletedAtGT(v time.Time) predicate.Wx {
  223. return predicate.Wx(sql.FieldGT(FieldDeletedAt, v))
  224. }
  225. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  226. func DeletedAtGTE(v time.Time) predicate.Wx {
  227. return predicate.Wx(sql.FieldGTE(FieldDeletedAt, v))
  228. }
  229. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  230. func DeletedAtLT(v time.Time) predicate.Wx {
  231. return predicate.Wx(sql.FieldLT(FieldDeletedAt, v))
  232. }
  233. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  234. func DeletedAtLTE(v time.Time) predicate.Wx {
  235. return predicate.Wx(sql.FieldLTE(FieldDeletedAt, v))
  236. }
  237. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  238. func DeletedAtIsNil() predicate.Wx {
  239. return predicate.Wx(sql.FieldIsNull(FieldDeletedAt))
  240. }
  241. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  242. func DeletedAtNotNil() predicate.Wx {
  243. return predicate.Wx(sql.FieldNotNull(FieldDeletedAt))
  244. }
  245. // ServerIDEQ applies the EQ predicate on the "server_id" field.
  246. func ServerIDEQ(v uint64) predicate.Wx {
  247. return predicate.Wx(sql.FieldEQ(FieldServerID, v))
  248. }
  249. // ServerIDNEQ applies the NEQ predicate on the "server_id" field.
  250. func ServerIDNEQ(v uint64) predicate.Wx {
  251. return predicate.Wx(sql.FieldNEQ(FieldServerID, v))
  252. }
  253. // ServerIDIn applies the In predicate on the "server_id" field.
  254. func ServerIDIn(vs ...uint64) predicate.Wx {
  255. return predicate.Wx(sql.FieldIn(FieldServerID, vs...))
  256. }
  257. // ServerIDNotIn applies the NotIn predicate on the "server_id" field.
  258. func ServerIDNotIn(vs ...uint64) predicate.Wx {
  259. return predicate.Wx(sql.FieldNotIn(FieldServerID, vs...))
  260. }
  261. // ServerIDIsNil applies the IsNil predicate on the "server_id" field.
  262. func ServerIDIsNil() predicate.Wx {
  263. return predicate.Wx(sql.FieldIsNull(FieldServerID))
  264. }
  265. // ServerIDNotNil applies the NotNil predicate on the "server_id" field.
  266. func ServerIDNotNil() predicate.Wx {
  267. return predicate.Wx(sql.FieldNotNull(FieldServerID))
  268. }
  269. // PortEQ applies the EQ predicate on the "port" field.
  270. func PortEQ(v string) predicate.Wx {
  271. return predicate.Wx(sql.FieldEQ(FieldPort, v))
  272. }
  273. // PortNEQ applies the NEQ predicate on the "port" field.
  274. func PortNEQ(v string) predicate.Wx {
  275. return predicate.Wx(sql.FieldNEQ(FieldPort, v))
  276. }
  277. // PortIn applies the In predicate on the "port" field.
  278. func PortIn(vs ...string) predicate.Wx {
  279. return predicate.Wx(sql.FieldIn(FieldPort, vs...))
  280. }
  281. // PortNotIn applies the NotIn predicate on the "port" field.
  282. func PortNotIn(vs ...string) predicate.Wx {
  283. return predicate.Wx(sql.FieldNotIn(FieldPort, vs...))
  284. }
  285. // PortGT applies the GT predicate on the "port" field.
  286. func PortGT(v string) predicate.Wx {
  287. return predicate.Wx(sql.FieldGT(FieldPort, v))
  288. }
  289. // PortGTE applies the GTE predicate on the "port" field.
  290. func PortGTE(v string) predicate.Wx {
  291. return predicate.Wx(sql.FieldGTE(FieldPort, v))
  292. }
  293. // PortLT applies the LT predicate on the "port" field.
  294. func PortLT(v string) predicate.Wx {
  295. return predicate.Wx(sql.FieldLT(FieldPort, v))
  296. }
  297. // PortLTE applies the LTE predicate on the "port" field.
  298. func PortLTE(v string) predicate.Wx {
  299. return predicate.Wx(sql.FieldLTE(FieldPort, v))
  300. }
  301. // PortContains applies the Contains predicate on the "port" field.
  302. func PortContains(v string) predicate.Wx {
  303. return predicate.Wx(sql.FieldContains(FieldPort, v))
  304. }
  305. // PortHasPrefix applies the HasPrefix predicate on the "port" field.
  306. func PortHasPrefix(v string) predicate.Wx {
  307. return predicate.Wx(sql.FieldHasPrefix(FieldPort, v))
  308. }
  309. // PortHasSuffix applies the HasSuffix predicate on the "port" field.
  310. func PortHasSuffix(v string) predicate.Wx {
  311. return predicate.Wx(sql.FieldHasSuffix(FieldPort, v))
  312. }
  313. // PortEqualFold applies the EqualFold predicate on the "port" field.
  314. func PortEqualFold(v string) predicate.Wx {
  315. return predicate.Wx(sql.FieldEqualFold(FieldPort, v))
  316. }
  317. // PortContainsFold applies the ContainsFold predicate on the "port" field.
  318. func PortContainsFold(v string) predicate.Wx {
  319. return predicate.Wx(sql.FieldContainsFold(FieldPort, v))
  320. }
  321. // ProcessIDEQ applies the EQ predicate on the "process_id" field.
  322. func ProcessIDEQ(v string) predicate.Wx {
  323. return predicate.Wx(sql.FieldEQ(FieldProcessID, v))
  324. }
  325. // ProcessIDNEQ applies the NEQ predicate on the "process_id" field.
  326. func ProcessIDNEQ(v string) predicate.Wx {
  327. return predicate.Wx(sql.FieldNEQ(FieldProcessID, v))
  328. }
  329. // ProcessIDIn applies the In predicate on the "process_id" field.
  330. func ProcessIDIn(vs ...string) predicate.Wx {
  331. return predicate.Wx(sql.FieldIn(FieldProcessID, vs...))
  332. }
  333. // ProcessIDNotIn applies the NotIn predicate on the "process_id" field.
  334. func ProcessIDNotIn(vs ...string) predicate.Wx {
  335. return predicate.Wx(sql.FieldNotIn(FieldProcessID, vs...))
  336. }
  337. // ProcessIDGT applies the GT predicate on the "process_id" field.
  338. func ProcessIDGT(v string) predicate.Wx {
  339. return predicate.Wx(sql.FieldGT(FieldProcessID, v))
  340. }
  341. // ProcessIDGTE applies the GTE predicate on the "process_id" field.
  342. func ProcessIDGTE(v string) predicate.Wx {
  343. return predicate.Wx(sql.FieldGTE(FieldProcessID, v))
  344. }
  345. // ProcessIDLT applies the LT predicate on the "process_id" field.
  346. func ProcessIDLT(v string) predicate.Wx {
  347. return predicate.Wx(sql.FieldLT(FieldProcessID, v))
  348. }
  349. // ProcessIDLTE applies the LTE predicate on the "process_id" field.
  350. func ProcessIDLTE(v string) predicate.Wx {
  351. return predicate.Wx(sql.FieldLTE(FieldProcessID, v))
  352. }
  353. // ProcessIDContains applies the Contains predicate on the "process_id" field.
  354. func ProcessIDContains(v string) predicate.Wx {
  355. return predicate.Wx(sql.FieldContains(FieldProcessID, v))
  356. }
  357. // ProcessIDHasPrefix applies the HasPrefix predicate on the "process_id" field.
  358. func ProcessIDHasPrefix(v string) predicate.Wx {
  359. return predicate.Wx(sql.FieldHasPrefix(FieldProcessID, v))
  360. }
  361. // ProcessIDHasSuffix applies the HasSuffix predicate on the "process_id" field.
  362. func ProcessIDHasSuffix(v string) predicate.Wx {
  363. return predicate.Wx(sql.FieldHasSuffix(FieldProcessID, v))
  364. }
  365. // ProcessIDEqualFold applies the EqualFold predicate on the "process_id" field.
  366. func ProcessIDEqualFold(v string) predicate.Wx {
  367. return predicate.Wx(sql.FieldEqualFold(FieldProcessID, v))
  368. }
  369. // ProcessIDContainsFold applies the ContainsFold predicate on the "process_id" field.
  370. func ProcessIDContainsFold(v string) predicate.Wx {
  371. return predicate.Wx(sql.FieldContainsFold(FieldProcessID, v))
  372. }
  373. // CallbackEQ applies the EQ predicate on the "callback" field.
  374. func CallbackEQ(v string) predicate.Wx {
  375. return predicate.Wx(sql.FieldEQ(FieldCallback, v))
  376. }
  377. // CallbackNEQ applies the NEQ predicate on the "callback" field.
  378. func CallbackNEQ(v string) predicate.Wx {
  379. return predicate.Wx(sql.FieldNEQ(FieldCallback, v))
  380. }
  381. // CallbackIn applies the In predicate on the "callback" field.
  382. func CallbackIn(vs ...string) predicate.Wx {
  383. return predicate.Wx(sql.FieldIn(FieldCallback, vs...))
  384. }
  385. // CallbackNotIn applies the NotIn predicate on the "callback" field.
  386. func CallbackNotIn(vs ...string) predicate.Wx {
  387. return predicate.Wx(sql.FieldNotIn(FieldCallback, vs...))
  388. }
  389. // CallbackGT applies the GT predicate on the "callback" field.
  390. func CallbackGT(v string) predicate.Wx {
  391. return predicate.Wx(sql.FieldGT(FieldCallback, v))
  392. }
  393. // CallbackGTE applies the GTE predicate on the "callback" field.
  394. func CallbackGTE(v string) predicate.Wx {
  395. return predicate.Wx(sql.FieldGTE(FieldCallback, v))
  396. }
  397. // CallbackLT applies the LT predicate on the "callback" field.
  398. func CallbackLT(v string) predicate.Wx {
  399. return predicate.Wx(sql.FieldLT(FieldCallback, v))
  400. }
  401. // CallbackLTE applies the LTE predicate on the "callback" field.
  402. func CallbackLTE(v string) predicate.Wx {
  403. return predicate.Wx(sql.FieldLTE(FieldCallback, v))
  404. }
  405. // CallbackContains applies the Contains predicate on the "callback" field.
  406. func CallbackContains(v string) predicate.Wx {
  407. return predicate.Wx(sql.FieldContains(FieldCallback, v))
  408. }
  409. // CallbackHasPrefix applies the HasPrefix predicate on the "callback" field.
  410. func CallbackHasPrefix(v string) predicate.Wx {
  411. return predicate.Wx(sql.FieldHasPrefix(FieldCallback, v))
  412. }
  413. // CallbackHasSuffix applies the HasSuffix predicate on the "callback" field.
  414. func CallbackHasSuffix(v string) predicate.Wx {
  415. return predicate.Wx(sql.FieldHasSuffix(FieldCallback, v))
  416. }
  417. // CallbackEqualFold applies the EqualFold predicate on the "callback" field.
  418. func CallbackEqualFold(v string) predicate.Wx {
  419. return predicate.Wx(sql.FieldEqualFold(FieldCallback, v))
  420. }
  421. // CallbackContainsFold applies the ContainsFold predicate on the "callback" field.
  422. func CallbackContainsFold(v string) predicate.Wx {
  423. return predicate.Wx(sql.FieldContainsFold(FieldCallback, v))
  424. }
  425. // WxidEQ applies the EQ predicate on the "wxid" field.
  426. func WxidEQ(v string) predicate.Wx {
  427. return predicate.Wx(sql.FieldEQ(FieldWxid, v))
  428. }
  429. // WxidNEQ applies the NEQ predicate on the "wxid" field.
  430. func WxidNEQ(v string) predicate.Wx {
  431. return predicate.Wx(sql.FieldNEQ(FieldWxid, v))
  432. }
  433. // WxidIn applies the In predicate on the "wxid" field.
  434. func WxidIn(vs ...string) predicate.Wx {
  435. return predicate.Wx(sql.FieldIn(FieldWxid, vs...))
  436. }
  437. // WxidNotIn applies the NotIn predicate on the "wxid" field.
  438. func WxidNotIn(vs ...string) predicate.Wx {
  439. return predicate.Wx(sql.FieldNotIn(FieldWxid, vs...))
  440. }
  441. // WxidGT applies the GT predicate on the "wxid" field.
  442. func WxidGT(v string) predicate.Wx {
  443. return predicate.Wx(sql.FieldGT(FieldWxid, v))
  444. }
  445. // WxidGTE applies the GTE predicate on the "wxid" field.
  446. func WxidGTE(v string) predicate.Wx {
  447. return predicate.Wx(sql.FieldGTE(FieldWxid, v))
  448. }
  449. // WxidLT applies the LT predicate on the "wxid" field.
  450. func WxidLT(v string) predicate.Wx {
  451. return predicate.Wx(sql.FieldLT(FieldWxid, v))
  452. }
  453. // WxidLTE applies the LTE predicate on the "wxid" field.
  454. func WxidLTE(v string) predicate.Wx {
  455. return predicate.Wx(sql.FieldLTE(FieldWxid, v))
  456. }
  457. // WxidContains applies the Contains predicate on the "wxid" field.
  458. func WxidContains(v string) predicate.Wx {
  459. return predicate.Wx(sql.FieldContains(FieldWxid, v))
  460. }
  461. // WxidHasPrefix applies the HasPrefix predicate on the "wxid" field.
  462. func WxidHasPrefix(v string) predicate.Wx {
  463. return predicate.Wx(sql.FieldHasPrefix(FieldWxid, v))
  464. }
  465. // WxidHasSuffix applies the HasSuffix predicate on the "wxid" field.
  466. func WxidHasSuffix(v string) predicate.Wx {
  467. return predicate.Wx(sql.FieldHasSuffix(FieldWxid, v))
  468. }
  469. // WxidEqualFold applies the EqualFold predicate on the "wxid" field.
  470. func WxidEqualFold(v string) predicate.Wx {
  471. return predicate.Wx(sql.FieldEqualFold(FieldWxid, v))
  472. }
  473. // WxidContainsFold applies the ContainsFold predicate on the "wxid" field.
  474. func WxidContainsFold(v string) predicate.Wx {
  475. return predicate.Wx(sql.FieldContainsFold(FieldWxid, v))
  476. }
  477. // AccountEQ applies the EQ predicate on the "account" field.
  478. func AccountEQ(v string) predicate.Wx {
  479. return predicate.Wx(sql.FieldEQ(FieldAccount, v))
  480. }
  481. // AccountNEQ applies the NEQ predicate on the "account" field.
  482. func AccountNEQ(v string) predicate.Wx {
  483. return predicate.Wx(sql.FieldNEQ(FieldAccount, v))
  484. }
  485. // AccountIn applies the In predicate on the "account" field.
  486. func AccountIn(vs ...string) predicate.Wx {
  487. return predicate.Wx(sql.FieldIn(FieldAccount, vs...))
  488. }
  489. // AccountNotIn applies the NotIn predicate on the "account" field.
  490. func AccountNotIn(vs ...string) predicate.Wx {
  491. return predicate.Wx(sql.FieldNotIn(FieldAccount, vs...))
  492. }
  493. // AccountGT applies the GT predicate on the "account" field.
  494. func AccountGT(v string) predicate.Wx {
  495. return predicate.Wx(sql.FieldGT(FieldAccount, v))
  496. }
  497. // AccountGTE applies the GTE predicate on the "account" field.
  498. func AccountGTE(v string) predicate.Wx {
  499. return predicate.Wx(sql.FieldGTE(FieldAccount, v))
  500. }
  501. // AccountLT applies the LT predicate on the "account" field.
  502. func AccountLT(v string) predicate.Wx {
  503. return predicate.Wx(sql.FieldLT(FieldAccount, v))
  504. }
  505. // AccountLTE applies the LTE predicate on the "account" field.
  506. func AccountLTE(v string) predicate.Wx {
  507. return predicate.Wx(sql.FieldLTE(FieldAccount, v))
  508. }
  509. // AccountContains applies the Contains predicate on the "account" field.
  510. func AccountContains(v string) predicate.Wx {
  511. return predicate.Wx(sql.FieldContains(FieldAccount, v))
  512. }
  513. // AccountHasPrefix applies the HasPrefix predicate on the "account" field.
  514. func AccountHasPrefix(v string) predicate.Wx {
  515. return predicate.Wx(sql.FieldHasPrefix(FieldAccount, v))
  516. }
  517. // AccountHasSuffix applies the HasSuffix predicate on the "account" field.
  518. func AccountHasSuffix(v string) predicate.Wx {
  519. return predicate.Wx(sql.FieldHasSuffix(FieldAccount, v))
  520. }
  521. // AccountEqualFold applies the EqualFold predicate on the "account" field.
  522. func AccountEqualFold(v string) predicate.Wx {
  523. return predicate.Wx(sql.FieldEqualFold(FieldAccount, v))
  524. }
  525. // AccountContainsFold applies the ContainsFold predicate on the "account" field.
  526. func AccountContainsFold(v string) predicate.Wx {
  527. return predicate.Wx(sql.FieldContainsFold(FieldAccount, v))
  528. }
  529. // NicknameEQ applies the EQ predicate on the "nickname" field.
  530. func NicknameEQ(v string) predicate.Wx {
  531. return predicate.Wx(sql.FieldEQ(FieldNickname, v))
  532. }
  533. // NicknameNEQ applies the NEQ predicate on the "nickname" field.
  534. func NicknameNEQ(v string) predicate.Wx {
  535. return predicate.Wx(sql.FieldNEQ(FieldNickname, v))
  536. }
  537. // NicknameIn applies the In predicate on the "nickname" field.
  538. func NicknameIn(vs ...string) predicate.Wx {
  539. return predicate.Wx(sql.FieldIn(FieldNickname, vs...))
  540. }
  541. // NicknameNotIn applies the NotIn predicate on the "nickname" field.
  542. func NicknameNotIn(vs ...string) predicate.Wx {
  543. return predicate.Wx(sql.FieldNotIn(FieldNickname, vs...))
  544. }
  545. // NicknameGT applies the GT predicate on the "nickname" field.
  546. func NicknameGT(v string) predicate.Wx {
  547. return predicate.Wx(sql.FieldGT(FieldNickname, v))
  548. }
  549. // NicknameGTE applies the GTE predicate on the "nickname" field.
  550. func NicknameGTE(v string) predicate.Wx {
  551. return predicate.Wx(sql.FieldGTE(FieldNickname, v))
  552. }
  553. // NicknameLT applies the LT predicate on the "nickname" field.
  554. func NicknameLT(v string) predicate.Wx {
  555. return predicate.Wx(sql.FieldLT(FieldNickname, v))
  556. }
  557. // NicknameLTE applies the LTE predicate on the "nickname" field.
  558. func NicknameLTE(v string) predicate.Wx {
  559. return predicate.Wx(sql.FieldLTE(FieldNickname, v))
  560. }
  561. // NicknameContains applies the Contains predicate on the "nickname" field.
  562. func NicknameContains(v string) predicate.Wx {
  563. return predicate.Wx(sql.FieldContains(FieldNickname, v))
  564. }
  565. // NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
  566. func NicknameHasPrefix(v string) predicate.Wx {
  567. return predicate.Wx(sql.FieldHasPrefix(FieldNickname, v))
  568. }
  569. // NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
  570. func NicknameHasSuffix(v string) predicate.Wx {
  571. return predicate.Wx(sql.FieldHasSuffix(FieldNickname, v))
  572. }
  573. // NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
  574. func NicknameEqualFold(v string) predicate.Wx {
  575. return predicate.Wx(sql.FieldEqualFold(FieldNickname, v))
  576. }
  577. // NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
  578. func NicknameContainsFold(v string) predicate.Wx {
  579. return predicate.Wx(sql.FieldContainsFold(FieldNickname, v))
  580. }
  581. // TelEQ applies the EQ predicate on the "tel" field.
  582. func TelEQ(v string) predicate.Wx {
  583. return predicate.Wx(sql.FieldEQ(FieldTel, v))
  584. }
  585. // TelNEQ applies the NEQ predicate on the "tel" field.
  586. func TelNEQ(v string) predicate.Wx {
  587. return predicate.Wx(sql.FieldNEQ(FieldTel, v))
  588. }
  589. // TelIn applies the In predicate on the "tel" field.
  590. func TelIn(vs ...string) predicate.Wx {
  591. return predicate.Wx(sql.FieldIn(FieldTel, vs...))
  592. }
  593. // TelNotIn applies the NotIn predicate on the "tel" field.
  594. func TelNotIn(vs ...string) predicate.Wx {
  595. return predicate.Wx(sql.FieldNotIn(FieldTel, vs...))
  596. }
  597. // TelGT applies the GT predicate on the "tel" field.
  598. func TelGT(v string) predicate.Wx {
  599. return predicate.Wx(sql.FieldGT(FieldTel, v))
  600. }
  601. // TelGTE applies the GTE predicate on the "tel" field.
  602. func TelGTE(v string) predicate.Wx {
  603. return predicate.Wx(sql.FieldGTE(FieldTel, v))
  604. }
  605. // TelLT applies the LT predicate on the "tel" field.
  606. func TelLT(v string) predicate.Wx {
  607. return predicate.Wx(sql.FieldLT(FieldTel, v))
  608. }
  609. // TelLTE applies the LTE predicate on the "tel" field.
  610. func TelLTE(v string) predicate.Wx {
  611. return predicate.Wx(sql.FieldLTE(FieldTel, v))
  612. }
  613. // TelContains applies the Contains predicate on the "tel" field.
  614. func TelContains(v string) predicate.Wx {
  615. return predicate.Wx(sql.FieldContains(FieldTel, v))
  616. }
  617. // TelHasPrefix applies the HasPrefix predicate on the "tel" field.
  618. func TelHasPrefix(v string) predicate.Wx {
  619. return predicate.Wx(sql.FieldHasPrefix(FieldTel, v))
  620. }
  621. // TelHasSuffix applies the HasSuffix predicate on the "tel" field.
  622. func TelHasSuffix(v string) predicate.Wx {
  623. return predicate.Wx(sql.FieldHasSuffix(FieldTel, v))
  624. }
  625. // TelEqualFold applies the EqualFold predicate on the "tel" field.
  626. func TelEqualFold(v string) predicate.Wx {
  627. return predicate.Wx(sql.FieldEqualFold(FieldTel, v))
  628. }
  629. // TelContainsFold applies the ContainsFold predicate on the "tel" field.
  630. func TelContainsFold(v string) predicate.Wx {
  631. return predicate.Wx(sql.FieldContainsFold(FieldTel, v))
  632. }
  633. // HeadBigEQ applies the EQ predicate on the "head_big" field.
  634. func HeadBigEQ(v string) predicate.Wx {
  635. return predicate.Wx(sql.FieldEQ(FieldHeadBig, v))
  636. }
  637. // HeadBigNEQ applies the NEQ predicate on the "head_big" field.
  638. func HeadBigNEQ(v string) predicate.Wx {
  639. return predicate.Wx(sql.FieldNEQ(FieldHeadBig, v))
  640. }
  641. // HeadBigIn applies the In predicate on the "head_big" field.
  642. func HeadBigIn(vs ...string) predicate.Wx {
  643. return predicate.Wx(sql.FieldIn(FieldHeadBig, vs...))
  644. }
  645. // HeadBigNotIn applies the NotIn predicate on the "head_big" field.
  646. func HeadBigNotIn(vs ...string) predicate.Wx {
  647. return predicate.Wx(sql.FieldNotIn(FieldHeadBig, vs...))
  648. }
  649. // HeadBigGT applies the GT predicate on the "head_big" field.
  650. func HeadBigGT(v string) predicate.Wx {
  651. return predicate.Wx(sql.FieldGT(FieldHeadBig, v))
  652. }
  653. // HeadBigGTE applies the GTE predicate on the "head_big" field.
  654. func HeadBigGTE(v string) predicate.Wx {
  655. return predicate.Wx(sql.FieldGTE(FieldHeadBig, v))
  656. }
  657. // HeadBigLT applies the LT predicate on the "head_big" field.
  658. func HeadBigLT(v string) predicate.Wx {
  659. return predicate.Wx(sql.FieldLT(FieldHeadBig, v))
  660. }
  661. // HeadBigLTE applies the LTE predicate on the "head_big" field.
  662. func HeadBigLTE(v string) predicate.Wx {
  663. return predicate.Wx(sql.FieldLTE(FieldHeadBig, v))
  664. }
  665. // HeadBigContains applies the Contains predicate on the "head_big" field.
  666. func HeadBigContains(v string) predicate.Wx {
  667. return predicate.Wx(sql.FieldContains(FieldHeadBig, v))
  668. }
  669. // HeadBigHasPrefix applies the HasPrefix predicate on the "head_big" field.
  670. func HeadBigHasPrefix(v string) predicate.Wx {
  671. return predicate.Wx(sql.FieldHasPrefix(FieldHeadBig, v))
  672. }
  673. // HeadBigHasSuffix applies the HasSuffix predicate on the "head_big" field.
  674. func HeadBigHasSuffix(v string) predicate.Wx {
  675. return predicate.Wx(sql.FieldHasSuffix(FieldHeadBig, v))
  676. }
  677. // HeadBigEqualFold applies the EqualFold predicate on the "head_big" field.
  678. func HeadBigEqualFold(v string) predicate.Wx {
  679. return predicate.Wx(sql.FieldEqualFold(FieldHeadBig, v))
  680. }
  681. // HeadBigContainsFold applies the ContainsFold predicate on the "head_big" field.
  682. func HeadBigContainsFold(v string) predicate.Wx {
  683. return predicate.Wx(sql.FieldContainsFold(FieldHeadBig, v))
  684. }
  685. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  686. func OrganizationIDEQ(v uint64) predicate.Wx {
  687. return predicate.Wx(sql.FieldEQ(FieldOrganizationID, v))
  688. }
  689. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  690. func OrganizationIDNEQ(v uint64) predicate.Wx {
  691. return predicate.Wx(sql.FieldNEQ(FieldOrganizationID, v))
  692. }
  693. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  694. func OrganizationIDIn(vs ...uint64) predicate.Wx {
  695. return predicate.Wx(sql.FieldIn(FieldOrganizationID, vs...))
  696. }
  697. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  698. func OrganizationIDNotIn(vs ...uint64) predicate.Wx {
  699. return predicate.Wx(sql.FieldNotIn(FieldOrganizationID, vs...))
  700. }
  701. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  702. func OrganizationIDGT(v uint64) predicate.Wx {
  703. return predicate.Wx(sql.FieldGT(FieldOrganizationID, v))
  704. }
  705. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  706. func OrganizationIDGTE(v uint64) predicate.Wx {
  707. return predicate.Wx(sql.FieldGTE(FieldOrganizationID, v))
  708. }
  709. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  710. func OrganizationIDLT(v uint64) predicate.Wx {
  711. return predicate.Wx(sql.FieldLT(FieldOrganizationID, v))
  712. }
  713. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  714. func OrganizationIDLTE(v uint64) predicate.Wx {
  715. return predicate.Wx(sql.FieldLTE(FieldOrganizationID, v))
  716. }
  717. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  718. func OrganizationIDIsNil() predicate.Wx {
  719. return predicate.Wx(sql.FieldIsNull(FieldOrganizationID))
  720. }
  721. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  722. func OrganizationIDNotNil() predicate.Wx {
  723. return predicate.Wx(sql.FieldNotNull(FieldOrganizationID))
  724. }
  725. // HasServer applies the HasEdge predicate on the "server" edge.
  726. func HasServer() predicate.Wx {
  727. return predicate.Wx(func(s *sql.Selector) {
  728. step := sqlgraph.NewStep(
  729. sqlgraph.From(Table, FieldID),
  730. sqlgraph.Edge(sqlgraph.M2O, true, ServerTable, ServerColumn),
  731. )
  732. sqlgraph.HasNeighbors(s, step)
  733. })
  734. }
  735. // HasServerWith applies the HasEdge predicate on the "server" edge with a given conditions (other predicates).
  736. func HasServerWith(preds ...predicate.Server) predicate.Wx {
  737. return predicate.Wx(func(s *sql.Selector) {
  738. step := newServerStep()
  739. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  740. for _, p := range preds {
  741. p(s)
  742. }
  743. })
  744. })
  745. }
  746. // And groups predicates with the AND operator between them.
  747. func And(predicates ...predicate.Wx) predicate.Wx {
  748. return predicate.Wx(sql.AndPredicates(predicates...))
  749. }
  750. // Or groups predicates with the OR operator between them.
  751. func Or(predicates ...predicate.Wx) predicate.Wx {
  752. return predicate.Wx(sql.OrPredicates(predicates...))
  753. }
  754. // Not applies the not operator on the given predicate.
  755. func Not(p predicate.Wx) predicate.Wx {
  756. return predicate.Wx(sql.NotPredicates(p))
  757. }