where.go 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  1. // Code generated by ent, DO NOT EDIT.
  2. package messagerecords
  3. import (
  4. "time"
  5. "wechat-api/ent/predicate"
  6. "entgo.io/ent/dialect/sql"
  7. "entgo.io/ent/dialect/sql/sqlgraph"
  8. )
  9. // ID filters vertices based on their ID field.
  10. func ID(id uint64) predicate.MessageRecords {
  11. return predicate.MessageRecords(sql.FieldEQ(FieldID, id))
  12. }
  13. // IDEQ applies the EQ predicate on the ID field.
  14. func IDEQ(id uint64) predicate.MessageRecords {
  15. return predicate.MessageRecords(sql.FieldEQ(FieldID, id))
  16. }
  17. // IDNEQ applies the NEQ predicate on the ID field.
  18. func IDNEQ(id uint64) predicate.MessageRecords {
  19. return predicate.MessageRecords(sql.FieldNEQ(FieldID, id))
  20. }
  21. // IDIn applies the In predicate on the ID field.
  22. func IDIn(ids ...uint64) predicate.MessageRecords {
  23. return predicate.MessageRecords(sql.FieldIn(FieldID, ids...))
  24. }
  25. // IDNotIn applies the NotIn predicate on the ID field.
  26. func IDNotIn(ids ...uint64) predicate.MessageRecords {
  27. return predicate.MessageRecords(sql.FieldNotIn(FieldID, ids...))
  28. }
  29. // IDGT applies the GT predicate on the ID field.
  30. func IDGT(id uint64) predicate.MessageRecords {
  31. return predicate.MessageRecords(sql.FieldGT(FieldID, id))
  32. }
  33. // IDGTE applies the GTE predicate on the ID field.
  34. func IDGTE(id uint64) predicate.MessageRecords {
  35. return predicate.MessageRecords(sql.FieldGTE(FieldID, id))
  36. }
  37. // IDLT applies the LT predicate on the ID field.
  38. func IDLT(id uint64) predicate.MessageRecords {
  39. return predicate.MessageRecords(sql.FieldLT(FieldID, id))
  40. }
  41. // IDLTE applies the LTE predicate on the ID field.
  42. func IDLTE(id uint64) predicate.MessageRecords {
  43. return predicate.MessageRecords(sql.FieldLTE(FieldID, id))
  44. }
  45. // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
  46. func CreatedAt(v time.Time) predicate.MessageRecords {
  47. return predicate.MessageRecords(sql.FieldEQ(FieldCreatedAt, v))
  48. }
  49. // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
  50. func UpdatedAt(v time.Time) predicate.MessageRecords {
  51. return predicate.MessageRecords(sql.FieldEQ(FieldUpdatedAt, v))
  52. }
  53. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  54. func Status(v uint8) predicate.MessageRecords {
  55. return predicate.MessageRecords(sql.FieldEQ(FieldStatus, v))
  56. }
  57. // BotWxid applies equality check predicate on the "bot_wxid" field. It's identical to BotWxidEQ.
  58. func BotWxid(v string) predicate.MessageRecords {
  59. return predicate.MessageRecords(sql.FieldEQ(FieldBotWxid, v))
  60. }
  61. // ContactID applies equality check predicate on the "contact_id" field. It's identical to ContactIDEQ.
  62. func ContactID(v uint64) predicate.MessageRecords {
  63. return predicate.MessageRecords(sql.FieldEQ(FieldContactID, v))
  64. }
  65. // ContactType applies equality check predicate on the "contact_type" field. It's identical to ContactTypeEQ.
  66. func ContactType(v int) predicate.MessageRecords {
  67. return predicate.MessageRecords(sql.FieldEQ(FieldContactType, v))
  68. }
  69. // ContactWxid applies equality check predicate on the "contact_wxid" field. It's identical to ContactWxidEQ.
  70. func ContactWxid(v string) predicate.MessageRecords {
  71. return predicate.MessageRecords(sql.FieldEQ(FieldContactWxid, v))
  72. }
  73. // ContentType applies equality check predicate on the "content_type" field. It's identical to ContentTypeEQ.
  74. func ContentType(v int) predicate.MessageRecords {
  75. return predicate.MessageRecords(sql.FieldEQ(FieldContentType, v))
  76. }
  77. // Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
  78. func Content(v string) predicate.MessageRecords {
  79. return predicate.MessageRecords(sql.FieldEQ(FieldContent, v))
  80. }
  81. // ErrorDetail applies equality check predicate on the "error_detail" field. It's identical to ErrorDetailEQ.
  82. func ErrorDetail(v string) predicate.MessageRecords {
  83. return predicate.MessageRecords(sql.FieldEQ(FieldErrorDetail, v))
  84. }
  85. // SendTime applies equality check predicate on the "send_time" field. It's identical to SendTimeEQ.
  86. func SendTime(v time.Time) predicate.MessageRecords {
  87. return predicate.MessageRecords(sql.FieldEQ(FieldSendTime, v))
  88. }
  89. // SourceType applies equality check predicate on the "source_type" field. It's identical to SourceTypeEQ.
  90. func SourceType(v int) predicate.MessageRecords {
  91. return predicate.MessageRecords(sql.FieldEQ(FieldSourceType, v))
  92. }
  93. // SourceID applies equality check predicate on the "source_id" field. It's identical to SourceIDEQ.
  94. func SourceID(v uint64) predicate.MessageRecords {
  95. return predicate.MessageRecords(sql.FieldEQ(FieldSourceID, v))
  96. }
  97. // SubSourceID applies equality check predicate on the "sub_source_id" field. It's identical to SubSourceIDEQ.
  98. func SubSourceID(v uint64) predicate.MessageRecords {
  99. return predicate.MessageRecords(sql.FieldEQ(FieldSubSourceID, v))
  100. }
  101. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  102. func OrganizationID(v uint64) predicate.MessageRecords {
  103. return predicate.MessageRecords(sql.FieldEQ(FieldOrganizationID, v))
  104. }
  105. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  106. func CreatedAtEQ(v time.Time) predicate.MessageRecords {
  107. return predicate.MessageRecords(sql.FieldEQ(FieldCreatedAt, v))
  108. }
  109. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  110. func CreatedAtNEQ(v time.Time) predicate.MessageRecords {
  111. return predicate.MessageRecords(sql.FieldNEQ(FieldCreatedAt, v))
  112. }
  113. // CreatedAtIn applies the In predicate on the "created_at" field.
  114. func CreatedAtIn(vs ...time.Time) predicate.MessageRecords {
  115. return predicate.MessageRecords(sql.FieldIn(FieldCreatedAt, vs...))
  116. }
  117. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  118. func CreatedAtNotIn(vs ...time.Time) predicate.MessageRecords {
  119. return predicate.MessageRecords(sql.FieldNotIn(FieldCreatedAt, vs...))
  120. }
  121. // CreatedAtGT applies the GT predicate on the "created_at" field.
  122. func CreatedAtGT(v time.Time) predicate.MessageRecords {
  123. return predicate.MessageRecords(sql.FieldGT(FieldCreatedAt, v))
  124. }
  125. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  126. func CreatedAtGTE(v time.Time) predicate.MessageRecords {
  127. return predicate.MessageRecords(sql.FieldGTE(FieldCreatedAt, v))
  128. }
  129. // CreatedAtLT applies the LT predicate on the "created_at" field.
  130. func CreatedAtLT(v time.Time) predicate.MessageRecords {
  131. return predicate.MessageRecords(sql.FieldLT(FieldCreatedAt, v))
  132. }
  133. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  134. func CreatedAtLTE(v time.Time) predicate.MessageRecords {
  135. return predicate.MessageRecords(sql.FieldLTE(FieldCreatedAt, v))
  136. }
  137. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  138. func UpdatedAtEQ(v time.Time) predicate.MessageRecords {
  139. return predicate.MessageRecords(sql.FieldEQ(FieldUpdatedAt, v))
  140. }
  141. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  142. func UpdatedAtNEQ(v time.Time) predicate.MessageRecords {
  143. return predicate.MessageRecords(sql.FieldNEQ(FieldUpdatedAt, v))
  144. }
  145. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  146. func UpdatedAtIn(vs ...time.Time) predicate.MessageRecords {
  147. return predicate.MessageRecords(sql.FieldIn(FieldUpdatedAt, vs...))
  148. }
  149. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  150. func UpdatedAtNotIn(vs ...time.Time) predicate.MessageRecords {
  151. return predicate.MessageRecords(sql.FieldNotIn(FieldUpdatedAt, vs...))
  152. }
  153. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  154. func UpdatedAtGT(v time.Time) predicate.MessageRecords {
  155. return predicate.MessageRecords(sql.FieldGT(FieldUpdatedAt, v))
  156. }
  157. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  158. func UpdatedAtGTE(v time.Time) predicate.MessageRecords {
  159. return predicate.MessageRecords(sql.FieldGTE(FieldUpdatedAt, v))
  160. }
  161. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  162. func UpdatedAtLT(v time.Time) predicate.MessageRecords {
  163. return predicate.MessageRecords(sql.FieldLT(FieldUpdatedAt, v))
  164. }
  165. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  166. func UpdatedAtLTE(v time.Time) predicate.MessageRecords {
  167. return predicate.MessageRecords(sql.FieldLTE(FieldUpdatedAt, v))
  168. }
  169. // StatusEQ applies the EQ predicate on the "status" field.
  170. func StatusEQ(v uint8) predicate.MessageRecords {
  171. return predicate.MessageRecords(sql.FieldEQ(FieldStatus, v))
  172. }
  173. // StatusNEQ applies the NEQ predicate on the "status" field.
  174. func StatusNEQ(v uint8) predicate.MessageRecords {
  175. return predicate.MessageRecords(sql.FieldNEQ(FieldStatus, v))
  176. }
  177. // StatusIn applies the In predicate on the "status" field.
  178. func StatusIn(vs ...uint8) predicate.MessageRecords {
  179. return predicate.MessageRecords(sql.FieldIn(FieldStatus, vs...))
  180. }
  181. // StatusNotIn applies the NotIn predicate on the "status" field.
  182. func StatusNotIn(vs ...uint8) predicate.MessageRecords {
  183. return predicate.MessageRecords(sql.FieldNotIn(FieldStatus, vs...))
  184. }
  185. // StatusGT applies the GT predicate on the "status" field.
  186. func StatusGT(v uint8) predicate.MessageRecords {
  187. return predicate.MessageRecords(sql.FieldGT(FieldStatus, v))
  188. }
  189. // StatusGTE applies the GTE predicate on the "status" field.
  190. func StatusGTE(v uint8) predicate.MessageRecords {
  191. return predicate.MessageRecords(sql.FieldGTE(FieldStatus, v))
  192. }
  193. // StatusLT applies the LT predicate on the "status" field.
  194. func StatusLT(v uint8) predicate.MessageRecords {
  195. return predicate.MessageRecords(sql.FieldLT(FieldStatus, v))
  196. }
  197. // StatusLTE applies the LTE predicate on the "status" field.
  198. func StatusLTE(v uint8) predicate.MessageRecords {
  199. return predicate.MessageRecords(sql.FieldLTE(FieldStatus, v))
  200. }
  201. // StatusIsNil applies the IsNil predicate on the "status" field.
  202. func StatusIsNil() predicate.MessageRecords {
  203. return predicate.MessageRecords(sql.FieldIsNull(FieldStatus))
  204. }
  205. // StatusNotNil applies the NotNil predicate on the "status" field.
  206. func StatusNotNil() predicate.MessageRecords {
  207. return predicate.MessageRecords(sql.FieldNotNull(FieldStatus))
  208. }
  209. // BotWxidEQ applies the EQ predicate on the "bot_wxid" field.
  210. func BotWxidEQ(v string) predicate.MessageRecords {
  211. return predicate.MessageRecords(sql.FieldEQ(FieldBotWxid, v))
  212. }
  213. // BotWxidNEQ applies the NEQ predicate on the "bot_wxid" field.
  214. func BotWxidNEQ(v string) predicate.MessageRecords {
  215. return predicate.MessageRecords(sql.FieldNEQ(FieldBotWxid, v))
  216. }
  217. // BotWxidIn applies the In predicate on the "bot_wxid" field.
  218. func BotWxidIn(vs ...string) predicate.MessageRecords {
  219. return predicate.MessageRecords(sql.FieldIn(FieldBotWxid, vs...))
  220. }
  221. // BotWxidNotIn applies the NotIn predicate on the "bot_wxid" field.
  222. func BotWxidNotIn(vs ...string) predicate.MessageRecords {
  223. return predicate.MessageRecords(sql.FieldNotIn(FieldBotWxid, vs...))
  224. }
  225. // BotWxidGT applies the GT predicate on the "bot_wxid" field.
  226. func BotWxidGT(v string) predicate.MessageRecords {
  227. return predicate.MessageRecords(sql.FieldGT(FieldBotWxid, v))
  228. }
  229. // BotWxidGTE applies the GTE predicate on the "bot_wxid" field.
  230. func BotWxidGTE(v string) predicate.MessageRecords {
  231. return predicate.MessageRecords(sql.FieldGTE(FieldBotWxid, v))
  232. }
  233. // BotWxidLT applies the LT predicate on the "bot_wxid" field.
  234. func BotWxidLT(v string) predicate.MessageRecords {
  235. return predicate.MessageRecords(sql.FieldLT(FieldBotWxid, v))
  236. }
  237. // BotWxidLTE applies the LTE predicate on the "bot_wxid" field.
  238. func BotWxidLTE(v string) predicate.MessageRecords {
  239. return predicate.MessageRecords(sql.FieldLTE(FieldBotWxid, v))
  240. }
  241. // BotWxidContains applies the Contains predicate on the "bot_wxid" field.
  242. func BotWxidContains(v string) predicate.MessageRecords {
  243. return predicate.MessageRecords(sql.FieldContains(FieldBotWxid, v))
  244. }
  245. // BotWxidHasPrefix applies the HasPrefix predicate on the "bot_wxid" field.
  246. func BotWxidHasPrefix(v string) predicate.MessageRecords {
  247. return predicate.MessageRecords(sql.FieldHasPrefix(FieldBotWxid, v))
  248. }
  249. // BotWxidHasSuffix applies the HasSuffix predicate on the "bot_wxid" field.
  250. func BotWxidHasSuffix(v string) predicate.MessageRecords {
  251. return predicate.MessageRecords(sql.FieldHasSuffix(FieldBotWxid, v))
  252. }
  253. // BotWxidEqualFold applies the EqualFold predicate on the "bot_wxid" field.
  254. func BotWxidEqualFold(v string) predicate.MessageRecords {
  255. return predicate.MessageRecords(sql.FieldEqualFold(FieldBotWxid, v))
  256. }
  257. // BotWxidContainsFold applies the ContainsFold predicate on the "bot_wxid" field.
  258. func BotWxidContainsFold(v string) predicate.MessageRecords {
  259. return predicate.MessageRecords(sql.FieldContainsFold(FieldBotWxid, v))
  260. }
  261. // ContactIDEQ applies the EQ predicate on the "contact_id" field.
  262. func ContactIDEQ(v uint64) predicate.MessageRecords {
  263. return predicate.MessageRecords(sql.FieldEQ(FieldContactID, v))
  264. }
  265. // ContactIDNEQ applies the NEQ predicate on the "contact_id" field.
  266. func ContactIDNEQ(v uint64) predicate.MessageRecords {
  267. return predicate.MessageRecords(sql.FieldNEQ(FieldContactID, v))
  268. }
  269. // ContactIDIn applies the In predicate on the "contact_id" field.
  270. func ContactIDIn(vs ...uint64) predicate.MessageRecords {
  271. return predicate.MessageRecords(sql.FieldIn(FieldContactID, vs...))
  272. }
  273. // ContactIDNotIn applies the NotIn predicate on the "contact_id" field.
  274. func ContactIDNotIn(vs ...uint64) predicate.MessageRecords {
  275. return predicate.MessageRecords(sql.FieldNotIn(FieldContactID, vs...))
  276. }
  277. // ContactIDIsNil applies the IsNil predicate on the "contact_id" field.
  278. func ContactIDIsNil() predicate.MessageRecords {
  279. return predicate.MessageRecords(sql.FieldIsNull(FieldContactID))
  280. }
  281. // ContactIDNotNil applies the NotNil predicate on the "contact_id" field.
  282. func ContactIDNotNil() predicate.MessageRecords {
  283. return predicate.MessageRecords(sql.FieldNotNull(FieldContactID))
  284. }
  285. // ContactTypeEQ applies the EQ predicate on the "contact_type" field.
  286. func ContactTypeEQ(v int) predicate.MessageRecords {
  287. return predicate.MessageRecords(sql.FieldEQ(FieldContactType, v))
  288. }
  289. // ContactTypeNEQ applies the NEQ predicate on the "contact_type" field.
  290. func ContactTypeNEQ(v int) predicate.MessageRecords {
  291. return predicate.MessageRecords(sql.FieldNEQ(FieldContactType, v))
  292. }
  293. // ContactTypeIn applies the In predicate on the "contact_type" field.
  294. func ContactTypeIn(vs ...int) predicate.MessageRecords {
  295. return predicate.MessageRecords(sql.FieldIn(FieldContactType, vs...))
  296. }
  297. // ContactTypeNotIn applies the NotIn predicate on the "contact_type" field.
  298. func ContactTypeNotIn(vs ...int) predicate.MessageRecords {
  299. return predicate.MessageRecords(sql.FieldNotIn(FieldContactType, vs...))
  300. }
  301. // ContactTypeGT applies the GT predicate on the "contact_type" field.
  302. func ContactTypeGT(v int) predicate.MessageRecords {
  303. return predicate.MessageRecords(sql.FieldGT(FieldContactType, v))
  304. }
  305. // ContactTypeGTE applies the GTE predicate on the "contact_type" field.
  306. func ContactTypeGTE(v int) predicate.MessageRecords {
  307. return predicate.MessageRecords(sql.FieldGTE(FieldContactType, v))
  308. }
  309. // ContactTypeLT applies the LT predicate on the "contact_type" field.
  310. func ContactTypeLT(v int) predicate.MessageRecords {
  311. return predicate.MessageRecords(sql.FieldLT(FieldContactType, v))
  312. }
  313. // ContactTypeLTE applies the LTE predicate on the "contact_type" field.
  314. func ContactTypeLTE(v int) predicate.MessageRecords {
  315. return predicate.MessageRecords(sql.FieldLTE(FieldContactType, v))
  316. }
  317. // ContactWxidEQ applies the EQ predicate on the "contact_wxid" field.
  318. func ContactWxidEQ(v string) predicate.MessageRecords {
  319. return predicate.MessageRecords(sql.FieldEQ(FieldContactWxid, v))
  320. }
  321. // ContactWxidNEQ applies the NEQ predicate on the "contact_wxid" field.
  322. func ContactWxidNEQ(v string) predicate.MessageRecords {
  323. return predicate.MessageRecords(sql.FieldNEQ(FieldContactWxid, v))
  324. }
  325. // ContactWxidIn applies the In predicate on the "contact_wxid" field.
  326. func ContactWxidIn(vs ...string) predicate.MessageRecords {
  327. return predicate.MessageRecords(sql.FieldIn(FieldContactWxid, vs...))
  328. }
  329. // ContactWxidNotIn applies the NotIn predicate on the "contact_wxid" field.
  330. func ContactWxidNotIn(vs ...string) predicate.MessageRecords {
  331. return predicate.MessageRecords(sql.FieldNotIn(FieldContactWxid, vs...))
  332. }
  333. // ContactWxidGT applies the GT predicate on the "contact_wxid" field.
  334. func ContactWxidGT(v string) predicate.MessageRecords {
  335. return predicate.MessageRecords(sql.FieldGT(FieldContactWxid, v))
  336. }
  337. // ContactWxidGTE applies the GTE predicate on the "contact_wxid" field.
  338. func ContactWxidGTE(v string) predicate.MessageRecords {
  339. return predicate.MessageRecords(sql.FieldGTE(FieldContactWxid, v))
  340. }
  341. // ContactWxidLT applies the LT predicate on the "contact_wxid" field.
  342. func ContactWxidLT(v string) predicate.MessageRecords {
  343. return predicate.MessageRecords(sql.FieldLT(FieldContactWxid, v))
  344. }
  345. // ContactWxidLTE applies the LTE predicate on the "contact_wxid" field.
  346. func ContactWxidLTE(v string) predicate.MessageRecords {
  347. return predicate.MessageRecords(sql.FieldLTE(FieldContactWxid, v))
  348. }
  349. // ContactWxidContains applies the Contains predicate on the "contact_wxid" field.
  350. func ContactWxidContains(v string) predicate.MessageRecords {
  351. return predicate.MessageRecords(sql.FieldContains(FieldContactWxid, v))
  352. }
  353. // ContactWxidHasPrefix applies the HasPrefix predicate on the "contact_wxid" field.
  354. func ContactWxidHasPrefix(v string) predicate.MessageRecords {
  355. return predicate.MessageRecords(sql.FieldHasPrefix(FieldContactWxid, v))
  356. }
  357. // ContactWxidHasSuffix applies the HasSuffix predicate on the "contact_wxid" field.
  358. func ContactWxidHasSuffix(v string) predicate.MessageRecords {
  359. return predicate.MessageRecords(sql.FieldHasSuffix(FieldContactWxid, v))
  360. }
  361. // ContactWxidEqualFold applies the EqualFold predicate on the "contact_wxid" field.
  362. func ContactWxidEqualFold(v string) predicate.MessageRecords {
  363. return predicate.MessageRecords(sql.FieldEqualFold(FieldContactWxid, v))
  364. }
  365. // ContactWxidContainsFold applies the ContainsFold predicate on the "contact_wxid" field.
  366. func ContactWxidContainsFold(v string) predicate.MessageRecords {
  367. return predicate.MessageRecords(sql.FieldContainsFold(FieldContactWxid, v))
  368. }
  369. // ContentTypeEQ applies the EQ predicate on the "content_type" field.
  370. func ContentTypeEQ(v int) predicate.MessageRecords {
  371. return predicate.MessageRecords(sql.FieldEQ(FieldContentType, v))
  372. }
  373. // ContentTypeNEQ applies the NEQ predicate on the "content_type" field.
  374. func ContentTypeNEQ(v int) predicate.MessageRecords {
  375. return predicate.MessageRecords(sql.FieldNEQ(FieldContentType, v))
  376. }
  377. // ContentTypeIn applies the In predicate on the "content_type" field.
  378. func ContentTypeIn(vs ...int) predicate.MessageRecords {
  379. return predicate.MessageRecords(sql.FieldIn(FieldContentType, vs...))
  380. }
  381. // ContentTypeNotIn applies the NotIn predicate on the "content_type" field.
  382. func ContentTypeNotIn(vs ...int) predicate.MessageRecords {
  383. return predicate.MessageRecords(sql.FieldNotIn(FieldContentType, vs...))
  384. }
  385. // ContentTypeGT applies the GT predicate on the "content_type" field.
  386. func ContentTypeGT(v int) predicate.MessageRecords {
  387. return predicate.MessageRecords(sql.FieldGT(FieldContentType, v))
  388. }
  389. // ContentTypeGTE applies the GTE predicate on the "content_type" field.
  390. func ContentTypeGTE(v int) predicate.MessageRecords {
  391. return predicate.MessageRecords(sql.FieldGTE(FieldContentType, v))
  392. }
  393. // ContentTypeLT applies the LT predicate on the "content_type" field.
  394. func ContentTypeLT(v int) predicate.MessageRecords {
  395. return predicate.MessageRecords(sql.FieldLT(FieldContentType, v))
  396. }
  397. // ContentTypeLTE applies the LTE predicate on the "content_type" field.
  398. func ContentTypeLTE(v int) predicate.MessageRecords {
  399. return predicate.MessageRecords(sql.FieldLTE(FieldContentType, v))
  400. }
  401. // ContentEQ applies the EQ predicate on the "content" field.
  402. func ContentEQ(v string) predicate.MessageRecords {
  403. return predicate.MessageRecords(sql.FieldEQ(FieldContent, v))
  404. }
  405. // ContentNEQ applies the NEQ predicate on the "content" field.
  406. func ContentNEQ(v string) predicate.MessageRecords {
  407. return predicate.MessageRecords(sql.FieldNEQ(FieldContent, v))
  408. }
  409. // ContentIn applies the In predicate on the "content" field.
  410. func ContentIn(vs ...string) predicate.MessageRecords {
  411. return predicate.MessageRecords(sql.FieldIn(FieldContent, vs...))
  412. }
  413. // ContentNotIn applies the NotIn predicate on the "content" field.
  414. func ContentNotIn(vs ...string) predicate.MessageRecords {
  415. return predicate.MessageRecords(sql.FieldNotIn(FieldContent, vs...))
  416. }
  417. // ContentGT applies the GT predicate on the "content" field.
  418. func ContentGT(v string) predicate.MessageRecords {
  419. return predicate.MessageRecords(sql.FieldGT(FieldContent, v))
  420. }
  421. // ContentGTE applies the GTE predicate on the "content" field.
  422. func ContentGTE(v string) predicate.MessageRecords {
  423. return predicate.MessageRecords(sql.FieldGTE(FieldContent, v))
  424. }
  425. // ContentLT applies the LT predicate on the "content" field.
  426. func ContentLT(v string) predicate.MessageRecords {
  427. return predicate.MessageRecords(sql.FieldLT(FieldContent, v))
  428. }
  429. // ContentLTE applies the LTE predicate on the "content" field.
  430. func ContentLTE(v string) predicate.MessageRecords {
  431. return predicate.MessageRecords(sql.FieldLTE(FieldContent, v))
  432. }
  433. // ContentContains applies the Contains predicate on the "content" field.
  434. func ContentContains(v string) predicate.MessageRecords {
  435. return predicate.MessageRecords(sql.FieldContains(FieldContent, v))
  436. }
  437. // ContentHasPrefix applies the HasPrefix predicate on the "content" field.
  438. func ContentHasPrefix(v string) predicate.MessageRecords {
  439. return predicate.MessageRecords(sql.FieldHasPrefix(FieldContent, v))
  440. }
  441. // ContentHasSuffix applies the HasSuffix predicate on the "content" field.
  442. func ContentHasSuffix(v string) predicate.MessageRecords {
  443. return predicate.MessageRecords(sql.FieldHasSuffix(FieldContent, v))
  444. }
  445. // ContentEqualFold applies the EqualFold predicate on the "content" field.
  446. func ContentEqualFold(v string) predicate.MessageRecords {
  447. return predicate.MessageRecords(sql.FieldEqualFold(FieldContent, v))
  448. }
  449. // ContentContainsFold applies the ContainsFold predicate on the "content" field.
  450. func ContentContainsFold(v string) predicate.MessageRecords {
  451. return predicate.MessageRecords(sql.FieldContainsFold(FieldContent, v))
  452. }
  453. // MetaIsNil applies the IsNil predicate on the "meta" field.
  454. func MetaIsNil() predicate.MessageRecords {
  455. return predicate.MessageRecords(sql.FieldIsNull(FieldMeta))
  456. }
  457. // MetaNotNil applies the NotNil predicate on the "meta" field.
  458. func MetaNotNil() predicate.MessageRecords {
  459. return predicate.MessageRecords(sql.FieldNotNull(FieldMeta))
  460. }
  461. // ErrorDetailEQ applies the EQ predicate on the "error_detail" field.
  462. func ErrorDetailEQ(v string) predicate.MessageRecords {
  463. return predicate.MessageRecords(sql.FieldEQ(FieldErrorDetail, v))
  464. }
  465. // ErrorDetailNEQ applies the NEQ predicate on the "error_detail" field.
  466. func ErrorDetailNEQ(v string) predicate.MessageRecords {
  467. return predicate.MessageRecords(sql.FieldNEQ(FieldErrorDetail, v))
  468. }
  469. // ErrorDetailIn applies the In predicate on the "error_detail" field.
  470. func ErrorDetailIn(vs ...string) predicate.MessageRecords {
  471. return predicate.MessageRecords(sql.FieldIn(FieldErrorDetail, vs...))
  472. }
  473. // ErrorDetailNotIn applies the NotIn predicate on the "error_detail" field.
  474. func ErrorDetailNotIn(vs ...string) predicate.MessageRecords {
  475. return predicate.MessageRecords(sql.FieldNotIn(FieldErrorDetail, vs...))
  476. }
  477. // ErrorDetailGT applies the GT predicate on the "error_detail" field.
  478. func ErrorDetailGT(v string) predicate.MessageRecords {
  479. return predicate.MessageRecords(sql.FieldGT(FieldErrorDetail, v))
  480. }
  481. // ErrorDetailGTE applies the GTE predicate on the "error_detail" field.
  482. func ErrorDetailGTE(v string) predicate.MessageRecords {
  483. return predicate.MessageRecords(sql.FieldGTE(FieldErrorDetail, v))
  484. }
  485. // ErrorDetailLT applies the LT predicate on the "error_detail" field.
  486. func ErrorDetailLT(v string) predicate.MessageRecords {
  487. return predicate.MessageRecords(sql.FieldLT(FieldErrorDetail, v))
  488. }
  489. // ErrorDetailLTE applies the LTE predicate on the "error_detail" field.
  490. func ErrorDetailLTE(v string) predicate.MessageRecords {
  491. return predicate.MessageRecords(sql.FieldLTE(FieldErrorDetail, v))
  492. }
  493. // ErrorDetailContains applies the Contains predicate on the "error_detail" field.
  494. func ErrorDetailContains(v string) predicate.MessageRecords {
  495. return predicate.MessageRecords(sql.FieldContains(FieldErrorDetail, v))
  496. }
  497. // ErrorDetailHasPrefix applies the HasPrefix predicate on the "error_detail" field.
  498. func ErrorDetailHasPrefix(v string) predicate.MessageRecords {
  499. return predicate.MessageRecords(sql.FieldHasPrefix(FieldErrorDetail, v))
  500. }
  501. // ErrorDetailHasSuffix applies the HasSuffix predicate on the "error_detail" field.
  502. func ErrorDetailHasSuffix(v string) predicate.MessageRecords {
  503. return predicate.MessageRecords(sql.FieldHasSuffix(FieldErrorDetail, v))
  504. }
  505. // ErrorDetailEqualFold applies the EqualFold predicate on the "error_detail" field.
  506. func ErrorDetailEqualFold(v string) predicate.MessageRecords {
  507. return predicate.MessageRecords(sql.FieldEqualFold(FieldErrorDetail, v))
  508. }
  509. // ErrorDetailContainsFold applies the ContainsFold predicate on the "error_detail" field.
  510. func ErrorDetailContainsFold(v string) predicate.MessageRecords {
  511. return predicate.MessageRecords(sql.FieldContainsFold(FieldErrorDetail, v))
  512. }
  513. // SendTimeEQ applies the EQ predicate on the "send_time" field.
  514. func SendTimeEQ(v time.Time) predicate.MessageRecords {
  515. return predicate.MessageRecords(sql.FieldEQ(FieldSendTime, v))
  516. }
  517. // SendTimeNEQ applies the NEQ predicate on the "send_time" field.
  518. func SendTimeNEQ(v time.Time) predicate.MessageRecords {
  519. return predicate.MessageRecords(sql.FieldNEQ(FieldSendTime, v))
  520. }
  521. // SendTimeIn applies the In predicate on the "send_time" field.
  522. func SendTimeIn(vs ...time.Time) predicate.MessageRecords {
  523. return predicate.MessageRecords(sql.FieldIn(FieldSendTime, vs...))
  524. }
  525. // SendTimeNotIn applies the NotIn predicate on the "send_time" field.
  526. func SendTimeNotIn(vs ...time.Time) predicate.MessageRecords {
  527. return predicate.MessageRecords(sql.FieldNotIn(FieldSendTime, vs...))
  528. }
  529. // SendTimeGT applies the GT predicate on the "send_time" field.
  530. func SendTimeGT(v time.Time) predicate.MessageRecords {
  531. return predicate.MessageRecords(sql.FieldGT(FieldSendTime, v))
  532. }
  533. // SendTimeGTE applies the GTE predicate on the "send_time" field.
  534. func SendTimeGTE(v time.Time) predicate.MessageRecords {
  535. return predicate.MessageRecords(sql.FieldGTE(FieldSendTime, v))
  536. }
  537. // SendTimeLT applies the LT predicate on the "send_time" field.
  538. func SendTimeLT(v time.Time) predicate.MessageRecords {
  539. return predicate.MessageRecords(sql.FieldLT(FieldSendTime, v))
  540. }
  541. // SendTimeLTE applies the LTE predicate on the "send_time" field.
  542. func SendTimeLTE(v time.Time) predicate.MessageRecords {
  543. return predicate.MessageRecords(sql.FieldLTE(FieldSendTime, v))
  544. }
  545. // SendTimeIsNil applies the IsNil predicate on the "send_time" field.
  546. func SendTimeIsNil() predicate.MessageRecords {
  547. return predicate.MessageRecords(sql.FieldIsNull(FieldSendTime))
  548. }
  549. // SendTimeNotNil applies the NotNil predicate on the "send_time" field.
  550. func SendTimeNotNil() predicate.MessageRecords {
  551. return predicate.MessageRecords(sql.FieldNotNull(FieldSendTime))
  552. }
  553. // SourceTypeEQ applies the EQ predicate on the "source_type" field.
  554. func SourceTypeEQ(v int) predicate.MessageRecords {
  555. return predicate.MessageRecords(sql.FieldEQ(FieldSourceType, v))
  556. }
  557. // SourceTypeNEQ applies the NEQ predicate on the "source_type" field.
  558. func SourceTypeNEQ(v int) predicate.MessageRecords {
  559. return predicate.MessageRecords(sql.FieldNEQ(FieldSourceType, v))
  560. }
  561. // SourceTypeIn applies the In predicate on the "source_type" field.
  562. func SourceTypeIn(vs ...int) predicate.MessageRecords {
  563. return predicate.MessageRecords(sql.FieldIn(FieldSourceType, vs...))
  564. }
  565. // SourceTypeNotIn applies the NotIn predicate on the "source_type" field.
  566. func SourceTypeNotIn(vs ...int) predicate.MessageRecords {
  567. return predicate.MessageRecords(sql.FieldNotIn(FieldSourceType, vs...))
  568. }
  569. // SourceTypeGT applies the GT predicate on the "source_type" field.
  570. func SourceTypeGT(v int) predicate.MessageRecords {
  571. return predicate.MessageRecords(sql.FieldGT(FieldSourceType, v))
  572. }
  573. // SourceTypeGTE applies the GTE predicate on the "source_type" field.
  574. func SourceTypeGTE(v int) predicate.MessageRecords {
  575. return predicate.MessageRecords(sql.FieldGTE(FieldSourceType, v))
  576. }
  577. // SourceTypeLT applies the LT predicate on the "source_type" field.
  578. func SourceTypeLT(v int) predicate.MessageRecords {
  579. return predicate.MessageRecords(sql.FieldLT(FieldSourceType, v))
  580. }
  581. // SourceTypeLTE applies the LTE predicate on the "source_type" field.
  582. func SourceTypeLTE(v int) predicate.MessageRecords {
  583. return predicate.MessageRecords(sql.FieldLTE(FieldSourceType, v))
  584. }
  585. // SourceIDEQ applies the EQ predicate on the "source_id" field.
  586. func SourceIDEQ(v uint64) predicate.MessageRecords {
  587. return predicate.MessageRecords(sql.FieldEQ(FieldSourceID, v))
  588. }
  589. // SourceIDNEQ applies the NEQ predicate on the "source_id" field.
  590. func SourceIDNEQ(v uint64) predicate.MessageRecords {
  591. return predicate.MessageRecords(sql.FieldNEQ(FieldSourceID, v))
  592. }
  593. // SourceIDIn applies the In predicate on the "source_id" field.
  594. func SourceIDIn(vs ...uint64) predicate.MessageRecords {
  595. return predicate.MessageRecords(sql.FieldIn(FieldSourceID, vs...))
  596. }
  597. // SourceIDNotIn applies the NotIn predicate on the "source_id" field.
  598. func SourceIDNotIn(vs ...uint64) predicate.MessageRecords {
  599. return predicate.MessageRecords(sql.FieldNotIn(FieldSourceID, vs...))
  600. }
  601. // SourceIDIsNil applies the IsNil predicate on the "source_id" field.
  602. func SourceIDIsNil() predicate.MessageRecords {
  603. return predicate.MessageRecords(sql.FieldIsNull(FieldSourceID))
  604. }
  605. // SourceIDNotNil applies the NotNil predicate on the "source_id" field.
  606. func SourceIDNotNil() predicate.MessageRecords {
  607. return predicate.MessageRecords(sql.FieldNotNull(FieldSourceID))
  608. }
  609. // SubSourceIDEQ applies the EQ predicate on the "sub_source_id" field.
  610. func SubSourceIDEQ(v uint64) predicate.MessageRecords {
  611. return predicate.MessageRecords(sql.FieldEQ(FieldSubSourceID, v))
  612. }
  613. // SubSourceIDNEQ applies the NEQ predicate on the "sub_source_id" field.
  614. func SubSourceIDNEQ(v uint64) predicate.MessageRecords {
  615. return predicate.MessageRecords(sql.FieldNEQ(FieldSubSourceID, v))
  616. }
  617. // SubSourceIDIn applies the In predicate on the "sub_source_id" field.
  618. func SubSourceIDIn(vs ...uint64) predicate.MessageRecords {
  619. return predicate.MessageRecords(sql.FieldIn(FieldSubSourceID, vs...))
  620. }
  621. // SubSourceIDNotIn applies the NotIn predicate on the "sub_source_id" field.
  622. func SubSourceIDNotIn(vs ...uint64) predicate.MessageRecords {
  623. return predicate.MessageRecords(sql.FieldNotIn(FieldSubSourceID, vs...))
  624. }
  625. // SubSourceIDIsNil applies the IsNil predicate on the "sub_source_id" field.
  626. func SubSourceIDIsNil() predicate.MessageRecords {
  627. return predicate.MessageRecords(sql.FieldIsNull(FieldSubSourceID))
  628. }
  629. // SubSourceIDNotNil applies the NotNil predicate on the "sub_source_id" field.
  630. func SubSourceIDNotNil() predicate.MessageRecords {
  631. return predicate.MessageRecords(sql.FieldNotNull(FieldSubSourceID))
  632. }
  633. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  634. func OrganizationIDEQ(v uint64) predicate.MessageRecords {
  635. return predicate.MessageRecords(sql.FieldEQ(FieldOrganizationID, v))
  636. }
  637. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  638. func OrganizationIDNEQ(v uint64) predicate.MessageRecords {
  639. return predicate.MessageRecords(sql.FieldNEQ(FieldOrganizationID, v))
  640. }
  641. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  642. func OrganizationIDIn(vs ...uint64) predicate.MessageRecords {
  643. return predicate.MessageRecords(sql.FieldIn(FieldOrganizationID, vs...))
  644. }
  645. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  646. func OrganizationIDNotIn(vs ...uint64) predicate.MessageRecords {
  647. return predicate.MessageRecords(sql.FieldNotIn(FieldOrganizationID, vs...))
  648. }
  649. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  650. func OrganizationIDGT(v uint64) predicate.MessageRecords {
  651. return predicate.MessageRecords(sql.FieldGT(FieldOrganizationID, v))
  652. }
  653. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  654. func OrganizationIDGTE(v uint64) predicate.MessageRecords {
  655. return predicate.MessageRecords(sql.FieldGTE(FieldOrganizationID, v))
  656. }
  657. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  658. func OrganizationIDLT(v uint64) predicate.MessageRecords {
  659. return predicate.MessageRecords(sql.FieldLT(FieldOrganizationID, v))
  660. }
  661. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  662. func OrganizationIDLTE(v uint64) predicate.MessageRecords {
  663. return predicate.MessageRecords(sql.FieldLTE(FieldOrganizationID, v))
  664. }
  665. // OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.
  666. func OrganizationIDIsNil() predicate.MessageRecords {
  667. return predicate.MessageRecords(sql.FieldIsNull(FieldOrganizationID))
  668. }
  669. // OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.
  670. func OrganizationIDNotNil() predicate.MessageRecords {
  671. return predicate.MessageRecords(sql.FieldNotNull(FieldOrganizationID))
  672. }
  673. // HasSopStage applies the HasEdge predicate on the "sop_stage" edge.
  674. func HasSopStage() predicate.MessageRecords {
  675. return predicate.MessageRecords(func(s *sql.Selector) {
  676. step := sqlgraph.NewStep(
  677. sqlgraph.From(Table, FieldID),
  678. sqlgraph.Edge(sqlgraph.M2O, true, SopStageTable, SopStageColumn),
  679. )
  680. sqlgraph.HasNeighbors(s, step)
  681. })
  682. }
  683. // HasSopStageWith applies the HasEdge predicate on the "sop_stage" edge with a given conditions (other predicates).
  684. func HasSopStageWith(preds ...predicate.SopStage) predicate.MessageRecords {
  685. return predicate.MessageRecords(func(s *sql.Selector) {
  686. step := newSopStageStep()
  687. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  688. for _, p := range preds {
  689. p(s)
  690. }
  691. })
  692. })
  693. }
  694. // HasSopNode applies the HasEdge predicate on the "sop_node" edge.
  695. func HasSopNode() predicate.MessageRecords {
  696. return predicate.MessageRecords(func(s *sql.Selector) {
  697. step := sqlgraph.NewStep(
  698. sqlgraph.From(Table, FieldID),
  699. sqlgraph.Edge(sqlgraph.M2O, true, SopNodeTable, SopNodeColumn),
  700. )
  701. sqlgraph.HasNeighbors(s, step)
  702. })
  703. }
  704. // HasSopNodeWith applies the HasEdge predicate on the "sop_node" edge with a given conditions (other predicates).
  705. func HasSopNodeWith(preds ...predicate.SopNode) predicate.MessageRecords {
  706. return predicate.MessageRecords(func(s *sql.Selector) {
  707. step := newSopNodeStep()
  708. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  709. for _, p := range preds {
  710. p(s)
  711. }
  712. })
  713. })
  714. }
  715. // HasMessageContact applies the HasEdge predicate on the "message_contact" edge.
  716. func HasMessageContact() predicate.MessageRecords {
  717. return predicate.MessageRecords(func(s *sql.Selector) {
  718. step := sqlgraph.NewStep(
  719. sqlgraph.From(Table, FieldID),
  720. sqlgraph.Edge(sqlgraph.M2O, true, MessageContactTable, MessageContactColumn),
  721. )
  722. sqlgraph.HasNeighbors(s, step)
  723. })
  724. }
  725. // HasMessageContactWith applies the HasEdge predicate on the "message_contact" edge with a given conditions (other predicates).
  726. func HasMessageContactWith(preds ...predicate.Contact) predicate.MessageRecords {
  727. return predicate.MessageRecords(func(s *sql.Selector) {
  728. step := newMessageContactStep()
  729. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  730. for _, p := range preds {
  731. p(s)
  732. }
  733. })
  734. })
  735. }
  736. // And groups predicates with the AND operator between them.
  737. func And(predicates ...predicate.MessageRecords) predicate.MessageRecords {
  738. return predicate.MessageRecords(sql.AndPredicates(predicates...))
  739. }
  740. // Or groups predicates with the OR operator between them.
  741. func Or(predicates ...predicate.MessageRecords) predicate.MessageRecords {
  742. return predicate.MessageRecords(sql.OrPredicates(predicates...))
  743. }
  744. // Not applies the not operator on the given predicate.
  745. func Not(p predicate.MessageRecords) predicate.MessageRecords {
  746. return predicate.MessageRecords(sql.NotPredicates(p))
  747. }