where.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. // Code generated by ent, DO NOT EDIT.
  2. package msg
  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.Msg {
  10. return predicate.Msg(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.Msg {
  14. return predicate.Msg(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.Msg {
  18. return predicate.Msg(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.Msg {
  22. return predicate.Msg(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.Msg {
  26. return predicate.Msg(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.Msg {
  30. return predicate.Msg(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.Msg {
  34. return predicate.Msg(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.Msg {
  38. return predicate.Msg(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.Msg {
  42. return predicate.Msg(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.Msg {
  46. return predicate.Msg(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.Msg {
  50. return predicate.Msg(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.Msg {
  54. return predicate.Msg(sql.FieldEQ(FieldDeletedAt, v))
  55. }
  56. // Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
  57. func Status(v uint8) predicate.Msg {
  58. return predicate.Msg(sql.FieldEQ(FieldStatus, v))
  59. }
  60. // Fromwxid applies equality check predicate on the "fromwxid" field. It's identical to FromwxidEQ.
  61. func Fromwxid(v string) predicate.Msg {
  62. return predicate.Msg(sql.FieldEQ(FieldFromwxid, v))
  63. }
  64. // Toid applies equality check predicate on the "toid" field. It's identical to ToidEQ.
  65. func Toid(v string) predicate.Msg {
  66. return predicate.Msg(sql.FieldEQ(FieldToid, v))
  67. }
  68. // Msgtype applies equality check predicate on the "msgtype" field. It's identical to MsgtypeEQ.
  69. func Msgtype(v int32) predicate.Msg {
  70. return predicate.Msg(sql.FieldEQ(FieldMsgtype, v))
  71. }
  72. // Msg applies equality check predicate on the "msg" field. It's identical to MsgEQ.
  73. func Msg(v string) predicate.Msg {
  74. return predicate.Msg(sql.FieldEQ(FieldMsg, v))
  75. }
  76. // BatchNo applies equality check predicate on the "batch_no" field. It's identical to BatchNoEQ.
  77. func BatchNo(v string) predicate.Msg {
  78. return predicate.Msg(sql.FieldEQ(FieldBatchNo, v))
  79. }
  80. // Cc applies equality check predicate on the "cc" field. It's identical to CcEQ.
  81. func Cc(v string) predicate.Msg {
  82. return predicate.Msg(sql.FieldEQ(FieldCc, v))
  83. }
  84. // Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
  85. func Phone(v string) predicate.Msg {
  86. return predicate.Msg(sql.FieldEQ(FieldPhone, v))
  87. }
  88. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  89. func CreatedAtEQ(v time.Time) predicate.Msg {
  90. return predicate.Msg(sql.FieldEQ(FieldCreatedAt, v))
  91. }
  92. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  93. func CreatedAtNEQ(v time.Time) predicate.Msg {
  94. return predicate.Msg(sql.FieldNEQ(FieldCreatedAt, v))
  95. }
  96. // CreatedAtIn applies the In predicate on the "created_at" field.
  97. func CreatedAtIn(vs ...time.Time) predicate.Msg {
  98. return predicate.Msg(sql.FieldIn(FieldCreatedAt, vs...))
  99. }
  100. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  101. func CreatedAtNotIn(vs ...time.Time) predicate.Msg {
  102. return predicate.Msg(sql.FieldNotIn(FieldCreatedAt, vs...))
  103. }
  104. // CreatedAtGT applies the GT predicate on the "created_at" field.
  105. func CreatedAtGT(v time.Time) predicate.Msg {
  106. return predicate.Msg(sql.FieldGT(FieldCreatedAt, v))
  107. }
  108. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  109. func CreatedAtGTE(v time.Time) predicate.Msg {
  110. return predicate.Msg(sql.FieldGTE(FieldCreatedAt, v))
  111. }
  112. // CreatedAtLT applies the LT predicate on the "created_at" field.
  113. func CreatedAtLT(v time.Time) predicate.Msg {
  114. return predicate.Msg(sql.FieldLT(FieldCreatedAt, v))
  115. }
  116. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  117. func CreatedAtLTE(v time.Time) predicate.Msg {
  118. return predicate.Msg(sql.FieldLTE(FieldCreatedAt, v))
  119. }
  120. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  121. func UpdatedAtEQ(v time.Time) predicate.Msg {
  122. return predicate.Msg(sql.FieldEQ(FieldUpdatedAt, v))
  123. }
  124. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  125. func UpdatedAtNEQ(v time.Time) predicate.Msg {
  126. return predicate.Msg(sql.FieldNEQ(FieldUpdatedAt, v))
  127. }
  128. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  129. func UpdatedAtIn(vs ...time.Time) predicate.Msg {
  130. return predicate.Msg(sql.FieldIn(FieldUpdatedAt, vs...))
  131. }
  132. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  133. func UpdatedAtNotIn(vs ...time.Time) predicate.Msg {
  134. return predicate.Msg(sql.FieldNotIn(FieldUpdatedAt, vs...))
  135. }
  136. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  137. func UpdatedAtGT(v time.Time) predicate.Msg {
  138. return predicate.Msg(sql.FieldGT(FieldUpdatedAt, v))
  139. }
  140. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  141. func UpdatedAtGTE(v time.Time) predicate.Msg {
  142. return predicate.Msg(sql.FieldGTE(FieldUpdatedAt, v))
  143. }
  144. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  145. func UpdatedAtLT(v time.Time) predicate.Msg {
  146. return predicate.Msg(sql.FieldLT(FieldUpdatedAt, v))
  147. }
  148. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  149. func UpdatedAtLTE(v time.Time) predicate.Msg {
  150. return predicate.Msg(sql.FieldLTE(FieldUpdatedAt, v))
  151. }
  152. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  153. func DeletedAtEQ(v time.Time) predicate.Msg {
  154. return predicate.Msg(sql.FieldEQ(FieldDeletedAt, v))
  155. }
  156. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  157. func DeletedAtNEQ(v time.Time) predicate.Msg {
  158. return predicate.Msg(sql.FieldNEQ(FieldDeletedAt, v))
  159. }
  160. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  161. func DeletedAtIn(vs ...time.Time) predicate.Msg {
  162. return predicate.Msg(sql.FieldIn(FieldDeletedAt, vs...))
  163. }
  164. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  165. func DeletedAtNotIn(vs ...time.Time) predicate.Msg {
  166. return predicate.Msg(sql.FieldNotIn(FieldDeletedAt, vs...))
  167. }
  168. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  169. func DeletedAtGT(v time.Time) predicate.Msg {
  170. return predicate.Msg(sql.FieldGT(FieldDeletedAt, v))
  171. }
  172. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  173. func DeletedAtGTE(v time.Time) predicate.Msg {
  174. return predicate.Msg(sql.FieldGTE(FieldDeletedAt, v))
  175. }
  176. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  177. func DeletedAtLT(v time.Time) predicate.Msg {
  178. return predicate.Msg(sql.FieldLT(FieldDeletedAt, v))
  179. }
  180. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  181. func DeletedAtLTE(v time.Time) predicate.Msg {
  182. return predicate.Msg(sql.FieldLTE(FieldDeletedAt, v))
  183. }
  184. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  185. func DeletedAtIsNil() predicate.Msg {
  186. return predicate.Msg(sql.FieldIsNull(FieldDeletedAt))
  187. }
  188. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  189. func DeletedAtNotNil() predicate.Msg {
  190. return predicate.Msg(sql.FieldNotNull(FieldDeletedAt))
  191. }
  192. // StatusEQ applies the EQ predicate on the "status" field.
  193. func StatusEQ(v uint8) predicate.Msg {
  194. return predicate.Msg(sql.FieldEQ(FieldStatus, v))
  195. }
  196. // StatusNEQ applies the NEQ predicate on the "status" field.
  197. func StatusNEQ(v uint8) predicate.Msg {
  198. return predicate.Msg(sql.FieldNEQ(FieldStatus, v))
  199. }
  200. // StatusIn applies the In predicate on the "status" field.
  201. func StatusIn(vs ...uint8) predicate.Msg {
  202. return predicate.Msg(sql.FieldIn(FieldStatus, vs...))
  203. }
  204. // StatusNotIn applies the NotIn predicate on the "status" field.
  205. func StatusNotIn(vs ...uint8) predicate.Msg {
  206. return predicate.Msg(sql.FieldNotIn(FieldStatus, vs...))
  207. }
  208. // StatusGT applies the GT predicate on the "status" field.
  209. func StatusGT(v uint8) predicate.Msg {
  210. return predicate.Msg(sql.FieldGT(FieldStatus, v))
  211. }
  212. // StatusGTE applies the GTE predicate on the "status" field.
  213. func StatusGTE(v uint8) predicate.Msg {
  214. return predicate.Msg(sql.FieldGTE(FieldStatus, v))
  215. }
  216. // StatusLT applies the LT predicate on the "status" field.
  217. func StatusLT(v uint8) predicate.Msg {
  218. return predicate.Msg(sql.FieldLT(FieldStatus, v))
  219. }
  220. // StatusLTE applies the LTE predicate on the "status" field.
  221. func StatusLTE(v uint8) predicate.Msg {
  222. return predicate.Msg(sql.FieldLTE(FieldStatus, v))
  223. }
  224. // StatusIsNil applies the IsNil predicate on the "status" field.
  225. func StatusIsNil() predicate.Msg {
  226. return predicate.Msg(sql.FieldIsNull(FieldStatus))
  227. }
  228. // StatusNotNil applies the NotNil predicate on the "status" field.
  229. func StatusNotNil() predicate.Msg {
  230. return predicate.Msg(sql.FieldNotNull(FieldStatus))
  231. }
  232. // FromwxidEQ applies the EQ predicate on the "fromwxid" field.
  233. func FromwxidEQ(v string) predicate.Msg {
  234. return predicate.Msg(sql.FieldEQ(FieldFromwxid, v))
  235. }
  236. // FromwxidNEQ applies the NEQ predicate on the "fromwxid" field.
  237. func FromwxidNEQ(v string) predicate.Msg {
  238. return predicate.Msg(sql.FieldNEQ(FieldFromwxid, v))
  239. }
  240. // FromwxidIn applies the In predicate on the "fromwxid" field.
  241. func FromwxidIn(vs ...string) predicate.Msg {
  242. return predicate.Msg(sql.FieldIn(FieldFromwxid, vs...))
  243. }
  244. // FromwxidNotIn applies the NotIn predicate on the "fromwxid" field.
  245. func FromwxidNotIn(vs ...string) predicate.Msg {
  246. return predicate.Msg(sql.FieldNotIn(FieldFromwxid, vs...))
  247. }
  248. // FromwxidGT applies the GT predicate on the "fromwxid" field.
  249. func FromwxidGT(v string) predicate.Msg {
  250. return predicate.Msg(sql.FieldGT(FieldFromwxid, v))
  251. }
  252. // FromwxidGTE applies the GTE predicate on the "fromwxid" field.
  253. func FromwxidGTE(v string) predicate.Msg {
  254. return predicate.Msg(sql.FieldGTE(FieldFromwxid, v))
  255. }
  256. // FromwxidLT applies the LT predicate on the "fromwxid" field.
  257. func FromwxidLT(v string) predicate.Msg {
  258. return predicate.Msg(sql.FieldLT(FieldFromwxid, v))
  259. }
  260. // FromwxidLTE applies the LTE predicate on the "fromwxid" field.
  261. func FromwxidLTE(v string) predicate.Msg {
  262. return predicate.Msg(sql.FieldLTE(FieldFromwxid, v))
  263. }
  264. // FromwxidContains applies the Contains predicate on the "fromwxid" field.
  265. func FromwxidContains(v string) predicate.Msg {
  266. return predicate.Msg(sql.FieldContains(FieldFromwxid, v))
  267. }
  268. // FromwxidHasPrefix applies the HasPrefix predicate on the "fromwxid" field.
  269. func FromwxidHasPrefix(v string) predicate.Msg {
  270. return predicate.Msg(sql.FieldHasPrefix(FieldFromwxid, v))
  271. }
  272. // FromwxidHasSuffix applies the HasSuffix predicate on the "fromwxid" field.
  273. func FromwxidHasSuffix(v string) predicate.Msg {
  274. return predicate.Msg(sql.FieldHasSuffix(FieldFromwxid, v))
  275. }
  276. // FromwxidIsNil applies the IsNil predicate on the "fromwxid" field.
  277. func FromwxidIsNil() predicate.Msg {
  278. return predicate.Msg(sql.FieldIsNull(FieldFromwxid))
  279. }
  280. // FromwxidNotNil applies the NotNil predicate on the "fromwxid" field.
  281. func FromwxidNotNil() predicate.Msg {
  282. return predicate.Msg(sql.FieldNotNull(FieldFromwxid))
  283. }
  284. // FromwxidEqualFold applies the EqualFold predicate on the "fromwxid" field.
  285. func FromwxidEqualFold(v string) predicate.Msg {
  286. return predicate.Msg(sql.FieldEqualFold(FieldFromwxid, v))
  287. }
  288. // FromwxidContainsFold applies the ContainsFold predicate on the "fromwxid" field.
  289. func FromwxidContainsFold(v string) predicate.Msg {
  290. return predicate.Msg(sql.FieldContainsFold(FieldFromwxid, v))
  291. }
  292. // ToidEQ applies the EQ predicate on the "toid" field.
  293. func ToidEQ(v string) predicate.Msg {
  294. return predicate.Msg(sql.FieldEQ(FieldToid, v))
  295. }
  296. // ToidNEQ applies the NEQ predicate on the "toid" field.
  297. func ToidNEQ(v string) predicate.Msg {
  298. return predicate.Msg(sql.FieldNEQ(FieldToid, v))
  299. }
  300. // ToidIn applies the In predicate on the "toid" field.
  301. func ToidIn(vs ...string) predicate.Msg {
  302. return predicate.Msg(sql.FieldIn(FieldToid, vs...))
  303. }
  304. // ToidNotIn applies the NotIn predicate on the "toid" field.
  305. func ToidNotIn(vs ...string) predicate.Msg {
  306. return predicate.Msg(sql.FieldNotIn(FieldToid, vs...))
  307. }
  308. // ToidGT applies the GT predicate on the "toid" field.
  309. func ToidGT(v string) predicate.Msg {
  310. return predicate.Msg(sql.FieldGT(FieldToid, v))
  311. }
  312. // ToidGTE applies the GTE predicate on the "toid" field.
  313. func ToidGTE(v string) predicate.Msg {
  314. return predicate.Msg(sql.FieldGTE(FieldToid, v))
  315. }
  316. // ToidLT applies the LT predicate on the "toid" field.
  317. func ToidLT(v string) predicate.Msg {
  318. return predicate.Msg(sql.FieldLT(FieldToid, v))
  319. }
  320. // ToidLTE applies the LTE predicate on the "toid" field.
  321. func ToidLTE(v string) predicate.Msg {
  322. return predicate.Msg(sql.FieldLTE(FieldToid, v))
  323. }
  324. // ToidContains applies the Contains predicate on the "toid" field.
  325. func ToidContains(v string) predicate.Msg {
  326. return predicate.Msg(sql.FieldContains(FieldToid, v))
  327. }
  328. // ToidHasPrefix applies the HasPrefix predicate on the "toid" field.
  329. func ToidHasPrefix(v string) predicate.Msg {
  330. return predicate.Msg(sql.FieldHasPrefix(FieldToid, v))
  331. }
  332. // ToidHasSuffix applies the HasSuffix predicate on the "toid" field.
  333. func ToidHasSuffix(v string) predicate.Msg {
  334. return predicate.Msg(sql.FieldHasSuffix(FieldToid, v))
  335. }
  336. // ToidIsNil applies the IsNil predicate on the "toid" field.
  337. func ToidIsNil() predicate.Msg {
  338. return predicate.Msg(sql.FieldIsNull(FieldToid))
  339. }
  340. // ToidNotNil applies the NotNil predicate on the "toid" field.
  341. func ToidNotNil() predicate.Msg {
  342. return predicate.Msg(sql.FieldNotNull(FieldToid))
  343. }
  344. // ToidEqualFold applies the EqualFold predicate on the "toid" field.
  345. func ToidEqualFold(v string) predicate.Msg {
  346. return predicate.Msg(sql.FieldEqualFold(FieldToid, v))
  347. }
  348. // ToidContainsFold applies the ContainsFold predicate on the "toid" field.
  349. func ToidContainsFold(v string) predicate.Msg {
  350. return predicate.Msg(sql.FieldContainsFold(FieldToid, v))
  351. }
  352. // MsgtypeEQ applies the EQ predicate on the "msgtype" field.
  353. func MsgtypeEQ(v int32) predicate.Msg {
  354. return predicate.Msg(sql.FieldEQ(FieldMsgtype, v))
  355. }
  356. // MsgtypeNEQ applies the NEQ predicate on the "msgtype" field.
  357. func MsgtypeNEQ(v int32) predicate.Msg {
  358. return predicate.Msg(sql.FieldNEQ(FieldMsgtype, v))
  359. }
  360. // MsgtypeIn applies the In predicate on the "msgtype" field.
  361. func MsgtypeIn(vs ...int32) predicate.Msg {
  362. return predicate.Msg(sql.FieldIn(FieldMsgtype, vs...))
  363. }
  364. // MsgtypeNotIn applies the NotIn predicate on the "msgtype" field.
  365. func MsgtypeNotIn(vs ...int32) predicate.Msg {
  366. return predicate.Msg(sql.FieldNotIn(FieldMsgtype, vs...))
  367. }
  368. // MsgtypeGT applies the GT predicate on the "msgtype" field.
  369. func MsgtypeGT(v int32) predicate.Msg {
  370. return predicate.Msg(sql.FieldGT(FieldMsgtype, v))
  371. }
  372. // MsgtypeGTE applies the GTE predicate on the "msgtype" field.
  373. func MsgtypeGTE(v int32) predicate.Msg {
  374. return predicate.Msg(sql.FieldGTE(FieldMsgtype, v))
  375. }
  376. // MsgtypeLT applies the LT predicate on the "msgtype" field.
  377. func MsgtypeLT(v int32) predicate.Msg {
  378. return predicate.Msg(sql.FieldLT(FieldMsgtype, v))
  379. }
  380. // MsgtypeLTE applies the LTE predicate on the "msgtype" field.
  381. func MsgtypeLTE(v int32) predicate.Msg {
  382. return predicate.Msg(sql.FieldLTE(FieldMsgtype, v))
  383. }
  384. // MsgtypeIsNil applies the IsNil predicate on the "msgtype" field.
  385. func MsgtypeIsNil() predicate.Msg {
  386. return predicate.Msg(sql.FieldIsNull(FieldMsgtype))
  387. }
  388. // MsgtypeNotNil applies the NotNil predicate on the "msgtype" field.
  389. func MsgtypeNotNil() predicate.Msg {
  390. return predicate.Msg(sql.FieldNotNull(FieldMsgtype))
  391. }
  392. // MsgEQ applies the EQ predicate on the "msg" field.
  393. func MsgEQ(v string) predicate.Msg {
  394. return predicate.Msg(sql.FieldEQ(FieldMsg, v))
  395. }
  396. // MsgNEQ applies the NEQ predicate on the "msg" field.
  397. func MsgNEQ(v string) predicate.Msg {
  398. return predicate.Msg(sql.FieldNEQ(FieldMsg, v))
  399. }
  400. // MsgIn applies the In predicate on the "msg" field.
  401. func MsgIn(vs ...string) predicate.Msg {
  402. return predicate.Msg(sql.FieldIn(FieldMsg, vs...))
  403. }
  404. // MsgNotIn applies the NotIn predicate on the "msg" field.
  405. func MsgNotIn(vs ...string) predicate.Msg {
  406. return predicate.Msg(sql.FieldNotIn(FieldMsg, vs...))
  407. }
  408. // MsgGT applies the GT predicate on the "msg" field.
  409. func MsgGT(v string) predicate.Msg {
  410. return predicate.Msg(sql.FieldGT(FieldMsg, v))
  411. }
  412. // MsgGTE applies the GTE predicate on the "msg" field.
  413. func MsgGTE(v string) predicate.Msg {
  414. return predicate.Msg(sql.FieldGTE(FieldMsg, v))
  415. }
  416. // MsgLT applies the LT predicate on the "msg" field.
  417. func MsgLT(v string) predicate.Msg {
  418. return predicate.Msg(sql.FieldLT(FieldMsg, v))
  419. }
  420. // MsgLTE applies the LTE predicate on the "msg" field.
  421. func MsgLTE(v string) predicate.Msg {
  422. return predicate.Msg(sql.FieldLTE(FieldMsg, v))
  423. }
  424. // MsgContains applies the Contains predicate on the "msg" field.
  425. func MsgContains(v string) predicate.Msg {
  426. return predicate.Msg(sql.FieldContains(FieldMsg, v))
  427. }
  428. // MsgHasPrefix applies the HasPrefix predicate on the "msg" field.
  429. func MsgHasPrefix(v string) predicate.Msg {
  430. return predicate.Msg(sql.FieldHasPrefix(FieldMsg, v))
  431. }
  432. // MsgHasSuffix applies the HasSuffix predicate on the "msg" field.
  433. func MsgHasSuffix(v string) predicate.Msg {
  434. return predicate.Msg(sql.FieldHasSuffix(FieldMsg, v))
  435. }
  436. // MsgIsNil applies the IsNil predicate on the "msg" field.
  437. func MsgIsNil() predicate.Msg {
  438. return predicate.Msg(sql.FieldIsNull(FieldMsg))
  439. }
  440. // MsgNotNil applies the NotNil predicate on the "msg" field.
  441. func MsgNotNil() predicate.Msg {
  442. return predicate.Msg(sql.FieldNotNull(FieldMsg))
  443. }
  444. // MsgEqualFold applies the EqualFold predicate on the "msg" field.
  445. func MsgEqualFold(v string) predicate.Msg {
  446. return predicate.Msg(sql.FieldEqualFold(FieldMsg, v))
  447. }
  448. // MsgContainsFold applies the ContainsFold predicate on the "msg" field.
  449. func MsgContainsFold(v string) predicate.Msg {
  450. return predicate.Msg(sql.FieldContainsFold(FieldMsg, v))
  451. }
  452. // BatchNoEQ applies the EQ predicate on the "batch_no" field.
  453. func BatchNoEQ(v string) predicate.Msg {
  454. return predicate.Msg(sql.FieldEQ(FieldBatchNo, v))
  455. }
  456. // BatchNoNEQ applies the NEQ predicate on the "batch_no" field.
  457. func BatchNoNEQ(v string) predicate.Msg {
  458. return predicate.Msg(sql.FieldNEQ(FieldBatchNo, v))
  459. }
  460. // BatchNoIn applies the In predicate on the "batch_no" field.
  461. func BatchNoIn(vs ...string) predicate.Msg {
  462. return predicate.Msg(sql.FieldIn(FieldBatchNo, vs...))
  463. }
  464. // BatchNoNotIn applies the NotIn predicate on the "batch_no" field.
  465. func BatchNoNotIn(vs ...string) predicate.Msg {
  466. return predicate.Msg(sql.FieldNotIn(FieldBatchNo, vs...))
  467. }
  468. // BatchNoGT applies the GT predicate on the "batch_no" field.
  469. func BatchNoGT(v string) predicate.Msg {
  470. return predicate.Msg(sql.FieldGT(FieldBatchNo, v))
  471. }
  472. // BatchNoGTE applies the GTE predicate on the "batch_no" field.
  473. func BatchNoGTE(v string) predicate.Msg {
  474. return predicate.Msg(sql.FieldGTE(FieldBatchNo, v))
  475. }
  476. // BatchNoLT applies the LT predicate on the "batch_no" field.
  477. func BatchNoLT(v string) predicate.Msg {
  478. return predicate.Msg(sql.FieldLT(FieldBatchNo, v))
  479. }
  480. // BatchNoLTE applies the LTE predicate on the "batch_no" field.
  481. func BatchNoLTE(v string) predicate.Msg {
  482. return predicate.Msg(sql.FieldLTE(FieldBatchNo, v))
  483. }
  484. // BatchNoContains applies the Contains predicate on the "batch_no" field.
  485. func BatchNoContains(v string) predicate.Msg {
  486. return predicate.Msg(sql.FieldContains(FieldBatchNo, v))
  487. }
  488. // BatchNoHasPrefix applies the HasPrefix predicate on the "batch_no" field.
  489. func BatchNoHasPrefix(v string) predicate.Msg {
  490. return predicate.Msg(sql.FieldHasPrefix(FieldBatchNo, v))
  491. }
  492. // BatchNoHasSuffix applies the HasSuffix predicate on the "batch_no" field.
  493. func BatchNoHasSuffix(v string) predicate.Msg {
  494. return predicate.Msg(sql.FieldHasSuffix(FieldBatchNo, v))
  495. }
  496. // BatchNoIsNil applies the IsNil predicate on the "batch_no" field.
  497. func BatchNoIsNil() predicate.Msg {
  498. return predicate.Msg(sql.FieldIsNull(FieldBatchNo))
  499. }
  500. // BatchNoNotNil applies the NotNil predicate on the "batch_no" field.
  501. func BatchNoNotNil() predicate.Msg {
  502. return predicate.Msg(sql.FieldNotNull(FieldBatchNo))
  503. }
  504. // BatchNoEqualFold applies the EqualFold predicate on the "batch_no" field.
  505. func BatchNoEqualFold(v string) predicate.Msg {
  506. return predicate.Msg(sql.FieldEqualFold(FieldBatchNo, v))
  507. }
  508. // BatchNoContainsFold applies the ContainsFold predicate on the "batch_no" field.
  509. func BatchNoContainsFold(v string) predicate.Msg {
  510. return predicate.Msg(sql.FieldContainsFold(FieldBatchNo, v))
  511. }
  512. // CcEQ applies the EQ predicate on the "cc" field.
  513. func CcEQ(v string) predicate.Msg {
  514. return predicate.Msg(sql.FieldEQ(FieldCc, v))
  515. }
  516. // CcNEQ applies the NEQ predicate on the "cc" field.
  517. func CcNEQ(v string) predicate.Msg {
  518. return predicate.Msg(sql.FieldNEQ(FieldCc, v))
  519. }
  520. // CcIn applies the In predicate on the "cc" field.
  521. func CcIn(vs ...string) predicate.Msg {
  522. return predicate.Msg(sql.FieldIn(FieldCc, vs...))
  523. }
  524. // CcNotIn applies the NotIn predicate on the "cc" field.
  525. func CcNotIn(vs ...string) predicate.Msg {
  526. return predicate.Msg(sql.FieldNotIn(FieldCc, vs...))
  527. }
  528. // CcGT applies the GT predicate on the "cc" field.
  529. func CcGT(v string) predicate.Msg {
  530. return predicate.Msg(sql.FieldGT(FieldCc, v))
  531. }
  532. // CcGTE applies the GTE predicate on the "cc" field.
  533. func CcGTE(v string) predicate.Msg {
  534. return predicate.Msg(sql.FieldGTE(FieldCc, v))
  535. }
  536. // CcLT applies the LT predicate on the "cc" field.
  537. func CcLT(v string) predicate.Msg {
  538. return predicate.Msg(sql.FieldLT(FieldCc, v))
  539. }
  540. // CcLTE applies the LTE predicate on the "cc" field.
  541. func CcLTE(v string) predicate.Msg {
  542. return predicate.Msg(sql.FieldLTE(FieldCc, v))
  543. }
  544. // CcContains applies the Contains predicate on the "cc" field.
  545. func CcContains(v string) predicate.Msg {
  546. return predicate.Msg(sql.FieldContains(FieldCc, v))
  547. }
  548. // CcHasPrefix applies the HasPrefix predicate on the "cc" field.
  549. func CcHasPrefix(v string) predicate.Msg {
  550. return predicate.Msg(sql.FieldHasPrefix(FieldCc, v))
  551. }
  552. // CcHasSuffix applies the HasSuffix predicate on the "cc" field.
  553. func CcHasSuffix(v string) predicate.Msg {
  554. return predicate.Msg(sql.FieldHasSuffix(FieldCc, v))
  555. }
  556. // CcEqualFold applies the EqualFold predicate on the "cc" field.
  557. func CcEqualFold(v string) predicate.Msg {
  558. return predicate.Msg(sql.FieldEqualFold(FieldCc, v))
  559. }
  560. // CcContainsFold applies the ContainsFold predicate on the "cc" field.
  561. func CcContainsFold(v string) predicate.Msg {
  562. return predicate.Msg(sql.FieldContainsFold(FieldCc, v))
  563. }
  564. // PhoneEQ applies the EQ predicate on the "phone" field.
  565. func PhoneEQ(v string) predicate.Msg {
  566. return predicate.Msg(sql.FieldEQ(FieldPhone, v))
  567. }
  568. // PhoneNEQ applies the NEQ predicate on the "phone" field.
  569. func PhoneNEQ(v string) predicate.Msg {
  570. return predicate.Msg(sql.FieldNEQ(FieldPhone, v))
  571. }
  572. // PhoneIn applies the In predicate on the "phone" field.
  573. func PhoneIn(vs ...string) predicate.Msg {
  574. return predicate.Msg(sql.FieldIn(FieldPhone, vs...))
  575. }
  576. // PhoneNotIn applies the NotIn predicate on the "phone" field.
  577. func PhoneNotIn(vs ...string) predicate.Msg {
  578. return predicate.Msg(sql.FieldNotIn(FieldPhone, vs...))
  579. }
  580. // PhoneGT applies the GT predicate on the "phone" field.
  581. func PhoneGT(v string) predicate.Msg {
  582. return predicate.Msg(sql.FieldGT(FieldPhone, v))
  583. }
  584. // PhoneGTE applies the GTE predicate on the "phone" field.
  585. func PhoneGTE(v string) predicate.Msg {
  586. return predicate.Msg(sql.FieldGTE(FieldPhone, v))
  587. }
  588. // PhoneLT applies the LT predicate on the "phone" field.
  589. func PhoneLT(v string) predicate.Msg {
  590. return predicate.Msg(sql.FieldLT(FieldPhone, v))
  591. }
  592. // PhoneLTE applies the LTE predicate on the "phone" field.
  593. func PhoneLTE(v string) predicate.Msg {
  594. return predicate.Msg(sql.FieldLTE(FieldPhone, v))
  595. }
  596. // PhoneContains applies the Contains predicate on the "phone" field.
  597. func PhoneContains(v string) predicate.Msg {
  598. return predicate.Msg(sql.FieldContains(FieldPhone, v))
  599. }
  600. // PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
  601. func PhoneHasPrefix(v string) predicate.Msg {
  602. return predicate.Msg(sql.FieldHasPrefix(FieldPhone, v))
  603. }
  604. // PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
  605. func PhoneHasSuffix(v string) predicate.Msg {
  606. return predicate.Msg(sql.FieldHasSuffix(FieldPhone, v))
  607. }
  608. // PhoneEqualFold applies the EqualFold predicate on the "phone" field.
  609. func PhoneEqualFold(v string) predicate.Msg {
  610. return predicate.Msg(sql.FieldEqualFold(FieldPhone, v))
  611. }
  612. // PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
  613. func PhoneContainsFold(v string) predicate.Msg {
  614. return predicate.Msg(sql.FieldContainsFold(FieldPhone, v))
  615. }
  616. // And groups predicates with the AND operator between them.
  617. func And(predicates ...predicate.Msg) predicate.Msg {
  618. return predicate.Msg(sql.AndPredicates(predicates...))
  619. }
  620. // Or groups predicates with the OR operator between them.
  621. func Or(predicates ...predicate.Msg) predicate.Msg {
  622. return predicate.Msg(sql.OrPredicates(predicates...))
  623. }
  624. // Not applies the not operator on the given predicate.
  625. func Not(p predicate.Msg) predicate.Msg {
  626. return predicate.Msg(sql.NotPredicates(p))
  627. }