where.go 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240
  1. // Code generated by ent, DO NOT EDIT.
  2. package contact
  3. import (
  4. "time"
  5. "wechat-api/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id uint64) predicate.Contact {
  10. return predicate.Contact(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.Contact {
  14. return predicate.Contact(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.Contact {
  18. return predicate.Contact(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.Contact {
  22. return predicate.Contact(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.Contact {
  26. return predicate.Contact(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.Contact {
  30. return predicate.Contact(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.Contact {
  34. return predicate.Contact(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.Contact {
  38. return predicate.Contact(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.Contact {
  42. return predicate.Contact(sql.FieldLTE(FieldID, id))
  43. }
  44. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  45. func CreatedAt(v time.Time) predicate.Contact {
  46. return predicate.Contact(sql.FieldEQ(FieldCreatedAt, v))
  47. }
  48. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  49. func UpdatedAt(v time.Time) predicate.Contact {
  50. return predicate.Contact(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  53. func Status(v uint8) predicate.Contact {
  54. return predicate.Contact(sql.FieldEQ(FieldStatus, v))
  55. }
  56. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  57. func DeletedAt(v time.Time) predicate.Contact {
  58. return predicate.Contact(sql.FieldEQ(FieldDeletedAt, v))
  59. }
  60. // WxWxid applies equality check predicate on the "wx_wxid" field. It's identical to WxWxidEQ.
  61. func WxWxid(v string) predicate.Contact {
  62. return predicate.Contact(sql.FieldEQ(FieldWxWxid, v))
  63. }
  64. // Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
  65. func Type(v int) predicate.Contact {
  66. return predicate.Contact(sql.FieldEQ(FieldType, v))
  67. }
  68. // Wxid applies equality check predicate on the "wxid" field. It's identical to WxidEQ.
  69. func Wxid(v string) predicate.Contact {
  70. return predicate.Contact(sql.FieldEQ(FieldWxid, v))
  71. }
  72. // Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
  73. func Account(v string) predicate.Contact {
  74. return predicate.Contact(sql.FieldEQ(FieldAccount, v))
  75. }
  76. // Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
  77. func Nickname(v string) predicate.Contact {
  78. return predicate.Contact(sql.FieldEQ(FieldNickname, v))
  79. }
  80. // Markname applies equality check predicate on the "markname" field. It's identical to MarknameEQ.
  81. func Markname(v string) predicate.Contact {
  82. return predicate.Contact(sql.FieldEQ(FieldMarkname, v))
  83. }
  84. // Headimg applies equality check predicate on the "headimg" field. It's identical to HeadimgEQ.
  85. func Headimg(v string) predicate.Contact {
  86. return predicate.Contact(sql.FieldEQ(FieldHeadimg, v))
  87. }
  88. // Sex applies equality check predicate on the "sex" field. It's identical to SexEQ.
  89. func Sex(v int) predicate.Contact {
  90. return predicate.Contact(sql.FieldEQ(FieldSex, v))
  91. }
  92. // Starrole applies equality check predicate on the "starrole" field. It's identical to StarroleEQ.
  93. func Starrole(v string) predicate.Contact {
  94. return predicate.Contact(sql.FieldEQ(FieldStarrole, v))
  95. }
  96. // Dontseeit applies equality check predicate on the "dontseeit" field. It's identical to DontseeitEQ.
  97. func Dontseeit(v int) predicate.Contact {
  98. return predicate.Contact(sql.FieldEQ(FieldDontseeit, v))
  99. }
  100. // Dontseeme applies equality check predicate on the "dontseeme" field. It's identical to DontseemeEQ.
  101. func Dontseeme(v int) predicate.Contact {
  102. return predicate.Contact(sql.FieldEQ(FieldDontseeme, v))
  103. }
  104. // Lag applies equality check predicate on the "lag" field. It's identical to LagEQ.
  105. func Lag(v string) predicate.Contact {
  106. return predicate.Contact(sql.FieldEQ(FieldLag, v))
  107. }
  108. // Gid applies equality check predicate on the "gid" field. It's identical to GidEQ.
  109. func Gid(v string) predicate.Contact {
  110. return predicate.Contact(sql.FieldEQ(FieldGid, v))
  111. }
  112. // Gname applies equality check predicate on the "gname" field. It's identical to GnameEQ.
  113. func Gname(v string) predicate.Contact {
  114. return predicate.Contact(sql.FieldEQ(FieldGname, v))
  115. }
  116. // V3 applies equality check predicate on the "v3" field. It's identical to V3EQ.
  117. func V3(v string) predicate.Contact {
  118. return predicate.Contact(sql.FieldEQ(FieldV3, v))
  119. }
  120. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  121. func CreatedAtEQ(v time.Time) predicate.Contact {
  122. return predicate.Contact(sql.FieldEQ(FieldCreatedAt, v))
  123. }
  124. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  125. func CreatedAtNEQ(v time.Time) predicate.Contact {
  126. return predicate.Contact(sql.FieldNEQ(FieldCreatedAt, v))
  127. }
  128. // CreatedAtIn applies the In predicate on the "created_at" field.
  129. func CreatedAtIn(vs ...time.Time) predicate.Contact {
  130. return predicate.Contact(sql.FieldIn(FieldCreatedAt, vs...))
  131. }
  132. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  133. func CreatedAtNotIn(vs ...time.Time) predicate.Contact {
  134. return predicate.Contact(sql.FieldNotIn(FieldCreatedAt, vs...))
  135. }
  136. // CreatedAtGT applies the GT predicate on the "created_at" field.
  137. func CreatedAtGT(v time.Time) predicate.Contact {
  138. return predicate.Contact(sql.FieldGT(FieldCreatedAt, v))
  139. }
  140. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  141. func CreatedAtGTE(v time.Time) predicate.Contact {
  142. return predicate.Contact(sql.FieldGTE(FieldCreatedAt, v))
  143. }
  144. // CreatedAtLT applies the LT predicate on the "created_at" field.
  145. func CreatedAtLT(v time.Time) predicate.Contact {
  146. return predicate.Contact(sql.FieldLT(FieldCreatedAt, v))
  147. }
  148. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  149. func CreatedAtLTE(v time.Time) predicate.Contact {
  150. return predicate.Contact(sql.FieldLTE(FieldCreatedAt, v))
  151. }
  152. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  153. func UpdatedAtEQ(v time.Time) predicate.Contact {
  154. return predicate.Contact(sql.FieldEQ(FieldUpdatedAt, v))
  155. }
  156. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  157. func UpdatedAtNEQ(v time.Time) predicate.Contact {
  158. return predicate.Contact(sql.FieldNEQ(FieldUpdatedAt, v))
  159. }
  160. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  161. func UpdatedAtIn(vs ...time.Time) predicate.Contact {
  162. return predicate.Contact(sql.FieldIn(FieldUpdatedAt, vs...))
  163. }
  164. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  165. func UpdatedAtNotIn(vs ...time.Time) predicate.Contact {
  166. return predicate.Contact(sql.FieldNotIn(FieldUpdatedAt, vs...))
  167. }
  168. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  169. func UpdatedAtGT(v time.Time) predicate.Contact {
  170. return predicate.Contact(sql.FieldGT(FieldUpdatedAt, v))
  171. }
  172. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  173. func UpdatedAtGTE(v time.Time) predicate.Contact {
  174. return predicate.Contact(sql.FieldGTE(FieldUpdatedAt, v))
  175. }
  176. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  177. func UpdatedAtLT(v time.Time) predicate.Contact {
  178. return predicate.Contact(sql.FieldLT(FieldUpdatedAt, v))
  179. }
  180. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  181. func UpdatedAtLTE(v time.Time) predicate.Contact {
  182. return predicate.Contact(sql.FieldLTE(FieldUpdatedAt, v))
  183. }
  184. // StatusEQ applies the EQ predicate on the "status" field.
  185. func StatusEQ(v uint8) predicate.Contact {
  186. return predicate.Contact(sql.FieldEQ(FieldStatus, v))
  187. }
  188. // StatusNEQ applies the NEQ predicate on the "status" field.
  189. func StatusNEQ(v uint8) predicate.Contact {
  190. return predicate.Contact(sql.FieldNEQ(FieldStatus, v))
  191. }
  192. // StatusIn applies the In predicate on the "status" field.
  193. func StatusIn(vs ...uint8) predicate.Contact {
  194. return predicate.Contact(sql.FieldIn(FieldStatus, vs...))
  195. }
  196. // StatusNotIn applies the NotIn predicate on the "status" field.
  197. func StatusNotIn(vs ...uint8) predicate.Contact {
  198. return predicate.Contact(sql.FieldNotIn(FieldStatus, vs...))
  199. }
  200. // StatusGT applies the GT predicate on the "status" field.
  201. func StatusGT(v uint8) predicate.Contact {
  202. return predicate.Contact(sql.FieldGT(FieldStatus, v))
  203. }
  204. // StatusGTE applies the GTE predicate on the "status" field.
  205. func StatusGTE(v uint8) predicate.Contact {
  206. return predicate.Contact(sql.FieldGTE(FieldStatus, v))
  207. }
  208. // StatusLT applies the LT predicate on the "status" field.
  209. func StatusLT(v uint8) predicate.Contact {
  210. return predicate.Contact(sql.FieldLT(FieldStatus, v))
  211. }
  212. // StatusLTE applies the LTE predicate on the "status" field.
  213. func StatusLTE(v uint8) predicate.Contact {
  214. return predicate.Contact(sql.FieldLTE(FieldStatus, v))
  215. }
  216. // StatusIsNil applies the IsNil predicate on the "status" field.
  217. func StatusIsNil() predicate.Contact {
  218. return predicate.Contact(sql.FieldIsNull(FieldStatus))
  219. }
  220. // StatusNotNil applies the NotNil predicate on the "status" field.
  221. func StatusNotNil() predicate.Contact {
  222. return predicate.Contact(sql.FieldNotNull(FieldStatus))
  223. }
  224. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  225. func DeletedAtEQ(v time.Time) predicate.Contact {
  226. return predicate.Contact(sql.FieldEQ(FieldDeletedAt, v))
  227. }
  228. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  229. func DeletedAtNEQ(v time.Time) predicate.Contact {
  230. return predicate.Contact(sql.FieldNEQ(FieldDeletedAt, v))
  231. }
  232. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  233. func DeletedAtIn(vs ...time.Time) predicate.Contact {
  234. return predicate.Contact(sql.FieldIn(FieldDeletedAt, vs...))
  235. }
  236. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  237. func DeletedAtNotIn(vs ...time.Time) predicate.Contact {
  238. return predicate.Contact(sql.FieldNotIn(FieldDeletedAt, vs...))
  239. }
  240. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  241. func DeletedAtGT(v time.Time) predicate.Contact {
  242. return predicate.Contact(sql.FieldGT(FieldDeletedAt, v))
  243. }
  244. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  245. func DeletedAtGTE(v time.Time) predicate.Contact {
  246. return predicate.Contact(sql.FieldGTE(FieldDeletedAt, v))
  247. }
  248. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  249. func DeletedAtLT(v time.Time) predicate.Contact {
  250. return predicate.Contact(sql.FieldLT(FieldDeletedAt, v))
  251. }
  252. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  253. func DeletedAtLTE(v time.Time) predicate.Contact {
  254. return predicate.Contact(sql.FieldLTE(FieldDeletedAt, v))
  255. }
  256. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  257. func DeletedAtIsNil() predicate.Contact {
  258. return predicate.Contact(sql.FieldIsNull(FieldDeletedAt))
  259. }
  260. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  261. func DeletedAtNotNil() predicate.Contact {
  262. return predicate.Contact(sql.FieldNotNull(FieldDeletedAt))
  263. }
  264. // WxWxidEQ applies the EQ predicate on the "wx_wxid" field.
  265. func WxWxidEQ(v string) predicate.Contact {
  266. return predicate.Contact(sql.FieldEQ(FieldWxWxid, v))
  267. }
  268. // WxWxidNEQ applies the NEQ predicate on the "wx_wxid" field.
  269. func WxWxidNEQ(v string) predicate.Contact {
  270. return predicate.Contact(sql.FieldNEQ(FieldWxWxid, v))
  271. }
  272. // WxWxidIn applies the In predicate on the "wx_wxid" field.
  273. func WxWxidIn(vs ...string) predicate.Contact {
  274. return predicate.Contact(sql.FieldIn(FieldWxWxid, vs...))
  275. }
  276. // WxWxidNotIn applies the NotIn predicate on the "wx_wxid" field.
  277. func WxWxidNotIn(vs ...string) predicate.Contact {
  278. return predicate.Contact(sql.FieldNotIn(FieldWxWxid, vs...))
  279. }
  280. // WxWxidGT applies the GT predicate on the "wx_wxid" field.
  281. func WxWxidGT(v string) predicate.Contact {
  282. return predicate.Contact(sql.FieldGT(FieldWxWxid, v))
  283. }
  284. // WxWxidGTE applies the GTE predicate on the "wx_wxid" field.
  285. func WxWxidGTE(v string) predicate.Contact {
  286. return predicate.Contact(sql.FieldGTE(FieldWxWxid, v))
  287. }
  288. // WxWxidLT applies the LT predicate on the "wx_wxid" field.
  289. func WxWxidLT(v string) predicate.Contact {
  290. return predicate.Contact(sql.FieldLT(FieldWxWxid, v))
  291. }
  292. // WxWxidLTE applies the LTE predicate on the "wx_wxid" field.
  293. func WxWxidLTE(v string) predicate.Contact {
  294. return predicate.Contact(sql.FieldLTE(FieldWxWxid, v))
  295. }
  296. // WxWxidContains applies the Contains predicate on the "wx_wxid" field.
  297. func WxWxidContains(v string) predicate.Contact {
  298. return predicate.Contact(sql.FieldContains(FieldWxWxid, v))
  299. }
  300. // WxWxidHasPrefix applies the HasPrefix predicate on the "wx_wxid" field.
  301. func WxWxidHasPrefix(v string) predicate.Contact {
  302. return predicate.Contact(sql.FieldHasPrefix(FieldWxWxid, v))
  303. }
  304. // WxWxidHasSuffix applies the HasSuffix predicate on the "wx_wxid" field.
  305. func WxWxidHasSuffix(v string) predicate.Contact {
  306. return predicate.Contact(sql.FieldHasSuffix(FieldWxWxid, v))
  307. }
  308. // WxWxidIsNil applies the IsNil predicate on the "wx_wxid" field.
  309. func WxWxidIsNil() predicate.Contact {
  310. return predicate.Contact(sql.FieldIsNull(FieldWxWxid))
  311. }
  312. // WxWxidNotNil applies the NotNil predicate on the "wx_wxid" field.
  313. func WxWxidNotNil() predicate.Contact {
  314. return predicate.Contact(sql.FieldNotNull(FieldWxWxid))
  315. }
  316. // WxWxidEqualFold applies the EqualFold predicate on the "wx_wxid" field.
  317. func WxWxidEqualFold(v string) predicate.Contact {
  318. return predicate.Contact(sql.FieldEqualFold(FieldWxWxid, v))
  319. }
  320. // WxWxidContainsFold applies the ContainsFold predicate on the "wx_wxid" field.
  321. func WxWxidContainsFold(v string) predicate.Contact {
  322. return predicate.Contact(sql.FieldContainsFold(FieldWxWxid, v))
  323. }
  324. // TypeEQ applies the EQ predicate on the "type" field.
  325. func TypeEQ(v int) predicate.Contact {
  326. return predicate.Contact(sql.FieldEQ(FieldType, v))
  327. }
  328. // TypeNEQ applies the NEQ predicate on the "type" field.
  329. func TypeNEQ(v int) predicate.Contact {
  330. return predicate.Contact(sql.FieldNEQ(FieldType, v))
  331. }
  332. // TypeIn applies the In predicate on the "type" field.
  333. func TypeIn(vs ...int) predicate.Contact {
  334. return predicate.Contact(sql.FieldIn(FieldType, vs...))
  335. }
  336. // TypeNotIn applies the NotIn predicate on the "type" field.
  337. func TypeNotIn(vs ...int) predicate.Contact {
  338. return predicate.Contact(sql.FieldNotIn(FieldType, vs...))
  339. }
  340. // TypeGT applies the GT predicate on the "type" field.
  341. func TypeGT(v int) predicate.Contact {
  342. return predicate.Contact(sql.FieldGT(FieldType, v))
  343. }
  344. // TypeGTE applies the GTE predicate on the "type" field.
  345. func TypeGTE(v int) predicate.Contact {
  346. return predicate.Contact(sql.FieldGTE(FieldType, v))
  347. }
  348. // TypeLT applies the LT predicate on the "type" field.
  349. func TypeLT(v int) predicate.Contact {
  350. return predicate.Contact(sql.FieldLT(FieldType, v))
  351. }
  352. // TypeLTE applies the LTE predicate on the "type" field.
  353. func TypeLTE(v int) predicate.Contact {
  354. return predicate.Contact(sql.FieldLTE(FieldType, v))
  355. }
  356. // TypeIsNil applies the IsNil predicate on the "type" field.
  357. func TypeIsNil() predicate.Contact {
  358. return predicate.Contact(sql.FieldIsNull(FieldType))
  359. }
  360. // TypeNotNil applies the NotNil predicate on the "type" field.
  361. func TypeNotNil() predicate.Contact {
  362. return predicate.Contact(sql.FieldNotNull(FieldType))
  363. }
  364. // WxidEQ applies the EQ predicate on the "wxid" field.
  365. func WxidEQ(v string) predicate.Contact {
  366. return predicate.Contact(sql.FieldEQ(FieldWxid, v))
  367. }
  368. // WxidNEQ applies the NEQ predicate on the "wxid" field.
  369. func WxidNEQ(v string) predicate.Contact {
  370. return predicate.Contact(sql.FieldNEQ(FieldWxid, v))
  371. }
  372. // WxidIn applies the In predicate on the "wxid" field.
  373. func WxidIn(vs ...string) predicate.Contact {
  374. return predicate.Contact(sql.FieldIn(FieldWxid, vs...))
  375. }
  376. // WxidNotIn applies the NotIn predicate on the "wxid" field.
  377. func WxidNotIn(vs ...string) predicate.Contact {
  378. return predicate.Contact(sql.FieldNotIn(FieldWxid, vs...))
  379. }
  380. // WxidGT applies the GT predicate on the "wxid" field.
  381. func WxidGT(v string) predicate.Contact {
  382. return predicate.Contact(sql.FieldGT(FieldWxid, v))
  383. }
  384. // WxidGTE applies the GTE predicate on the "wxid" field.
  385. func WxidGTE(v string) predicate.Contact {
  386. return predicate.Contact(sql.FieldGTE(FieldWxid, v))
  387. }
  388. // WxidLT applies the LT predicate on the "wxid" field.
  389. func WxidLT(v string) predicate.Contact {
  390. return predicate.Contact(sql.FieldLT(FieldWxid, v))
  391. }
  392. // WxidLTE applies the LTE predicate on the "wxid" field.
  393. func WxidLTE(v string) predicate.Contact {
  394. return predicate.Contact(sql.FieldLTE(FieldWxid, v))
  395. }
  396. // WxidContains applies the Contains predicate on the "wxid" field.
  397. func WxidContains(v string) predicate.Contact {
  398. return predicate.Contact(sql.FieldContains(FieldWxid, v))
  399. }
  400. // WxidHasPrefix applies the HasPrefix predicate on the "wxid" field.
  401. func WxidHasPrefix(v string) predicate.Contact {
  402. return predicate.Contact(sql.FieldHasPrefix(FieldWxid, v))
  403. }
  404. // WxidHasSuffix applies the HasSuffix predicate on the "wxid" field.
  405. func WxidHasSuffix(v string) predicate.Contact {
  406. return predicate.Contact(sql.FieldHasSuffix(FieldWxid, v))
  407. }
  408. // WxidEqualFold applies the EqualFold predicate on the "wxid" field.
  409. func WxidEqualFold(v string) predicate.Contact {
  410. return predicate.Contact(sql.FieldEqualFold(FieldWxid, v))
  411. }
  412. // WxidContainsFold applies the ContainsFold predicate on the "wxid" field.
  413. func WxidContainsFold(v string) predicate.Contact {
  414. return predicate.Contact(sql.FieldContainsFold(FieldWxid, v))
  415. }
  416. // AccountEQ applies the EQ predicate on the "account" field.
  417. func AccountEQ(v string) predicate.Contact {
  418. return predicate.Contact(sql.FieldEQ(FieldAccount, v))
  419. }
  420. // AccountNEQ applies the NEQ predicate on the "account" field.
  421. func AccountNEQ(v string) predicate.Contact {
  422. return predicate.Contact(sql.FieldNEQ(FieldAccount, v))
  423. }
  424. // AccountIn applies the In predicate on the "account" field.
  425. func AccountIn(vs ...string) predicate.Contact {
  426. return predicate.Contact(sql.FieldIn(FieldAccount, vs...))
  427. }
  428. // AccountNotIn applies the NotIn predicate on the "account" field.
  429. func AccountNotIn(vs ...string) predicate.Contact {
  430. return predicate.Contact(sql.FieldNotIn(FieldAccount, vs...))
  431. }
  432. // AccountGT applies the GT predicate on the "account" field.
  433. func AccountGT(v string) predicate.Contact {
  434. return predicate.Contact(sql.FieldGT(FieldAccount, v))
  435. }
  436. // AccountGTE applies the GTE predicate on the "account" field.
  437. func AccountGTE(v string) predicate.Contact {
  438. return predicate.Contact(sql.FieldGTE(FieldAccount, v))
  439. }
  440. // AccountLT applies the LT predicate on the "account" field.
  441. func AccountLT(v string) predicate.Contact {
  442. return predicate.Contact(sql.FieldLT(FieldAccount, v))
  443. }
  444. // AccountLTE applies the LTE predicate on the "account" field.
  445. func AccountLTE(v string) predicate.Contact {
  446. return predicate.Contact(sql.FieldLTE(FieldAccount, v))
  447. }
  448. // AccountContains applies the Contains predicate on the "account" field.
  449. func AccountContains(v string) predicate.Contact {
  450. return predicate.Contact(sql.FieldContains(FieldAccount, v))
  451. }
  452. // AccountHasPrefix applies the HasPrefix predicate on the "account" field.
  453. func AccountHasPrefix(v string) predicate.Contact {
  454. return predicate.Contact(sql.FieldHasPrefix(FieldAccount, v))
  455. }
  456. // AccountHasSuffix applies the HasSuffix predicate on the "account" field.
  457. func AccountHasSuffix(v string) predicate.Contact {
  458. return predicate.Contact(sql.FieldHasSuffix(FieldAccount, v))
  459. }
  460. // AccountEqualFold applies the EqualFold predicate on the "account" field.
  461. func AccountEqualFold(v string) predicate.Contact {
  462. return predicate.Contact(sql.FieldEqualFold(FieldAccount, v))
  463. }
  464. // AccountContainsFold applies the ContainsFold predicate on the "account" field.
  465. func AccountContainsFold(v string) predicate.Contact {
  466. return predicate.Contact(sql.FieldContainsFold(FieldAccount, v))
  467. }
  468. // NicknameEQ applies the EQ predicate on the "nickname" field.
  469. func NicknameEQ(v string) predicate.Contact {
  470. return predicate.Contact(sql.FieldEQ(FieldNickname, v))
  471. }
  472. // NicknameNEQ applies the NEQ predicate on the "nickname" field.
  473. func NicknameNEQ(v string) predicate.Contact {
  474. return predicate.Contact(sql.FieldNEQ(FieldNickname, v))
  475. }
  476. // NicknameIn applies the In predicate on the "nickname" field.
  477. func NicknameIn(vs ...string) predicate.Contact {
  478. return predicate.Contact(sql.FieldIn(FieldNickname, vs...))
  479. }
  480. // NicknameNotIn applies the NotIn predicate on the "nickname" field.
  481. func NicknameNotIn(vs ...string) predicate.Contact {
  482. return predicate.Contact(sql.FieldNotIn(FieldNickname, vs...))
  483. }
  484. // NicknameGT applies the GT predicate on the "nickname" field.
  485. func NicknameGT(v string) predicate.Contact {
  486. return predicate.Contact(sql.FieldGT(FieldNickname, v))
  487. }
  488. // NicknameGTE applies the GTE predicate on the "nickname" field.
  489. func NicknameGTE(v string) predicate.Contact {
  490. return predicate.Contact(sql.FieldGTE(FieldNickname, v))
  491. }
  492. // NicknameLT applies the LT predicate on the "nickname" field.
  493. func NicknameLT(v string) predicate.Contact {
  494. return predicate.Contact(sql.FieldLT(FieldNickname, v))
  495. }
  496. // NicknameLTE applies the LTE predicate on the "nickname" field.
  497. func NicknameLTE(v string) predicate.Contact {
  498. return predicate.Contact(sql.FieldLTE(FieldNickname, v))
  499. }
  500. // NicknameContains applies the Contains predicate on the "nickname" field.
  501. func NicknameContains(v string) predicate.Contact {
  502. return predicate.Contact(sql.FieldContains(FieldNickname, v))
  503. }
  504. // NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
  505. func NicknameHasPrefix(v string) predicate.Contact {
  506. return predicate.Contact(sql.FieldHasPrefix(FieldNickname, v))
  507. }
  508. // NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
  509. func NicknameHasSuffix(v string) predicate.Contact {
  510. return predicate.Contact(sql.FieldHasSuffix(FieldNickname, v))
  511. }
  512. // NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
  513. func NicknameEqualFold(v string) predicate.Contact {
  514. return predicate.Contact(sql.FieldEqualFold(FieldNickname, v))
  515. }
  516. // NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
  517. func NicknameContainsFold(v string) predicate.Contact {
  518. return predicate.Contact(sql.FieldContainsFold(FieldNickname, v))
  519. }
  520. // MarknameEQ applies the EQ predicate on the "markname" field.
  521. func MarknameEQ(v string) predicate.Contact {
  522. return predicate.Contact(sql.FieldEQ(FieldMarkname, v))
  523. }
  524. // MarknameNEQ applies the NEQ predicate on the "markname" field.
  525. func MarknameNEQ(v string) predicate.Contact {
  526. return predicate.Contact(sql.FieldNEQ(FieldMarkname, v))
  527. }
  528. // MarknameIn applies the In predicate on the "markname" field.
  529. func MarknameIn(vs ...string) predicate.Contact {
  530. return predicate.Contact(sql.FieldIn(FieldMarkname, vs...))
  531. }
  532. // MarknameNotIn applies the NotIn predicate on the "markname" field.
  533. func MarknameNotIn(vs ...string) predicate.Contact {
  534. return predicate.Contact(sql.FieldNotIn(FieldMarkname, vs...))
  535. }
  536. // MarknameGT applies the GT predicate on the "markname" field.
  537. func MarknameGT(v string) predicate.Contact {
  538. return predicate.Contact(sql.FieldGT(FieldMarkname, v))
  539. }
  540. // MarknameGTE applies the GTE predicate on the "markname" field.
  541. func MarknameGTE(v string) predicate.Contact {
  542. return predicate.Contact(sql.FieldGTE(FieldMarkname, v))
  543. }
  544. // MarknameLT applies the LT predicate on the "markname" field.
  545. func MarknameLT(v string) predicate.Contact {
  546. return predicate.Contact(sql.FieldLT(FieldMarkname, v))
  547. }
  548. // MarknameLTE applies the LTE predicate on the "markname" field.
  549. func MarknameLTE(v string) predicate.Contact {
  550. return predicate.Contact(sql.FieldLTE(FieldMarkname, v))
  551. }
  552. // MarknameContains applies the Contains predicate on the "markname" field.
  553. func MarknameContains(v string) predicate.Contact {
  554. return predicate.Contact(sql.FieldContains(FieldMarkname, v))
  555. }
  556. // MarknameHasPrefix applies the HasPrefix predicate on the "markname" field.
  557. func MarknameHasPrefix(v string) predicate.Contact {
  558. return predicate.Contact(sql.FieldHasPrefix(FieldMarkname, v))
  559. }
  560. // MarknameHasSuffix applies the HasSuffix predicate on the "markname" field.
  561. func MarknameHasSuffix(v string) predicate.Contact {
  562. return predicate.Contact(sql.FieldHasSuffix(FieldMarkname, v))
  563. }
  564. // MarknameEqualFold applies the EqualFold predicate on the "markname" field.
  565. func MarknameEqualFold(v string) predicate.Contact {
  566. return predicate.Contact(sql.FieldEqualFold(FieldMarkname, v))
  567. }
  568. // MarknameContainsFold applies the ContainsFold predicate on the "markname" field.
  569. func MarknameContainsFold(v string) predicate.Contact {
  570. return predicate.Contact(sql.FieldContainsFold(FieldMarkname, v))
  571. }
  572. // HeadimgEQ applies the EQ predicate on the "headimg" field.
  573. func HeadimgEQ(v string) predicate.Contact {
  574. return predicate.Contact(sql.FieldEQ(FieldHeadimg, v))
  575. }
  576. // HeadimgNEQ applies the NEQ predicate on the "headimg" field.
  577. func HeadimgNEQ(v string) predicate.Contact {
  578. return predicate.Contact(sql.FieldNEQ(FieldHeadimg, v))
  579. }
  580. // HeadimgIn applies the In predicate on the "headimg" field.
  581. func HeadimgIn(vs ...string) predicate.Contact {
  582. return predicate.Contact(sql.FieldIn(FieldHeadimg, vs...))
  583. }
  584. // HeadimgNotIn applies the NotIn predicate on the "headimg" field.
  585. func HeadimgNotIn(vs ...string) predicate.Contact {
  586. return predicate.Contact(sql.FieldNotIn(FieldHeadimg, vs...))
  587. }
  588. // HeadimgGT applies the GT predicate on the "headimg" field.
  589. func HeadimgGT(v string) predicate.Contact {
  590. return predicate.Contact(sql.FieldGT(FieldHeadimg, v))
  591. }
  592. // HeadimgGTE applies the GTE predicate on the "headimg" field.
  593. func HeadimgGTE(v string) predicate.Contact {
  594. return predicate.Contact(sql.FieldGTE(FieldHeadimg, v))
  595. }
  596. // HeadimgLT applies the LT predicate on the "headimg" field.
  597. func HeadimgLT(v string) predicate.Contact {
  598. return predicate.Contact(sql.FieldLT(FieldHeadimg, v))
  599. }
  600. // HeadimgLTE applies the LTE predicate on the "headimg" field.
  601. func HeadimgLTE(v string) predicate.Contact {
  602. return predicate.Contact(sql.FieldLTE(FieldHeadimg, v))
  603. }
  604. // HeadimgContains applies the Contains predicate on the "headimg" field.
  605. func HeadimgContains(v string) predicate.Contact {
  606. return predicate.Contact(sql.FieldContains(FieldHeadimg, v))
  607. }
  608. // HeadimgHasPrefix applies the HasPrefix predicate on the "headimg" field.
  609. func HeadimgHasPrefix(v string) predicate.Contact {
  610. return predicate.Contact(sql.FieldHasPrefix(FieldHeadimg, v))
  611. }
  612. // HeadimgHasSuffix applies the HasSuffix predicate on the "headimg" field.
  613. func HeadimgHasSuffix(v string) predicate.Contact {
  614. return predicate.Contact(sql.FieldHasSuffix(FieldHeadimg, v))
  615. }
  616. // HeadimgEqualFold applies the EqualFold predicate on the "headimg" field.
  617. func HeadimgEqualFold(v string) predicate.Contact {
  618. return predicate.Contact(sql.FieldEqualFold(FieldHeadimg, v))
  619. }
  620. // HeadimgContainsFold applies the ContainsFold predicate on the "headimg" field.
  621. func HeadimgContainsFold(v string) predicate.Contact {
  622. return predicate.Contact(sql.FieldContainsFold(FieldHeadimg, v))
  623. }
  624. // SexEQ applies the EQ predicate on the "sex" field.
  625. func SexEQ(v int) predicate.Contact {
  626. return predicate.Contact(sql.FieldEQ(FieldSex, v))
  627. }
  628. // SexNEQ applies the NEQ predicate on the "sex" field.
  629. func SexNEQ(v int) predicate.Contact {
  630. return predicate.Contact(sql.FieldNEQ(FieldSex, v))
  631. }
  632. // SexIn applies the In predicate on the "sex" field.
  633. func SexIn(vs ...int) predicate.Contact {
  634. return predicate.Contact(sql.FieldIn(FieldSex, vs...))
  635. }
  636. // SexNotIn applies the NotIn predicate on the "sex" field.
  637. func SexNotIn(vs ...int) predicate.Contact {
  638. return predicate.Contact(sql.FieldNotIn(FieldSex, vs...))
  639. }
  640. // SexGT applies the GT predicate on the "sex" field.
  641. func SexGT(v int) predicate.Contact {
  642. return predicate.Contact(sql.FieldGT(FieldSex, v))
  643. }
  644. // SexGTE applies the GTE predicate on the "sex" field.
  645. func SexGTE(v int) predicate.Contact {
  646. return predicate.Contact(sql.FieldGTE(FieldSex, v))
  647. }
  648. // SexLT applies the LT predicate on the "sex" field.
  649. func SexLT(v int) predicate.Contact {
  650. return predicate.Contact(sql.FieldLT(FieldSex, v))
  651. }
  652. // SexLTE applies the LTE predicate on the "sex" field.
  653. func SexLTE(v int) predicate.Contact {
  654. return predicate.Contact(sql.FieldLTE(FieldSex, v))
  655. }
  656. // StarroleEQ applies the EQ predicate on the "starrole" field.
  657. func StarroleEQ(v string) predicate.Contact {
  658. return predicate.Contact(sql.FieldEQ(FieldStarrole, v))
  659. }
  660. // StarroleNEQ applies the NEQ predicate on the "starrole" field.
  661. func StarroleNEQ(v string) predicate.Contact {
  662. return predicate.Contact(sql.FieldNEQ(FieldStarrole, v))
  663. }
  664. // StarroleIn applies the In predicate on the "starrole" field.
  665. func StarroleIn(vs ...string) predicate.Contact {
  666. return predicate.Contact(sql.FieldIn(FieldStarrole, vs...))
  667. }
  668. // StarroleNotIn applies the NotIn predicate on the "starrole" field.
  669. func StarroleNotIn(vs ...string) predicate.Contact {
  670. return predicate.Contact(sql.FieldNotIn(FieldStarrole, vs...))
  671. }
  672. // StarroleGT applies the GT predicate on the "starrole" field.
  673. func StarroleGT(v string) predicate.Contact {
  674. return predicate.Contact(sql.FieldGT(FieldStarrole, v))
  675. }
  676. // StarroleGTE applies the GTE predicate on the "starrole" field.
  677. func StarroleGTE(v string) predicate.Contact {
  678. return predicate.Contact(sql.FieldGTE(FieldStarrole, v))
  679. }
  680. // StarroleLT applies the LT predicate on the "starrole" field.
  681. func StarroleLT(v string) predicate.Contact {
  682. return predicate.Contact(sql.FieldLT(FieldStarrole, v))
  683. }
  684. // StarroleLTE applies the LTE predicate on the "starrole" field.
  685. func StarroleLTE(v string) predicate.Contact {
  686. return predicate.Contact(sql.FieldLTE(FieldStarrole, v))
  687. }
  688. // StarroleContains applies the Contains predicate on the "starrole" field.
  689. func StarroleContains(v string) predicate.Contact {
  690. return predicate.Contact(sql.FieldContains(FieldStarrole, v))
  691. }
  692. // StarroleHasPrefix applies the HasPrefix predicate on the "starrole" field.
  693. func StarroleHasPrefix(v string) predicate.Contact {
  694. return predicate.Contact(sql.FieldHasPrefix(FieldStarrole, v))
  695. }
  696. // StarroleHasSuffix applies the HasSuffix predicate on the "starrole" field.
  697. func StarroleHasSuffix(v string) predicate.Contact {
  698. return predicate.Contact(sql.FieldHasSuffix(FieldStarrole, v))
  699. }
  700. // StarroleEqualFold applies the EqualFold predicate on the "starrole" field.
  701. func StarroleEqualFold(v string) predicate.Contact {
  702. return predicate.Contact(sql.FieldEqualFold(FieldStarrole, v))
  703. }
  704. // StarroleContainsFold applies the ContainsFold predicate on the "starrole" field.
  705. func StarroleContainsFold(v string) predicate.Contact {
  706. return predicate.Contact(sql.FieldContainsFold(FieldStarrole, v))
  707. }
  708. // DontseeitEQ applies the EQ predicate on the "dontseeit" field.
  709. func DontseeitEQ(v int) predicate.Contact {
  710. return predicate.Contact(sql.FieldEQ(FieldDontseeit, v))
  711. }
  712. // DontseeitNEQ applies the NEQ predicate on the "dontseeit" field.
  713. func DontseeitNEQ(v int) predicate.Contact {
  714. return predicate.Contact(sql.FieldNEQ(FieldDontseeit, v))
  715. }
  716. // DontseeitIn applies the In predicate on the "dontseeit" field.
  717. func DontseeitIn(vs ...int) predicate.Contact {
  718. return predicate.Contact(sql.FieldIn(FieldDontseeit, vs...))
  719. }
  720. // DontseeitNotIn applies the NotIn predicate on the "dontseeit" field.
  721. func DontseeitNotIn(vs ...int) predicate.Contact {
  722. return predicate.Contact(sql.FieldNotIn(FieldDontseeit, vs...))
  723. }
  724. // DontseeitGT applies the GT predicate on the "dontseeit" field.
  725. func DontseeitGT(v int) predicate.Contact {
  726. return predicate.Contact(sql.FieldGT(FieldDontseeit, v))
  727. }
  728. // DontseeitGTE applies the GTE predicate on the "dontseeit" field.
  729. func DontseeitGTE(v int) predicate.Contact {
  730. return predicate.Contact(sql.FieldGTE(FieldDontseeit, v))
  731. }
  732. // DontseeitLT applies the LT predicate on the "dontseeit" field.
  733. func DontseeitLT(v int) predicate.Contact {
  734. return predicate.Contact(sql.FieldLT(FieldDontseeit, v))
  735. }
  736. // DontseeitLTE applies the LTE predicate on the "dontseeit" field.
  737. func DontseeitLTE(v int) predicate.Contact {
  738. return predicate.Contact(sql.FieldLTE(FieldDontseeit, v))
  739. }
  740. // DontseemeEQ applies the EQ predicate on the "dontseeme" field.
  741. func DontseemeEQ(v int) predicate.Contact {
  742. return predicate.Contact(sql.FieldEQ(FieldDontseeme, v))
  743. }
  744. // DontseemeNEQ applies the NEQ predicate on the "dontseeme" field.
  745. func DontseemeNEQ(v int) predicate.Contact {
  746. return predicate.Contact(sql.FieldNEQ(FieldDontseeme, v))
  747. }
  748. // DontseemeIn applies the In predicate on the "dontseeme" field.
  749. func DontseemeIn(vs ...int) predicate.Contact {
  750. return predicate.Contact(sql.FieldIn(FieldDontseeme, vs...))
  751. }
  752. // DontseemeNotIn applies the NotIn predicate on the "dontseeme" field.
  753. func DontseemeNotIn(vs ...int) predicate.Contact {
  754. return predicate.Contact(sql.FieldNotIn(FieldDontseeme, vs...))
  755. }
  756. // DontseemeGT applies the GT predicate on the "dontseeme" field.
  757. func DontseemeGT(v int) predicate.Contact {
  758. return predicate.Contact(sql.FieldGT(FieldDontseeme, v))
  759. }
  760. // DontseemeGTE applies the GTE predicate on the "dontseeme" field.
  761. func DontseemeGTE(v int) predicate.Contact {
  762. return predicate.Contact(sql.FieldGTE(FieldDontseeme, v))
  763. }
  764. // DontseemeLT applies the LT predicate on the "dontseeme" field.
  765. func DontseemeLT(v int) predicate.Contact {
  766. return predicate.Contact(sql.FieldLT(FieldDontseeme, v))
  767. }
  768. // DontseemeLTE applies the LTE predicate on the "dontseeme" field.
  769. func DontseemeLTE(v int) predicate.Contact {
  770. return predicate.Contact(sql.FieldLTE(FieldDontseeme, v))
  771. }
  772. // LagEQ applies the EQ predicate on the "lag" field.
  773. func LagEQ(v string) predicate.Contact {
  774. return predicate.Contact(sql.FieldEQ(FieldLag, v))
  775. }
  776. // LagNEQ applies the NEQ predicate on the "lag" field.
  777. func LagNEQ(v string) predicate.Contact {
  778. return predicate.Contact(sql.FieldNEQ(FieldLag, v))
  779. }
  780. // LagIn applies the In predicate on the "lag" field.
  781. func LagIn(vs ...string) predicate.Contact {
  782. return predicate.Contact(sql.FieldIn(FieldLag, vs...))
  783. }
  784. // LagNotIn applies the NotIn predicate on the "lag" field.
  785. func LagNotIn(vs ...string) predicate.Contact {
  786. return predicate.Contact(sql.FieldNotIn(FieldLag, vs...))
  787. }
  788. // LagGT applies the GT predicate on the "lag" field.
  789. func LagGT(v string) predicate.Contact {
  790. return predicate.Contact(sql.FieldGT(FieldLag, v))
  791. }
  792. // LagGTE applies the GTE predicate on the "lag" field.
  793. func LagGTE(v string) predicate.Contact {
  794. return predicate.Contact(sql.FieldGTE(FieldLag, v))
  795. }
  796. // LagLT applies the LT predicate on the "lag" field.
  797. func LagLT(v string) predicate.Contact {
  798. return predicate.Contact(sql.FieldLT(FieldLag, v))
  799. }
  800. // LagLTE applies the LTE predicate on the "lag" field.
  801. func LagLTE(v string) predicate.Contact {
  802. return predicate.Contact(sql.FieldLTE(FieldLag, v))
  803. }
  804. // LagContains applies the Contains predicate on the "lag" field.
  805. func LagContains(v string) predicate.Contact {
  806. return predicate.Contact(sql.FieldContains(FieldLag, v))
  807. }
  808. // LagHasPrefix applies the HasPrefix predicate on the "lag" field.
  809. func LagHasPrefix(v string) predicate.Contact {
  810. return predicate.Contact(sql.FieldHasPrefix(FieldLag, v))
  811. }
  812. // LagHasSuffix applies the HasSuffix predicate on the "lag" field.
  813. func LagHasSuffix(v string) predicate.Contact {
  814. return predicate.Contact(sql.FieldHasSuffix(FieldLag, v))
  815. }
  816. // LagEqualFold applies the EqualFold predicate on the "lag" field.
  817. func LagEqualFold(v string) predicate.Contact {
  818. return predicate.Contact(sql.FieldEqualFold(FieldLag, v))
  819. }
  820. // LagContainsFold applies the ContainsFold predicate on the "lag" field.
  821. func LagContainsFold(v string) predicate.Contact {
  822. return predicate.Contact(sql.FieldContainsFold(FieldLag, v))
  823. }
  824. // GidEQ applies the EQ predicate on the "gid" field.
  825. func GidEQ(v string) predicate.Contact {
  826. return predicate.Contact(sql.FieldEQ(FieldGid, v))
  827. }
  828. // GidNEQ applies the NEQ predicate on the "gid" field.
  829. func GidNEQ(v string) predicate.Contact {
  830. return predicate.Contact(sql.FieldNEQ(FieldGid, v))
  831. }
  832. // GidIn applies the In predicate on the "gid" field.
  833. func GidIn(vs ...string) predicate.Contact {
  834. return predicate.Contact(sql.FieldIn(FieldGid, vs...))
  835. }
  836. // GidNotIn applies the NotIn predicate on the "gid" field.
  837. func GidNotIn(vs ...string) predicate.Contact {
  838. return predicate.Contact(sql.FieldNotIn(FieldGid, vs...))
  839. }
  840. // GidGT applies the GT predicate on the "gid" field.
  841. func GidGT(v string) predicate.Contact {
  842. return predicate.Contact(sql.FieldGT(FieldGid, v))
  843. }
  844. // GidGTE applies the GTE predicate on the "gid" field.
  845. func GidGTE(v string) predicate.Contact {
  846. return predicate.Contact(sql.FieldGTE(FieldGid, v))
  847. }
  848. // GidLT applies the LT predicate on the "gid" field.
  849. func GidLT(v string) predicate.Contact {
  850. return predicate.Contact(sql.FieldLT(FieldGid, v))
  851. }
  852. // GidLTE applies the LTE predicate on the "gid" field.
  853. func GidLTE(v string) predicate.Contact {
  854. return predicate.Contact(sql.FieldLTE(FieldGid, v))
  855. }
  856. // GidContains applies the Contains predicate on the "gid" field.
  857. func GidContains(v string) predicate.Contact {
  858. return predicate.Contact(sql.FieldContains(FieldGid, v))
  859. }
  860. // GidHasPrefix applies the HasPrefix predicate on the "gid" field.
  861. func GidHasPrefix(v string) predicate.Contact {
  862. return predicate.Contact(sql.FieldHasPrefix(FieldGid, v))
  863. }
  864. // GidHasSuffix applies the HasSuffix predicate on the "gid" field.
  865. func GidHasSuffix(v string) predicate.Contact {
  866. return predicate.Contact(sql.FieldHasSuffix(FieldGid, v))
  867. }
  868. // GidEqualFold applies the EqualFold predicate on the "gid" field.
  869. func GidEqualFold(v string) predicate.Contact {
  870. return predicate.Contact(sql.FieldEqualFold(FieldGid, v))
  871. }
  872. // GidContainsFold applies the ContainsFold predicate on the "gid" field.
  873. func GidContainsFold(v string) predicate.Contact {
  874. return predicate.Contact(sql.FieldContainsFold(FieldGid, v))
  875. }
  876. // GnameEQ applies the EQ predicate on the "gname" field.
  877. func GnameEQ(v string) predicate.Contact {
  878. return predicate.Contact(sql.FieldEQ(FieldGname, v))
  879. }
  880. // GnameNEQ applies the NEQ predicate on the "gname" field.
  881. func GnameNEQ(v string) predicate.Contact {
  882. return predicate.Contact(sql.FieldNEQ(FieldGname, v))
  883. }
  884. // GnameIn applies the In predicate on the "gname" field.
  885. func GnameIn(vs ...string) predicate.Contact {
  886. return predicate.Contact(sql.FieldIn(FieldGname, vs...))
  887. }
  888. // GnameNotIn applies the NotIn predicate on the "gname" field.
  889. func GnameNotIn(vs ...string) predicate.Contact {
  890. return predicate.Contact(sql.FieldNotIn(FieldGname, vs...))
  891. }
  892. // GnameGT applies the GT predicate on the "gname" field.
  893. func GnameGT(v string) predicate.Contact {
  894. return predicate.Contact(sql.FieldGT(FieldGname, v))
  895. }
  896. // GnameGTE applies the GTE predicate on the "gname" field.
  897. func GnameGTE(v string) predicate.Contact {
  898. return predicate.Contact(sql.FieldGTE(FieldGname, v))
  899. }
  900. // GnameLT applies the LT predicate on the "gname" field.
  901. func GnameLT(v string) predicate.Contact {
  902. return predicate.Contact(sql.FieldLT(FieldGname, v))
  903. }
  904. // GnameLTE applies the LTE predicate on the "gname" field.
  905. func GnameLTE(v string) predicate.Contact {
  906. return predicate.Contact(sql.FieldLTE(FieldGname, v))
  907. }
  908. // GnameContains applies the Contains predicate on the "gname" field.
  909. func GnameContains(v string) predicate.Contact {
  910. return predicate.Contact(sql.FieldContains(FieldGname, v))
  911. }
  912. // GnameHasPrefix applies the HasPrefix predicate on the "gname" field.
  913. func GnameHasPrefix(v string) predicate.Contact {
  914. return predicate.Contact(sql.FieldHasPrefix(FieldGname, v))
  915. }
  916. // GnameHasSuffix applies the HasSuffix predicate on the "gname" field.
  917. func GnameHasSuffix(v string) predicate.Contact {
  918. return predicate.Contact(sql.FieldHasSuffix(FieldGname, v))
  919. }
  920. // GnameEqualFold applies the EqualFold predicate on the "gname" field.
  921. func GnameEqualFold(v string) predicate.Contact {
  922. return predicate.Contact(sql.FieldEqualFold(FieldGname, v))
  923. }
  924. // GnameContainsFold applies the ContainsFold predicate on the "gname" field.
  925. func GnameContainsFold(v string) predicate.Contact {
  926. return predicate.Contact(sql.FieldContainsFold(FieldGname, v))
  927. }
  928. // V3EQ applies the EQ predicate on the "v3" field.
  929. func V3EQ(v string) predicate.Contact {
  930. return predicate.Contact(sql.FieldEQ(FieldV3, v))
  931. }
  932. // V3NEQ applies the NEQ predicate on the "v3" field.
  933. func V3NEQ(v string) predicate.Contact {
  934. return predicate.Contact(sql.FieldNEQ(FieldV3, v))
  935. }
  936. // V3In applies the In predicate on the "v3" field.
  937. func V3In(vs ...string) predicate.Contact {
  938. return predicate.Contact(sql.FieldIn(FieldV3, vs...))
  939. }
  940. // V3NotIn applies the NotIn predicate on the "v3" field.
  941. func V3NotIn(vs ...string) predicate.Contact {
  942. return predicate.Contact(sql.FieldNotIn(FieldV3, vs...))
  943. }
  944. // V3GT applies the GT predicate on the "v3" field.
  945. func V3GT(v string) predicate.Contact {
  946. return predicate.Contact(sql.FieldGT(FieldV3, v))
  947. }
  948. // V3GTE applies the GTE predicate on the "v3" field.
  949. func V3GTE(v string) predicate.Contact {
  950. return predicate.Contact(sql.FieldGTE(FieldV3, v))
  951. }
  952. // V3LT applies the LT predicate on the "v3" field.
  953. func V3LT(v string) predicate.Contact {
  954. return predicate.Contact(sql.FieldLT(FieldV3, v))
  955. }
  956. // V3LTE applies the LTE predicate on the "v3" field.
  957. func V3LTE(v string) predicate.Contact {
  958. return predicate.Contact(sql.FieldLTE(FieldV3, v))
  959. }
  960. // V3Contains applies the Contains predicate on the "v3" field.
  961. func V3Contains(v string) predicate.Contact {
  962. return predicate.Contact(sql.FieldContains(FieldV3, v))
  963. }
  964. // V3HasPrefix applies the HasPrefix predicate on the "v3" field.
  965. func V3HasPrefix(v string) predicate.Contact {
  966. return predicate.Contact(sql.FieldHasPrefix(FieldV3, v))
  967. }
  968. // V3HasSuffix applies the HasSuffix predicate on the "v3" field.
  969. func V3HasSuffix(v string) predicate.Contact {
  970. return predicate.Contact(sql.FieldHasSuffix(FieldV3, v))
  971. }
  972. // V3EqualFold applies the EqualFold predicate on the "v3" field.
  973. func V3EqualFold(v string) predicate.Contact {
  974. return predicate.Contact(sql.FieldEqualFold(FieldV3, v))
  975. }
  976. // V3ContainsFold applies the ContainsFold predicate on the "v3" field.
  977. func V3ContainsFold(v string) predicate.Contact {
  978. return predicate.Contact(sql.FieldContainsFold(FieldV3, v))
  979. }
  980. // And groups predicates with the AND operator between them.
  981. func And(predicates ...predicate.Contact) predicate.Contact {
  982. return predicate.Contact(sql.AndPredicates(predicates...))
  983. }
  984. // Or groups predicates with the OR operator between them.
  985. func Or(predicates ...predicate.Contact) predicate.Contact {
  986. return predicate.Contact(sql.OrPredicates(predicates...))
  987. }
  988. // Not applies the not operator on the given predicate.
  989. func Not(p predicate.Contact) predicate.Contact {
  990. return predicate.Contact(sql.NotPredicates(p))
  991. }