where.go 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890
  1. // Code generated by ent, DO NOT EDIT.
  2. package wxcarduser
  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.WxCardUser {
  10. return predicate.WxCardUser(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.WxCardUser {
  14. return predicate.WxCardUser(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.WxCardUser {
  18. return predicate.WxCardUser(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.WxCardUser {
  22. return predicate.WxCardUser(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.WxCardUser {
  26. return predicate.WxCardUser(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.WxCardUser {
  30. return predicate.WxCardUser(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.WxCardUser {
  34. return predicate.WxCardUser(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.WxCardUser {
  38. return predicate.WxCardUser(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.WxCardUser {
  42. return predicate.WxCardUser(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.WxCardUser {
  46. return predicate.WxCardUser(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.WxCardUser {
  50. return predicate.WxCardUser(sql.FieldEQ(FieldUpdatedAt, v))
  51. }
  52. // DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
  53. func DeletedAt(v time.Time) predicate.WxCardUser {
  54. return predicate.WxCardUser(sql.FieldEQ(FieldDeletedAt, v))
  55. }
  56. // Wxid applies equality check predicate on the "wxid" field. It's identical to WxidEQ.
  57. func Wxid(v string) predicate.WxCardUser {
  58. return predicate.WxCardUser(sql.FieldEQ(FieldWxid, v))
  59. }
  60. // Account applies equality check predicate on the "account" field. It's identical to AccountEQ.
  61. func Account(v string) predicate.WxCardUser {
  62. return predicate.WxCardUser(sql.FieldEQ(FieldAccount, v))
  63. }
  64. // Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
  65. func Avatar(v string) predicate.WxCardUser {
  66. return predicate.WxCardUser(sql.FieldEQ(FieldAvatar, v))
  67. }
  68. // Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
  69. func Nickname(v string) predicate.WxCardUser {
  70. return predicate.WxCardUser(sql.FieldEQ(FieldNickname, v))
  71. }
  72. // Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
  73. func Remark(v string) predicate.WxCardUser {
  74. return predicate.WxCardUser(sql.FieldEQ(FieldRemark, v))
  75. }
  76. // Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
  77. func Phone(v string) predicate.WxCardUser {
  78. return predicate.WxCardUser(sql.FieldEQ(FieldPhone, v))
  79. }
  80. // OpenID applies equality check predicate on the "open_id" field. It's identical to OpenIDEQ.
  81. func OpenID(v string) predicate.WxCardUser {
  82. return predicate.WxCardUser(sql.FieldEQ(FieldOpenID, v))
  83. }
  84. // UnionID applies equality check predicate on the "union_id" field. It's identical to UnionIDEQ.
  85. func UnionID(v string) predicate.WxCardUser {
  86. return predicate.WxCardUser(sql.FieldEQ(FieldUnionID, v))
  87. }
  88. // SessionKey applies equality check predicate on the "session_key" field. It's identical to SessionKeyEQ.
  89. func SessionKey(v string) predicate.WxCardUser {
  90. return predicate.WxCardUser(sql.FieldEQ(FieldSessionKey, v))
  91. }
  92. // IsVip applies equality check predicate on the "is_vip" field. It's identical to IsVipEQ.
  93. func IsVip(v int) predicate.WxCardUser {
  94. return predicate.WxCardUser(sql.FieldEQ(FieldIsVip, v))
  95. }
  96. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  97. func CreatedAtEQ(v time.Time) predicate.WxCardUser {
  98. return predicate.WxCardUser(sql.FieldEQ(FieldCreatedAt, v))
  99. }
  100. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  101. func CreatedAtNEQ(v time.Time) predicate.WxCardUser {
  102. return predicate.WxCardUser(sql.FieldNEQ(FieldCreatedAt, v))
  103. }
  104. // CreatedAtIn applies the In predicate on the "created_at" field.
  105. func CreatedAtIn(vs ...time.Time) predicate.WxCardUser {
  106. return predicate.WxCardUser(sql.FieldIn(FieldCreatedAt, vs...))
  107. }
  108. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  109. func CreatedAtNotIn(vs ...time.Time) predicate.WxCardUser {
  110. return predicate.WxCardUser(sql.FieldNotIn(FieldCreatedAt, vs...))
  111. }
  112. // CreatedAtGT applies the GT predicate on the "created_at" field.
  113. func CreatedAtGT(v time.Time) predicate.WxCardUser {
  114. return predicate.WxCardUser(sql.FieldGT(FieldCreatedAt, v))
  115. }
  116. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  117. func CreatedAtGTE(v time.Time) predicate.WxCardUser {
  118. return predicate.WxCardUser(sql.FieldGTE(FieldCreatedAt, v))
  119. }
  120. // CreatedAtLT applies the LT predicate on the "created_at" field.
  121. func CreatedAtLT(v time.Time) predicate.WxCardUser {
  122. return predicate.WxCardUser(sql.FieldLT(FieldCreatedAt, v))
  123. }
  124. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  125. func CreatedAtLTE(v time.Time) predicate.WxCardUser {
  126. return predicate.WxCardUser(sql.FieldLTE(FieldCreatedAt, v))
  127. }
  128. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  129. func UpdatedAtEQ(v time.Time) predicate.WxCardUser {
  130. return predicate.WxCardUser(sql.FieldEQ(FieldUpdatedAt, v))
  131. }
  132. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  133. func UpdatedAtNEQ(v time.Time) predicate.WxCardUser {
  134. return predicate.WxCardUser(sql.FieldNEQ(FieldUpdatedAt, v))
  135. }
  136. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  137. func UpdatedAtIn(vs ...time.Time) predicate.WxCardUser {
  138. return predicate.WxCardUser(sql.FieldIn(FieldUpdatedAt, vs...))
  139. }
  140. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  141. func UpdatedAtNotIn(vs ...time.Time) predicate.WxCardUser {
  142. return predicate.WxCardUser(sql.FieldNotIn(FieldUpdatedAt, vs...))
  143. }
  144. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  145. func UpdatedAtGT(v time.Time) predicate.WxCardUser {
  146. return predicate.WxCardUser(sql.FieldGT(FieldUpdatedAt, v))
  147. }
  148. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  149. func UpdatedAtGTE(v time.Time) predicate.WxCardUser {
  150. return predicate.WxCardUser(sql.FieldGTE(FieldUpdatedAt, v))
  151. }
  152. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  153. func UpdatedAtLT(v time.Time) predicate.WxCardUser {
  154. return predicate.WxCardUser(sql.FieldLT(FieldUpdatedAt, v))
  155. }
  156. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  157. func UpdatedAtLTE(v time.Time) predicate.WxCardUser {
  158. return predicate.WxCardUser(sql.FieldLTE(FieldUpdatedAt, v))
  159. }
  160. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  161. func DeletedAtEQ(v time.Time) predicate.WxCardUser {
  162. return predicate.WxCardUser(sql.FieldEQ(FieldDeletedAt, v))
  163. }
  164. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  165. func DeletedAtNEQ(v time.Time) predicate.WxCardUser {
  166. return predicate.WxCardUser(sql.FieldNEQ(FieldDeletedAt, v))
  167. }
  168. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  169. func DeletedAtIn(vs ...time.Time) predicate.WxCardUser {
  170. return predicate.WxCardUser(sql.FieldIn(FieldDeletedAt, vs...))
  171. }
  172. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  173. func DeletedAtNotIn(vs ...time.Time) predicate.WxCardUser {
  174. return predicate.WxCardUser(sql.FieldNotIn(FieldDeletedAt, vs...))
  175. }
  176. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  177. func DeletedAtGT(v time.Time) predicate.WxCardUser {
  178. return predicate.WxCardUser(sql.FieldGT(FieldDeletedAt, v))
  179. }
  180. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  181. func DeletedAtGTE(v time.Time) predicate.WxCardUser {
  182. return predicate.WxCardUser(sql.FieldGTE(FieldDeletedAt, v))
  183. }
  184. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  185. func DeletedAtLT(v time.Time) predicate.WxCardUser {
  186. return predicate.WxCardUser(sql.FieldLT(FieldDeletedAt, v))
  187. }
  188. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  189. func DeletedAtLTE(v time.Time) predicate.WxCardUser {
  190. return predicate.WxCardUser(sql.FieldLTE(FieldDeletedAt, v))
  191. }
  192. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  193. func DeletedAtIsNil() predicate.WxCardUser {
  194. return predicate.WxCardUser(sql.FieldIsNull(FieldDeletedAt))
  195. }
  196. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  197. func DeletedAtNotNil() predicate.WxCardUser {
  198. return predicate.WxCardUser(sql.FieldNotNull(FieldDeletedAt))
  199. }
  200. // WxidEQ applies the EQ predicate on the "wxid" field.
  201. func WxidEQ(v string) predicate.WxCardUser {
  202. return predicate.WxCardUser(sql.FieldEQ(FieldWxid, v))
  203. }
  204. // WxidNEQ applies the NEQ predicate on the "wxid" field.
  205. func WxidNEQ(v string) predicate.WxCardUser {
  206. return predicate.WxCardUser(sql.FieldNEQ(FieldWxid, v))
  207. }
  208. // WxidIn applies the In predicate on the "wxid" field.
  209. func WxidIn(vs ...string) predicate.WxCardUser {
  210. return predicate.WxCardUser(sql.FieldIn(FieldWxid, vs...))
  211. }
  212. // WxidNotIn applies the NotIn predicate on the "wxid" field.
  213. func WxidNotIn(vs ...string) predicate.WxCardUser {
  214. return predicate.WxCardUser(sql.FieldNotIn(FieldWxid, vs...))
  215. }
  216. // WxidGT applies the GT predicate on the "wxid" field.
  217. func WxidGT(v string) predicate.WxCardUser {
  218. return predicate.WxCardUser(sql.FieldGT(FieldWxid, v))
  219. }
  220. // WxidGTE applies the GTE predicate on the "wxid" field.
  221. func WxidGTE(v string) predicate.WxCardUser {
  222. return predicate.WxCardUser(sql.FieldGTE(FieldWxid, v))
  223. }
  224. // WxidLT applies the LT predicate on the "wxid" field.
  225. func WxidLT(v string) predicate.WxCardUser {
  226. return predicate.WxCardUser(sql.FieldLT(FieldWxid, v))
  227. }
  228. // WxidLTE applies the LTE predicate on the "wxid" field.
  229. func WxidLTE(v string) predicate.WxCardUser {
  230. return predicate.WxCardUser(sql.FieldLTE(FieldWxid, v))
  231. }
  232. // WxidContains applies the Contains predicate on the "wxid" field.
  233. func WxidContains(v string) predicate.WxCardUser {
  234. return predicate.WxCardUser(sql.FieldContains(FieldWxid, v))
  235. }
  236. // WxidHasPrefix applies the HasPrefix predicate on the "wxid" field.
  237. func WxidHasPrefix(v string) predicate.WxCardUser {
  238. return predicate.WxCardUser(sql.FieldHasPrefix(FieldWxid, v))
  239. }
  240. // WxidHasSuffix applies the HasSuffix predicate on the "wxid" field.
  241. func WxidHasSuffix(v string) predicate.WxCardUser {
  242. return predicate.WxCardUser(sql.FieldHasSuffix(FieldWxid, v))
  243. }
  244. // WxidEqualFold applies the EqualFold predicate on the "wxid" field.
  245. func WxidEqualFold(v string) predicate.WxCardUser {
  246. return predicate.WxCardUser(sql.FieldEqualFold(FieldWxid, v))
  247. }
  248. // WxidContainsFold applies the ContainsFold predicate on the "wxid" field.
  249. func WxidContainsFold(v string) predicate.WxCardUser {
  250. return predicate.WxCardUser(sql.FieldContainsFold(FieldWxid, v))
  251. }
  252. // AccountEQ applies the EQ predicate on the "account" field.
  253. func AccountEQ(v string) predicate.WxCardUser {
  254. return predicate.WxCardUser(sql.FieldEQ(FieldAccount, v))
  255. }
  256. // AccountNEQ applies the NEQ predicate on the "account" field.
  257. func AccountNEQ(v string) predicate.WxCardUser {
  258. return predicate.WxCardUser(sql.FieldNEQ(FieldAccount, v))
  259. }
  260. // AccountIn applies the In predicate on the "account" field.
  261. func AccountIn(vs ...string) predicate.WxCardUser {
  262. return predicate.WxCardUser(sql.FieldIn(FieldAccount, vs...))
  263. }
  264. // AccountNotIn applies the NotIn predicate on the "account" field.
  265. func AccountNotIn(vs ...string) predicate.WxCardUser {
  266. return predicate.WxCardUser(sql.FieldNotIn(FieldAccount, vs...))
  267. }
  268. // AccountGT applies the GT predicate on the "account" field.
  269. func AccountGT(v string) predicate.WxCardUser {
  270. return predicate.WxCardUser(sql.FieldGT(FieldAccount, v))
  271. }
  272. // AccountGTE applies the GTE predicate on the "account" field.
  273. func AccountGTE(v string) predicate.WxCardUser {
  274. return predicate.WxCardUser(sql.FieldGTE(FieldAccount, v))
  275. }
  276. // AccountLT applies the LT predicate on the "account" field.
  277. func AccountLT(v string) predicate.WxCardUser {
  278. return predicate.WxCardUser(sql.FieldLT(FieldAccount, v))
  279. }
  280. // AccountLTE applies the LTE predicate on the "account" field.
  281. func AccountLTE(v string) predicate.WxCardUser {
  282. return predicate.WxCardUser(sql.FieldLTE(FieldAccount, v))
  283. }
  284. // AccountContains applies the Contains predicate on the "account" field.
  285. func AccountContains(v string) predicate.WxCardUser {
  286. return predicate.WxCardUser(sql.FieldContains(FieldAccount, v))
  287. }
  288. // AccountHasPrefix applies the HasPrefix predicate on the "account" field.
  289. func AccountHasPrefix(v string) predicate.WxCardUser {
  290. return predicate.WxCardUser(sql.FieldHasPrefix(FieldAccount, v))
  291. }
  292. // AccountHasSuffix applies the HasSuffix predicate on the "account" field.
  293. func AccountHasSuffix(v string) predicate.WxCardUser {
  294. return predicate.WxCardUser(sql.FieldHasSuffix(FieldAccount, v))
  295. }
  296. // AccountEqualFold applies the EqualFold predicate on the "account" field.
  297. func AccountEqualFold(v string) predicate.WxCardUser {
  298. return predicate.WxCardUser(sql.FieldEqualFold(FieldAccount, v))
  299. }
  300. // AccountContainsFold applies the ContainsFold predicate on the "account" field.
  301. func AccountContainsFold(v string) predicate.WxCardUser {
  302. return predicate.WxCardUser(sql.FieldContainsFold(FieldAccount, v))
  303. }
  304. // AvatarEQ applies the EQ predicate on the "avatar" field.
  305. func AvatarEQ(v string) predicate.WxCardUser {
  306. return predicate.WxCardUser(sql.FieldEQ(FieldAvatar, v))
  307. }
  308. // AvatarNEQ applies the NEQ predicate on the "avatar" field.
  309. func AvatarNEQ(v string) predicate.WxCardUser {
  310. return predicate.WxCardUser(sql.FieldNEQ(FieldAvatar, v))
  311. }
  312. // AvatarIn applies the In predicate on the "avatar" field.
  313. func AvatarIn(vs ...string) predicate.WxCardUser {
  314. return predicate.WxCardUser(sql.FieldIn(FieldAvatar, vs...))
  315. }
  316. // AvatarNotIn applies the NotIn predicate on the "avatar" field.
  317. func AvatarNotIn(vs ...string) predicate.WxCardUser {
  318. return predicate.WxCardUser(sql.FieldNotIn(FieldAvatar, vs...))
  319. }
  320. // AvatarGT applies the GT predicate on the "avatar" field.
  321. func AvatarGT(v string) predicate.WxCardUser {
  322. return predicate.WxCardUser(sql.FieldGT(FieldAvatar, v))
  323. }
  324. // AvatarGTE applies the GTE predicate on the "avatar" field.
  325. func AvatarGTE(v string) predicate.WxCardUser {
  326. return predicate.WxCardUser(sql.FieldGTE(FieldAvatar, v))
  327. }
  328. // AvatarLT applies the LT predicate on the "avatar" field.
  329. func AvatarLT(v string) predicate.WxCardUser {
  330. return predicate.WxCardUser(sql.FieldLT(FieldAvatar, v))
  331. }
  332. // AvatarLTE applies the LTE predicate on the "avatar" field.
  333. func AvatarLTE(v string) predicate.WxCardUser {
  334. return predicate.WxCardUser(sql.FieldLTE(FieldAvatar, v))
  335. }
  336. // AvatarContains applies the Contains predicate on the "avatar" field.
  337. func AvatarContains(v string) predicate.WxCardUser {
  338. return predicate.WxCardUser(sql.FieldContains(FieldAvatar, v))
  339. }
  340. // AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
  341. func AvatarHasPrefix(v string) predicate.WxCardUser {
  342. return predicate.WxCardUser(sql.FieldHasPrefix(FieldAvatar, v))
  343. }
  344. // AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
  345. func AvatarHasSuffix(v string) predicate.WxCardUser {
  346. return predicate.WxCardUser(sql.FieldHasSuffix(FieldAvatar, v))
  347. }
  348. // AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
  349. func AvatarEqualFold(v string) predicate.WxCardUser {
  350. return predicate.WxCardUser(sql.FieldEqualFold(FieldAvatar, v))
  351. }
  352. // AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
  353. func AvatarContainsFold(v string) predicate.WxCardUser {
  354. return predicate.WxCardUser(sql.FieldContainsFold(FieldAvatar, v))
  355. }
  356. // NicknameEQ applies the EQ predicate on the "nickname" field.
  357. func NicknameEQ(v string) predicate.WxCardUser {
  358. return predicate.WxCardUser(sql.FieldEQ(FieldNickname, v))
  359. }
  360. // NicknameNEQ applies the NEQ predicate on the "nickname" field.
  361. func NicknameNEQ(v string) predicate.WxCardUser {
  362. return predicate.WxCardUser(sql.FieldNEQ(FieldNickname, v))
  363. }
  364. // NicknameIn applies the In predicate on the "nickname" field.
  365. func NicknameIn(vs ...string) predicate.WxCardUser {
  366. return predicate.WxCardUser(sql.FieldIn(FieldNickname, vs...))
  367. }
  368. // NicknameNotIn applies the NotIn predicate on the "nickname" field.
  369. func NicknameNotIn(vs ...string) predicate.WxCardUser {
  370. return predicate.WxCardUser(sql.FieldNotIn(FieldNickname, vs...))
  371. }
  372. // NicknameGT applies the GT predicate on the "nickname" field.
  373. func NicknameGT(v string) predicate.WxCardUser {
  374. return predicate.WxCardUser(sql.FieldGT(FieldNickname, v))
  375. }
  376. // NicknameGTE applies the GTE predicate on the "nickname" field.
  377. func NicknameGTE(v string) predicate.WxCardUser {
  378. return predicate.WxCardUser(sql.FieldGTE(FieldNickname, v))
  379. }
  380. // NicknameLT applies the LT predicate on the "nickname" field.
  381. func NicknameLT(v string) predicate.WxCardUser {
  382. return predicate.WxCardUser(sql.FieldLT(FieldNickname, v))
  383. }
  384. // NicknameLTE applies the LTE predicate on the "nickname" field.
  385. func NicknameLTE(v string) predicate.WxCardUser {
  386. return predicate.WxCardUser(sql.FieldLTE(FieldNickname, v))
  387. }
  388. // NicknameContains applies the Contains predicate on the "nickname" field.
  389. func NicknameContains(v string) predicate.WxCardUser {
  390. return predicate.WxCardUser(sql.FieldContains(FieldNickname, v))
  391. }
  392. // NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
  393. func NicknameHasPrefix(v string) predicate.WxCardUser {
  394. return predicate.WxCardUser(sql.FieldHasPrefix(FieldNickname, v))
  395. }
  396. // NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
  397. func NicknameHasSuffix(v string) predicate.WxCardUser {
  398. return predicate.WxCardUser(sql.FieldHasSuffix(FieldNickname, v))
  399. }
  400. // NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
  401. func NicknameEqualFold(v string) predicate.WxCardUser {
  402. return predicate.WxCardUser(sql.FieldEqualFold(FieldNickname, v))
  403. }
  404. // NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
  405. func NicknameContainsFold(v string) predicate.WxCardUser {
  406. return predicate.WxCardUser(sql.FieldContainsFold(FieldNickname, v))
  407. }
  408. // RemarkEQ applies the EQ predicate on the "remark" field.
  409. func RemarkEQ(v string) predicate.WxCardUser {
  410. return predicate.WxCardUser(sql.FieldEQ(FieldRemark, v))
  411. }
  412. // RemarkNEQ applies the NEQ predicate on the "remark" field.
  413. func RemarkNEQ(v string) predicate.WxCardUser {
  414. return predicate.WxCardUser(sql.FieldNEQ(FieldRemark, v))
  415. }
  416. // RemarkIn applies the In predicate on the "remark" field.
  417. func RemarkIn(vs ...string) predicate.WxCardUser {
  418. return predicate.WxCardUser(sql.FieldIn(FieldRemark, vs...))
  419. }
  420. // RemarkNotIn applies the NotIn predicate on the "remark" field.
  421. func RemarkNotIn(vs ...string) predicate.WxCardUser {
  422. return predicate.WxCardUser(sql.FieldNotIn(FieldRemark, vs...))
  423. }
  424. // RemarkGT applies the GT predicate on the "remark" field.
  425. func RemarkGT(v string) predicate.WxCardUser {
  426. return predicate.WxCardUser(sql.FieldGT(FieldRemark, v))
  427. }
  428. // RemarkGTE applies the GTE predicate on the "remark" field.
  429. func RemarkGTE(v string) predicate.WxCardUser {
  430. return predicate.WxCardUser(sql.FieldGTE(FieldRemark, v))
  431. }
  432. // RemarkLT applies the LT predicate on the "remark" field.
  433. func RemarkLT(v string) predicate.WxCardUser {
  434. return predicate.WxCardUser(sql.FieldLT(FieldRemark, v))
  435. }
  436. // RemarkLTE applies the LTE predicate on the "remark" field.
  437. func RemarkLTE(v string) predicate.WxCardUser {
  438. return predicate.WxCardUser(sql.FieldLTE(FieldRemark, v))
  439. }
  440. // RemarkContains applies the Contains predicate on the "remark" field.
  441. func RemarkContains(v string) predicate.WxCardUser {
  442. return predicate.WxCardUser(sql.FieldContains(FieldRemark, v))
  443. }
  444. // RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
  445. func RemarkHasPrefix(v string) predicate.WxCardUser {
  446. return predicate.WxCardUser(sql.FieldHasPrefix(FieldRemark, v))
  447. }
  448. // RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
  449. func RemarkHasSuffix(v string) predicate.WxCardUser {
  450. return predicate.WxCardUser(sql.FieldHasSuffix(FieldRemark, v))
  451. }
  452. // RemarkEqualFold applies the EqualFold predicate on the "remark" field.
  453. func RemarkEqualFold(v string) predicate.WxCardUser {
  454. return predicate.WxCardUser(sql.FieldEqualFold(FieldRemark, v))
  455. }
  456. // RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
  457. func RemarkContainsFold(v string) predicate.WxCardUser {
  458. return predicate.WxCardUser(sql.FieldContainsFold(FieldRemark, v))
  459. }
  460. // PhoneEQ applies the EQ predicate on the "phone" field.
  461. func PhoneEQ(v string) predicate.WxCardUser {
  462. return predicate.WxCardUser(sql.FieldEQ(FieldPhone, v))
  463. }
  464. // PhoneNEQ applies the NEQ predicate on the "phone" field.
  465. func PhoneNEQ(v string) predicate.WxCardUser {
  466. return predicate.WxCardUser(sql.FieldNEQ(FieldPhone, v))
  467. }
  468. // PhoneIn applies the In predicate on the "phone" field.
  469. func PhoneIn(vs ...string) predicate.WxCardUser {
  470. return predicate.WxCardUser(sql.FieldIn(FieldPhone, vs...))
  471. }
  472. // PhoneNotIn applies the NotIn predicate on the "phone" field.
  473. func PhoneNotIn(vs ...string) predicate.WxCardUser {
  474. return predicate.WxCardUser(sql.FieldNotIn(FieldPhone, vs...))
  475. }
  476. // PhoneGT applies the GT predicate on the "phone" field.
  477. func PhoneGT(v string) predicate.WxCardUser {
  478. return predicate.WxCardUser(sql.FieldGT(FieldPhone, v))
  479. }
  480. // PhoneGTE applies the GTE predicate on the "phone" field.
  481. func PhoneGTE(v string) predicate.WxCardUser {
  482. return predicate.WxCardUser(sql.FieldGTE(FieldPhone, v))
  483. }
  484. // PhoneLT applies the LT predicate on the "phone" field.
  485. func PhoneLT(v string) predicate.WxCardUser {
  486. return predicate.WxCardUser(sql.FieldLT(FieldPhone, v))
  487. }
  488. // PhoneLTE applies the LTE predicate on the "phone" field.
  489. func PhoneLTE(v string) predicate.WxCardUser {
  490. return predicate.WxCardUser(sql.FieldLTE(FieldPhone, v))
  491. }
  492. // PhoneContains applies the Contains predicate on the "phone" field.
  493. func PhoneContains(v string) predicate.WxCardUser {
  494. return predicate.WxCardUser(sql.FieldContains(FieldPhone, v))
  495. }
  496. // PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
  497. func PhoneHasPrefix(v string) predicate.WxCardUser {
  498. return predicate.WxCardUser(sql.FieldHasPrefix(FieldPhone, v))
  499. }
  500. // PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
  501. func PhoneHasSuffix(v string) predicate.WxCardUser {
  502. return predicate.WxCardUser(sql.FieldHasSuffix(FieldPhone, v))
  503. }
  504. // PhoneEqualFold applies the EqualFold predicate on the "phone" field.
  505. func PhoneEqualFold(v string) predicate.WxCardUser {
  506. return predicate.WxCardUser(sql.FieldEqualFold(FieldPhone, v))
  507. }
  508. // PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
  509. func PhoneContainsFold(v string) predicate.WxCardUser {
  510. return predicate.WxCardUser(sql.FieldContainsFold(FieldPhone, v))
  511. }
  512. // OpenIDEQ applies the EQ predicate on the "open_id" field.
  513. func OpenIDEQ(v string) predicate.WxCardUser {
  514. return predicate.WxCardUser(sql.FieldEQ(FieldOpenID, v))
  515. }
  516. // OpenIDNEQ applies the NEQ predicate on the "open_id" field.
  517. func OpenIDNEQ(v string) predicate.WxCardUser {
  518. return predicate.WxCardUser(sql.FieldNEQ(FieldOpenID, v))
  519. }
  520. // OpenIDIn applies the In predicate on the "open_id" field.
  521. func OpenIDIn(vs ...string) predicate.WxCardUser {
  522. return predicate.WxCardUser(sql.FieldIn(FieldOpenID, vs...))
  523. }
  524. // OpenIDNotIn applies the NotIn predicate on the "open_id" field.
  525. func OpenIDNotIn(vs ...string) predicate.WxCardUser {
  526. return predicate.WxCardUser(sql.FieldNotIn(FieldOpenID, vs...))
  527. }
  528. // OpenIDGT applies the GT predicate on the "open_id" field.
  529. func OpenIDGT(v string) predicate.WxCardUser {
  530. return predicate.WxCardUser(sql.FieldGT(FieldOpenID, v))
  531. }
  532. // OpenIDGTE applies the GTE predicate on the "open_id" field.
  533. func OpenIDGTE(v string) predicate.WxCardUser {
  534. return predicate.WxCardUser(sql.FieldGTE(FieldOpenID, v))
  535. }
  536. // OpenIDLT applies the LT predicate on the "open_id" field.
  537. func OpenIDLT(v string) predicate.WxCardUser {
  538. return predicate.WxCardUser(sql.FieldLT(FieldOpenID, v))
  539. }
  540. // OpenIDLTE applies the LTE predicate on the "open_id" field.
  541. func OpenIDLTE(v string) predicate.WxCardUser {
  542. return predicate.WxCardUser(sql.FieldLTE(FieldOpenID, v))
  543. }
  544. // OpenIDContains applies the Contains predicate on the "open_id" field.
  545. func OpenIDContains(v string) predicate.WxCardUser {
  546. return predicate.WxCardUser(sql.FieldContains(FieldOpenID, v))
  547. }
  548. // OpenIDHasPrefix applies the HasPrefix predicate on the "open_id" field.
  549. func OpenIDHasPrefix(v string) predicate.WxCardUser {
  550. return predicate.WxCardUser(sql.FieldHasPrefix(FieldOpenID, v))
  551. }
  552. // OpenIDHasSuffix applies the HasSuffix predicate on the "open_id" field.
  553. func OpenIDHasSuffix(v string) predicate.WxCardUser {
  554. return predicate.WxCardUser(sql.FieldHasSuffix(FieldOpenID, v))
  555. }
  556. // OpenIDEqualFold applies the EqualFold predicate on the "open_id" field.
  557. func OpenIDEqualFold(v string) predicate.WxCardUser {
  558. return predicate.WxCardUser(sql.FieldEqualFold(FieldOpenID, v))
  559. }
  560. // OpenIDContainsFold applies the ContainsFold predicate on the "open_id" field.
  561. func OpenIDContainsFold(v string) predicate.WxCardUser {
  562. return predicate.WxCardUser(sql.FieldContainsFold(FieldOpenID, v))
  563. }
  564. // UnionIDEQ applies the EQ predicate on the "union_id" field.
  565. func UnionIDEQ(v string) predicate.WxCardUser {
  566. return predicate.WxCardUser(sql.FieldEQ(FieldUnionID, v))
  567. }
  568. // UnionIDNEQ applies the NEQ predicate on the "union_id" field.
  569. func UnionIDNEQ(v string) predicate.WxCardUser {
  570. return predicate.WxCardUser(sql.FieldNEQ(FieldUnionID, v))
  571. }
  572. // UnionIDIn applies the In predicate on the "union_id" field.
  573. func UnionIDIn(vs ...string) predicate.WxCardUser {
  574. return predicate.WxCardUser(sql.FieldIn(FieldUnionID, vs...))
  575. }
  576. // UnionIDNotIn applies the NotIn predicate on the "union_id" field.
  577. func UnionIDNotIn(vs ...string) predicate.WxCardUser {
  578. return predicate.WxCardUser(sql.FieldNotIn(FieldUnionID, vs...))
  579. }
  580. // UnionIDGT applies the GT predicate on the "union_id" field.
  581. func UnionIDGT(v string) predicate.WxCardUser {
  582. return predicate.WxCardUser(sql.FieldGT(FieldUnionID, v))
  583. }
  584. // UnionIDGTE applies the GTE predicate on the "union_id" field.
  585. func UnionIDGTE(v string) predicate.WxCardUser {
  586. return predicate.WxCardUser(sql.FieldGTE(FieldUnionID, v))
  587. }
  588. // UnionIDLT applies the LT predicate on the "union_id" field.
  589. func UnionIDLT(v string) predicate.WxCardUser {
  590. return predicate.WxCardUser(sql.FieldLT(FieldUnionID, v))
  591. }
  592. // UnionIDLTE applies the LTE predicate on the "union_id" field.
  593. func UnionIDLTE(v string) predicate.WxCardUser {
  594. return predicate.WxCardUser(sql.FieldLTE(FieldUnionID, v))
  595. }
  596. // UnionIDContains applies the Contains predicate on the "union_id" field.
  597. func UnionIDContains(v string) predicate.WxCardUser {
  598. return predicate.WxCardUser(sql.FieldContains(FieldUnionID, v))
  599. }
  600. // UnionIDHasPrefix applies the HasPrefix predicate on the "union_id" field.
  601. func UnionIDHasPrefix(v string) predicate.WxCardUser {
  602. return predicate.WxCardUser(sql.FieldHasPrefix(FieldUnionID, v))
  603. }
  604. // UnionIDHasSuffix applies the HasSuffix predicate on the "union_id" field.
  605. func UnionIDHasSuffix(v string) predicate.WxCardUser {
  606. return predicate.WxCardUser(sql.FieldHasSuffix(FieldUnionID, v))
  607. }
  608. // UnionIDEqualFold applies the EqualFold predicate on the "union_id" field.
  609. func UnionIDEqualFold(v string) predicate.WxCardUser {
  610. return predicate.WxCardUser(sql.FieldEqualFold(FieldUnionID, v))
  611. }
  612. // UnionIDContainsFold applies the ContainsFold predicate on the "union_id" field.
  613. func UnionIDContainsFold(v string) predicate.WxCardUser {
  614. return predicate.WxCardUser(sql.FieldContainsFold(FieldUnionID, v))
  615. }
  616. // SessionKeyEQ applies the EQ predicate on the "session_key" field.
  617. func SessionKeyEQ(v string) predicate.WxCardUser {
  618. return predicate.WxCardUser(sql.FieldEQ(FieldSessionKey, v))
  619. }
  620. // SessionKeyNEQ applies the NEQ predicate on the "session_key" field.
  621. func SessionKeyNEQ(v string) predicate.WxCardUser {
  622. return predicate.WxCardUser(sql.FieldNEQ(FieldSessionKey, v))
  623. }
  624. // SessionKeyIn applies the In predicate on the "session_key" field.
  625. func SessionKeyIn(vs ...string) predicate.WxCardUser {
  626. return predicate.WxCardUser(sql.FieldIn(FieldSessionKey, vs...))
  627. }
  628. // SessionKeyNotIn applies the NotIn predicate on the "session_key" field.
  629. func SessionKeyNotIn(vs ...string) predicate.WxCardUser {
  630. return predicate.WxCardUser(sql.FieldNotIn(FieldSessionKey, vs...))
  631. }
  632. // SessionKeyGT applies the GT predicate on the "session_key" field.
  633. func SessionKeyGT(v string) predicate.WxCardUser {
  634. return predicate.WxCardUser(sql.FieldGT(FieldSessionKey, v))
  635. }
  636. // SessionKeyGTE applies the GTE predicate on the "session_key" field.
  637. func SessionKeyGTE(v string) predicate.WxCardUser {
  638. return predicate.WxCardUser(sql.FieldGTE(FieldSessionKey, v))
  639. }
  640. // SessionKeyLT applies the LT predicate on the "session_key" field.
  641. func SessionKeyLT(v string) predicate.WxCardUser {
  642. return predicate.WxCardUser(sql.FieldLT(FieldSessionKey, v))
  643. }
  644. // SessionKeyLTE applies the LTE predicate on the "session_key" field.
  645. func SessionKeyLTE(v string) predicate.WxCardUser {
  646. return predicate.WxCardUser(sql.FieldLTE(FieldSessionKey, v))
  647. }
  648. // SessionKeyContains applies the Contains predicate on the "session_key" field.
  649. func SessionKeyContains(v string) predicate.WxCardUser {
  650. return predicate.WxCardUser(sql.FieldContains(FieldSessionKey, v))
  651. }
  652. // SessionKeyHasPrefix applies the HasPrefix predicate on the "session_key" field.
  653. func SessionKeyHasPrefix(v string) predicate.WxCardUser {
  654. return predicate.WxCardUser(sql.FieldHasPrefix(FieldSessionKey, v))
  655. }
  656. // SessionKeyHasSuffix applies the HasSuffix predicate on the "session_key" field.
  657. func SessionKeyHasSuffix(v string) predicate.WxCardUser {
  658. return predicate.WxCardUser(sql.FieldHasSuffix(FieldSessionKey, v))
  659. }
  660. // SessionKeyEqualFold applies the EqualFold predicate on the "session_key" field.
  661. func SessionKeyEqualFold(v string) predicate.WxCardUser {
  662. return predicate.WxCardUser(sql.FieldEqualFold(FieldSessionKey, v))
  663. }
  664. // SessionKeyContainsFold applies the ContainsFold predicate on the "session_key" field.
  665. func SessionKeyContainsFold(v string) predicate.WxCardUser {
  666. return predicate.WxCardUser(sql.FieldContainsFold(FieldSessionKey, v))
  667. }
  668. // IsVipEQ applies the EQ predicate on the "is_vip" field.
  669. func IsVipEQ(v int) predicate.WxCardUser {
  670. return predicate.WxCardUser(sql.FieldEQ(FieldIsVip, v))
  671. }
  672. // IsVipNEQ applies the NEQ predicate on the "is_vip" field.
  673. func IsVipNEQ(v int) predicate.WxCardUser {
  674. return predicate.WxCardUser(sql.FieldNEQ(FieldIsVip, v))
  675. }
  676. // IsVipIn applies the In predicate on the "is_vip" field.
  677. func IsVipIn(vs ...int) predicate.WxCardUser {
  678. return predicate.WxCardUser(sql.FieldIn(FieldIsVip, vs...))
  679. }
  680. // IsVipNotIn applies the NotIn predicate on the "is_vip" field.
  681. func IsVipNotIn(vs ...int) predicate.WxCardUser {
  682. return predicate.WxCardUser(sql.FieldNotIn(FieldIsVip, vs...))
  683. }
  684. // IsVipGT applies the GT predicate on the "is_vip" field.
  685. func IsVipGT(v int) predicate.WxCardUser {
  686. return predicate.WxCardUser(sql.FieldGT(FieldIsVip, v))
  687. }
  688. // IsVipGTE applies the GTE predicate on the "is_vip" field.
  689. func IsVipGTE(v int) predicate.WxCardUser {
  690. return predicate.WxCardUser(sql.FieldGTE(FieldIsVip, v))
  691. }
  692. // IsVipLT applies the LT predicate on the "is_vip" field.
  693. func IsVipLT(v int) predicate.WxCardUser {
  694. return predicate.WxCardUser(sql.FieldLT(FieldIsVip, v))
  695. }
  696. // IsVipLTE applies the LTE predicate on the "is_vip" field.
  697. func IsVipLTE(v int) predicate.WxCardUser {
  698. return predicate.WxCardUser(sql.FieldLTE(FieldIsVip, v))
  699. }
  700. // And groups predicates with the AND operator between them.
  701. func And(predicates ...predicate.WxCardUser) predicate.WxCardUser {
  702. return predicate.WxCardUser(sql.AndPredicates(predicates...))
  703. }
  704. // Or groups predicates with the OR operator between them.
  705. func Or(predicates ...predicate.WxCardUser) predicate.WxCardUser {
  706. return predicate.WxCardUser(sql.OrPredicates(predicates...))
  707. }
  708. // Not applies the not operator on the given predicate.
  709. func Not(p predicate.WxCardUser) predicate.WxCardUser {
  710. return predicate.WxCardUser(sql.NotPredicates(p))
  711. }