where.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. // Code generated by ent, DO NOT EDIT.
  2. package wxcardvisit
  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.WxCardVisit {
  10. return predicate.WxCardVisit(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.WxCardVisit {
  14. return predicate.WxCardVisit(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.WxCardVisit {
  18. return predicate.WxCardVisit(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.WxCardVisit {
  22. return predicate.WxCardVisit(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.WxCardVisit {
  26. return predicate.WxCardVisit(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.WxCardVisit {
  30. return predicate.WxCardVisit(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.WxCardVisit {
  34. return predicate.WxCardVisit(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.WxCardVisit {
  38. return predicate.WxCardVisit(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.WxCardVisit {
  42. return predicate.WxCardVisit(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.WxCardVisit {
  46. return predicate.WxCardVisit(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.WxCardVisit {
  50. return predicate.WxCardVisit(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.WxCardVisit {
  54. return predicate.WxCardVisit(sql.FieldEQ(FieldDeletedAt, v))
  55. }
  56. // UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
  57. func UserID(v uint64) predicate.WxCardVisit {
  58. return predicate.WxCardVisit(sql.FieldEQ(FieldUserID, v))
  59. }
  60. // BotID applies equality check predicate on the "bot_id" field. It's identical to BotIDEQ.
  61. func BotID(v uint64) predicate.WxCardVisit {
  62. return predicate.WxCardVisit(sql.FieldEQ(FieldBotID, v))
  63. }
  64. // BotType applies equality check predicate on the "bot_type" field. It's identical to BotTypeEQ.
  65. func BotType(v uint8) predicate.WxCardVisit {
  66. return predicate.WxCardVisit(sql.FieldEQ(FieldBotType, v))
  67. }
  68. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  69. func CreatedAtEQ(v time.Time) predicate.WxCardVisit {
  70. return predicate.WxCardVisit(sql.FieldEQ(FieldCreatedAt, v))
  71. }
  72. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  73. func CreatedAtNEQ(v time.Time) predicate.WxCardVisit {
  74. return predicate.WxCardVisit(sql.FieldNEQ(FieldCreatedAt, v))
  75. }
  76. // CreatedAtIn applies the In predicate on the "created_at" field.
  77. func CreatedAtIn(vs ...time.Time) predicate.WxCardVisit {
  78. return predicate.WxCardVisit(sql.FieldIn(FieldCreatedAt, vs...))
  79. }
  80. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  81. func CreatedAtNotIn(vs ...time.Time) predicate.WxCardVisit {
  82. return predicate.WxCardVisit(sql.FieldNotIn(FieldCreatedAt, vs...))
  83. }
  84. // CreatedAtGT applies the GT predicate on the "created_at" field.
  85. func CreatedAtGT(v time.Time) predicate.WxCardVisit {
  86. return predicate.WxCardVisit(sql.FieldGT(FieldCreatedAt, v))
  87. }
  88. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  89. func CreatedAtGTE(v time.Time) predicate.WxCardVisit {
  90. return predicate.WxCardVisit(sql.FieldGTE(FieldCreatedAt, v))
  91. }
  92. // CreatedAtLT applies the LT predicate on the "created_at" field.
  93. func CreatedAtLT(v time.Time) predicate.WxCardVisit {
  94. return predicate.WxCardVisit(sql.FieldLT(FieldCreatedAt, v))
  95. }
  96. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  97. func CreatedAtLTE(v time.Time) predicate.WxCardVisit {
  98. return predicate.WxCardVisit(sql.FieldLTE(FieldCreatedAt, v))
  99. }
  100. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  101. func UpdatedAtEQ(v time.Time) predicate.WxCardVisit {
  102. return predicate.WxCardVisit(sql.FieldEQ(FieldUpdatedAt, v))
  103. }
  104. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  105. func UpdatedAtNEQ(v time.Time) predicate.WxCardVisit {
  106. return predicate.WxCardVisit(sql.FieldNEQ(FieldUpdatedAt, v))
  107. }
  108. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  109. func UpdatedAtIn(vs ...time.Time) predicate.WxCardVisit {
  110. return predicate.WxCardVisit(sql.FieldIn(FieldUpdatedAt, vs...))
  111. }
  112. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  113. func UpdatedAtNotIn(vs ...time.Time) predicate.WxCardVisit {
  114. return predicate.WxCardVisit(sql.FieldNotIn(FieldUpdatedAt, vs...))
  115. }
  116. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  117. func UpdatedAtGT(v time.Time) predicate.WxCardVisit {
  118. return predicate.WxCardVisit(sql.FieldGT(FieldUpdatedAt, v))
  119. }
  120. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  121. func UpdatedAtGTE(v time.Time) predicate.WxCardVisit {
  122. return predicate.WxCardVisit(sql.FieldGTE(FieldUpdatedAt, v))
  123. }
  124. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  125. func UpdatedAtLT(v time.Time) predicate.WxCardVisit {
  126. return predicate.WxCardVisit(sql.FieldLT(FieldUpdatedAt, v))
  127. }
  128. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  129. func UpdatedAtLTE(v time.Time) predicate.WxCardVisit {
  130. return predicate.WxCardVisit(sql.FieldLTE(FieldUpdatedAt, v))
  131. }
  132. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  133. func DeletedAtEQ(v time.Time) predicate.WxCardVisit {
  134. return predicate.WxCardVisit(sql.FieldEQ(FieldDeletedAt, v))
  135. }
  136. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  137. func DeletedAtNEQ(v time.Time) predicate.WxCardVisit {
  138. return predicate.WxCardVisit(sql.FieldNEQ(FieldDeletedAt, v))
  139. }
  140. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  141. func DeletedAtIn(vs ...time.Time) predicate.WxCardVisit {
  142. return predicate.WxCardVisit(sql.FieldIn(FieldDeletedAt, vs...))
  143. }
  144. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  145. func DeletedAtNotIn(vs ...time.Time) predicate.WxCardVisit {
  146. return predicate.WxCardVisit(sql.FieldNotIn(FieldDeletedAt, vs...))
  147. }
  148. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  149. func DeletedAtGT(v time.Time) predicate.WxCardVisit {
  150. return predicate.WxCardVisit(sql.FieldGT(FieldDeletedAt, v))
  151. }
  152. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  153. func DeletedAtGTE(v time.Time) predicate.WxCardVisit {
  154. return predicate.WxCardVisit(sql.FieldGTE(FieldDeletedAt, v))
  155. }
  156. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  157. func DeletedAtLT(v time.Time) predicate.WxCardVisit {
  158. return predicate.WxCardVisit(sql.FieldLT(FieldDeletedAt, v))
  159. }
  160. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  161. func DeletedAtLTE(v time.Time) predicate.WxCardVisit {
  162. return predicate.WxCardVisit(sql.FieldLTE(FieldDeletedAt, v))
  163. }
  164. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  165. func DeletedAtIsNil() predicate.WxCardVisit {
  166. return predicate.WxCardVisit(sql.FieldIsNull(FieldDeletedAt))
  167. }
  168. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  169. func DeletedAtNotNil() predicate.WxCardVisit {
  170. return predicate.WxCardVisit(sql.FieldNotNull(FieldDeletedAt))
  171. }
  172. // UserIDEQ applies the EQ predicate on the "user_id" field.
  173. func UserIDEQ(v uint64) predicate.WxCardVisit {
  174. return predicate.WxCardVisit(sql.FieldEQ(FieldUserID, v))
  175. }
  176. // UserIDNEQ applies the NEQ predicate on the "user_id" field.
  177. func UserIDNEQ(v uint64) predicate.WxCardVisit {
  178. return predicate.WxCardVisit(sql.FieldNEQ(FieldUserID, v))
  179. }
  180. // UserIDIn applies the In predicate on the "user_id" field.
  181. func UserIDIn(vs ...uint64) predicate.WxCardVisit {
  182. return predicate.WxCardVisit(sql.FieldIn(FieldUserID, vs...))
  183. }
  184. // UserIDNotIn applies the NotIn predicate on the "user_id" field.
  185. func UserIDNotIn(vs ...uint64) predicate.WxCardVisit {
  186. return predicate.WxCardVisit(sql.FieldNotIn(FieldUserID, vs...))
  187. }
  188. // UserIDGT applies the GT predicate on the "user_id" field.
  189. func UserIDGT(v uint64) predicate.WxCardVisit {
  190. return predicate.WxCardVisit(sql.FieldGT(FieldUserID, v))
  191. }
  192. // UserIDGTE applies the GTE predicate on the "user_id" field.
  193. func UserIDGTE(v uint64) predicate.WxCardVisit {
  194. return predicate.WxCardVisit(sql.FieldGTE(FieldUserID, v))
  195. }
  196. // UserIDLT applies the LT predicate on the "user_id" field.
  197. func UserIDLT(v uint64) predicate.WxCardVisit {
  198. return predicate.WxCardVisit(sql.FieldLT(FieldUserID, v))
  199. }
  200. // UserIDLTE applies the LTE predicate on the "user_id" field.
  201. func UserIDLTE(v uint64) predicate.WxCardVisit {
  202. return predicate.WxCardVisit(sql.FieldLTE(FieldUserID, v))
  203. }
  204. // UserIDIsNil applies the IsNil predicate on the "user_id" field.
  205. func UserIDIsNil() predicate.WxCardVisit {
  206. return predicate.WxCardVisit(sql.FieldIsNull(FieldUserID))
  207. }
  208. // UserIDNotNil applies the NotNil predicate on the "user_id" field.
  209. func UserIDNotNil() predicate.WxCardVisit {
  210. return predicate.WxCardVisit(sql.FieldNotNull(FieldUserID))
  211. }
  212. // BotIDEQ applies the EQ predicate on the "bot_id" field.
  213. func BotIDEQ(v uint64) predicate.WxCardVisit {
  214. return predicate.WxCardVisit(sql.FieldEQ(FieldBotID, v))
  215. }
  216. // BotIDNEQ applies the NEQ predicate on the "bot_id" field.
  217. func BotIDNEQ(v uint64) predicate.WxCardVisit {
  218. return predicate.WxCardVisit(sql.FieldNEQ(FieldBotID, v))
  219. }
  220. // BotIDIn applies the In predicate on the "bot_id" field.
  221. func BotIDIn(vs ...uint64) predicate.WxCardVisit {
  222. return predicate.WxCardVisit(sql.FieldIn(FieldBotID, vs...))
  223. }
  224. // BotIDNotIn applies the NotIn predicate on the "bot_id" field.
  225. func BotIDNotIn(vs ...uint64) predicate.WxCardVisit {
  226. return predicate.WxCardVisit(sql.FieldNotIn(FieldBotID, vs...))
  227. }
  228. // BotIDGT applies the GT predicate on the "bot_id" field.
  229. func BotIDGT(v uint64) predicate.WxCardVisit {
  230. return predicate.WxCardVisit(sql.FieldGT(FieldBotID, v))
  231. }
  232. // BotIDGTE applies the GTE predicate on the "bot_id" field.
  233. func BotIDGTE(v uint64) predicate.WxCardVisit {
  234. return predicate.WxCardVisit(sql.FieldGTE(FieldBotID, v))
  235. }
  236. // BotIDLT applies the LT predicate on the "bot_id" field.
  237. func BotIDLT(v uint64) predicate.WxCardVisit {
  238. return predicate.WxCardVisit(sql.FieldLT(FieldBotID, v))
  239. }
  240. // BotIDLTE applies the LTE predicate on the "bot_id" field.
  241. func BotIDLTE(v uint64) predicate.WxCardVisit {
  242. return predicate.WxCardVisit(sql.FieldLTE(FieldBotID, v))
  243. }
  244. // BotTypeEQ applies the EQ predicate on the "bot_type" field.
  245. func BotTypeEQ(v uint8) predicate.WxCardVisit {
  246. return predicate.WxCardVisit(sql.FieldEQ(FieldBotType, v))
  247. }
  248. // BotTypeNEQ applies the NEQ predicate on the "bot_type" field.
  249. func BotTypeNEQ(v uint8) predicate.WxCardVisit {
  250. return predicate.WxCardVisit(sql.FieldNEQ(FieldBotType, v))
  251. }
  252. // BotTypeIn applies the In predicate on the "bot_type" field.
  253. func BotTypeIn(vs ...uint8) predicate.WxCardVisit {
  254. return predicate.WxCardVisit(sql.FieldIn(FieldBotType, vs...))
  255. }
  256. // BotTypeNotIn applies the NotIn predicate on the "bot_type" field.
  257. func BotTypeNotIn(vs ...uint8) predicate.WxCardVisit {
  258. return predicate.WxCardVisit(sql.FieldNotIn(FieldBotType, vs...))
  259. }
  260. // BotTypeGT applies the GT predicate on the "bot_type" field.
  261. func BotTypeGT(v uint8) predicate.WxCardVisit {
  262. return predicate.WxCardVisit(sql.FieldGT(FieldBotType, v))
  263. }
  264. // BotTypeGTE applies the GTE predicate on the "bot_type" field.
  265. func BotTypeGTE(v uint8) predicate.WxCardVisit {
  266. return predicate.WxCardVisit(sql.FieldGTE(FieldBotType, v))
  267. }
  268. // BotTypeLT applies the LT predicate on the "bot_type" field.
  269. func BotTypeLT(v uint8) predicate.WxCardVisit {
  270. return predicate.WxCardVisit(sql.FieldLT(FieldBotType, v))
  271. }
  272. // BotTypeLTE applies the LTE predicate on the "bot_type" field.
  273. func BotTypeLTE(v uint8) predicate.WxCardVisit {
  274. return predicate.WxCardVisit(sql.FieldLTE(FieldBotType, v))
  275. }
  276. // And groups predicates with the AND operator between them.
  277. func And(predicates ...predicate.WxCardVisit) predicate.WxCardVisit {
  278. return predicate.WxCardVisit(sql.AndPredicates(predicates...))
  279. }
  280. // Or groups predicates with the OR operator between them.
  281. func Or(predicates ...predicate.WxCardVisit) predicate.WxCardVisit {
  282. return predicate.WxCardVisit(sql.OrPredicates(predicates...))
  283. }
  284. // Not applies the not operator on the given predicate.
  285. func Not(p predicate.WxCardVisit) predicate.WxCardVisit {
  286. return predicate.WxCardVisit(sql.NotPredicates(p))
  287. }