where.go 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. // Code generated by ent, DO NOT EDIT.
  2. package batchmsg
  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.BatchMsg {
  10. return predicate.BatchMsg(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id uint64) predicate.BatchMsg {
  14. return predicate.BatchMsg(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id uint64) predicate.BatchMsg {
  18. return predicate.BatchMsg(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...uint64) predicate.BatchMsg {
  22. return predicate.BatchMsg(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...uint64) predicate.BatchMsg {
  26. return predicate.BatchMsg(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id uint64) predicate.BatchMsg {
  30. return predicate.BatchMsg(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id uint64) predicate.BatchMsg {
  34. return predicate.BatchMsg(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id uint64) predicate.BatchMsg {
  38. return predicate.BatchMsg(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id uint64) predicate.BatchMsg {
  42. return predicate.BatchMsg(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.BatchMsg {
  46. return predicate.BatchMsg(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.BatchMsg {
  50. return predicate.BatchMsg(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.BatchMsg {
  54. return predicate.BatchMsg(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.BatchMsg {
  58. return predicate.BatchMsg(sql.FieldEQ(FieldStatus, v))
  59. }
  60. // BatchNo applies equality check predicate on the "batch_no" field. It's identical to BatchNoEQ.
  61. func BatchNo(v string) predicate.BatchMsg {
  62. return predicate.BatchMsg(sql.FieldEQ(FieldBatchNo, v))
  63. }
  64. // Fromwxid applies equality check predicate on the "fromwxid" field. It's identical to FromwxidEQ.
  65. func Fromwxid(v string) predicate.BatchMsg {
  66. return predicate.BatchMsg(sql.FieldEQ(FieldFromwxid, v))
  67. }
  68. // Msg applies equality check predicate on the "msg" field. It's identical to MsgEQ.
  69. func Msg(v string) predicate.BatchMsg {
  70. return predicate.BatchMsg(sql.FieldEQ(FieldMsg, v))
  71. }
  72. // Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.
  73. func Tag(v string) predicate.BatchMsg {
  74. return predicate.BatchMsg(sql.FieldEQ(FieldTag, v))
  75. }
  76. // Total applies equality check predicate on the "total" field. It's identical to TotalEQ.
  77. func Total(v int32) predicate.BatchMsg {
  78. return predicate.BatchMsg(sql.FieldEQ(FieldTotal, v))
  79. }
  80. // Success applies equality check predicate on the "success" field. It's identical to SuccessEQ.
  81. func Success(v int32) predicate.BatchMsg {
  82. return predicate.BatchMsg(sql.FieldEQ(FieldSuccess, v))
  83. }
  84. // Fail applies equality check predicate on the "fail" field. It's identical to FailEQ.
  85. func Fail(v int32) predicate.BatchMsg {
  86. return predicate.BatchMsg(sql.FieldEQ(FieldFail, v))
  87. }
  88. // StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.
  89. func StartTime(v time.Time) predicate.BatchMsg {
  90. return predicate.BatchMsg(sql.FieldEQ(FieldStartTime, v))
  91. }
  92. // StopTime applies equality check predicate on the "stop_time" field. It's identical to StopTimeEQ.
  93. func StopTime(v time.Time) predicate.BatchMsg {
  94. return predicate.BatchMsg(sql.FieldEQ(FieldStopTime, v))
  95. }
  96. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  97. func CreatedAtEQ(v time.Time) predicate.BatchMsg {
  98. return predicate.BatchMsg(sql.FieldEQ(FieldCreatedAt, v))
  99. }
  100. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  101. func CreatedAtNEQ(v time.Time) predicate.BatchMsg {
  102. return predicate.BatchMsg(sql.FieldNEQ(FieldCreatedAt, v))
  103. }
  104. // CreatedAtIn applies the In predicate on the "created_at" field.
  105. func CreatedAtIn(vs ...time.Time) predicate.BatchMsg {
  106. return predicate.BatchMsg(sql.FieldIn(FieldCreatedAt, vs...))
  107. }
  108. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  109. func CreatedAtNotIn(vs ...time.Time) predicate.BatchMsg {
  110. return predicate.BatchMsg(sql.FieldNotIn(FieldCreatedAt, vs...))
  111. }
  112. // CreatedAtGT applies the GT predicate on the "created_at" field.
  113. func CreatedAtGT(v time.Time) predicate.BatchMsg {
  114. return predicate.BatchMsg(sql.FieldGT(FieldCreatedAt, v))
  115. }
  116. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  117. func CreatedAtGTE(v time.Time) predicate.BatchMsg {
  118. return predicate.BatchMsg(sql.FieldGTE(FieldCreatedAt, v))
  119. }
  120. // CreatedAtLT applies the LT predicate on the "created_at" field.
  121. func CreatedAtLT(v time.Time) predicate.BatchMsg {
  122. return predicate.BatchMsg(sql.FieldLT(FieldCreatedAt, v))
  123. }
  124. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  125. func CreatedAtLTE(v time.Time) predicate.BatchMsg {
  126. return predicate.BatchMsg(sql.FieldLTE(FieldCreatedAt, v))
  127. }
  128. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  129. func UpdatedAtEQ(v time.Time) predicate.BatchMsg {
  130. return predicate.BatchMsg(sql.FieldEQ(FieldUpdatedAt, v))
  131. }
  132. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  133. func UpdatedAtNEQ(v time.Time) predicate.BatchMsg {
  134. return predicate.BatchMsg(sql.FieldNEQ(FieldUpdatedAt, v))
  135. }
  136. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  137. func UpdatedAtIn(vs ...time.Time) predicate.BatchMsg {
  138. return predicate.BatchMsg(sql.FieldIn(FieldUpdatedAt, vs...))
  139. }
  140. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  141. func UpdatedAtNotIn(vs ...time.Time) predicate.BatchMsg {
  142. return predicate.BatchMsg(sql.FieldNotIn(FieldUpdatedAt, vs...))
  143. }
  144. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  145. func UpdatedAtGT(v time.Time) predicate.BatchMsg {
  146. return predicate.BatchMsg(sql.FieldGT(FieldUpdatedAt, v))
  147. }
  148. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  149. func UpdatedAtGTE(v time.Time) predicate.BatchMsg {
  150. return predicate.BatchMsg(sql.FieldGTE(FieldUpdatedAt, v))
  151. }
  152. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  153. func UpdatedAtLT(v time.Time) predicate.BatchMsg {
  154. return predicate.BatchMsg(sql.FieldLT(FieldUpdatedAt, v))
  155. }
  156. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  157. func UpdatedAtLTE(v time.Time) predicate.BatchMsg {
  158. return predicate.BatchMsg(sql.FieldLTE(FieldUpdatedAt, v))
  159. }
  160. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  161. func DeletedAtEQ(v time.Time) predicate.BatchMsg {
  162. return predicate.BatchMsg(sql.FieldEQ(FieldDeletedAt, v))
  163. }
  164. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  165. func DeletedAtNEQ(v time.Time) predicate.BatchMsg {
  166. return predicate.BatchMsg(sql.FieldNEQ(FieldDeletedAt, v))
  167. }
  168. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  169. func DeletedAtIn(vs ...time.Time) predicate.BatchMsg {
  170. return predicate.BatchMsg(sql.FieldIn(FieldDeletedAt, vs...))
  171. }
  172. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  173. func DeletedAtNotIn(vs ...time.Time) predicate.BatchMsg {
  174. return predicate.BatchMsg(sql.FieldNotIn(FieldDeletedAt, vs...))
  175. }
  176. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  177. func DeletedAtGT(v time.Time) predicate.BatchMsg {
  178. return predicate.BatchMsg(sql.FieldGT(FieldDeletedAt, v))
  179. }
  180. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  181. func DeletedAtGTE(v time.Time) predicate.BatchMsg {
  182. return predicate.BatchMsg(sql.FieldGTE(FieldDeletedAt, v))
  183. }
  184. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  185. func DeletedAtLT(v time.Time) predicate.BatchMsg {
  186. return predicate.BatchMsg(sql.FieldLT(FieldDeletedAt, v))
  187. }
  188. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  189. func DeletedAtLTE(v time.Time) predicate.BatchMsg {
  190. return predicate.BatchMsg(sql.FieldLTE(FieldDeletedAt, v))
  191. }
  192. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  193. func DeletedAtIsNil() predicate.BatchMsg {
  194. return predicate.BatchMsg(sql.FieldIsNull(FieldDeletedAt))
  195. }
  196. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  197. func DeletedAtNotNil() predicate.BatchMsg {
  198. return predicate.BatchMsg(sql.FieldNotNull(FieldDeletedAt))
  199. }
  200. // StatusEQ applies the EQ predicate on the "status" field.
  201. func StatusEQ(v uint8) predicate.BatchMsg {
  202. return predicate.BatchMsg(sql.FieldEQ(FieldStatus, v))
  203. }
  204. // StatusNEQ applies the NEQ predicate on the "status" field.
  205. func StatusNEQ(v uint8) predicate.BatchMsg {
  206. return predicate.BatchMsg(sql.FieldNEQ(FieldStatus, v))
  207. }
  208. // StatusIn applies the In predicate on the "status" field.
  209. func StatusIn(vs ...uint8) predicate.BatchMsg {
  210. return predicate.BatchMsg(sql.FieldIn(FieldStatus, vs...))
  211. }
  212. // StatusNotIn applies the NotIn predicate on the "status" field.
  213. func StatusNotIn(vs ...uint8) predicate.BatchMsg {
  214. return predicate.BatchMsg(sql.FieldNotIn(FieldStatus, vs...))
  215. }
  216. // StatusGT applies the GT predicate on the "status" field.
  217. func StatusGT(v uint8) predicate.BatchMsg {
  218. return predicate.BatchMsg(sql.FieldGT(FieldStatus, v))
  219. }
  220. // StatusGTE applies the GTE predicate on the "status" field.
  221. func StatusGTE(v uint8) predicate.BatchMsg {
  222. return predicate.BatchMsg(sql.FieldGTE(FieldStatus, v))
  223. }
  224. // StatusLT applies the LT predicate on the "status" field.
  225. func StatusLT(v uint8) predicate.BatchMsg {
  226. return predicate.BatchMsg(sql.FieldLT(FieldStatus, v))
  227. }
  228. // StatusLTE applies the LTE predicate on the "status" field.
  229. func StatusLTE(v uint8) predicate.BatchMsg {
  230. return predicate.BatchMsg(sql.FieldLTE(FieldStatus, v))
  231. }
  232. // StatusIsNil applies the IsNil predicate on the "status" field.
  233. func StatusIsNil() predicate.BatchMsg {
  234. return predicate.BatchMsg(sql.FieldIsNull(FieldStatus))
  235. }
  236. // StatusNotNil applies the NotNil predicate on the "status" field.
  237. func StatusNotNil() predicate.BatchMsg {
  238. return predicate.BatchMsg(sql.FieldNotNull(FieldStatus))
  239. }
  240. // BatchNoEQ applies the EQ predicate on the "batch_no" field.
  241. func BatchNoEQ(v string) predicate.BatchMsg {
  242. return predicate.BatchMsg(sql.FieldEQ(FieldBatchNo, v))
  243. }
  244. // BatchNoNEQ applies the NEQ predicate on the "batch_no" field.
  245. func BatchNoNEQ(v string) predicate.BatchMsg {
  246. return predicate.BatchMsg(sql.FieldNEQ(FieldBatchNo, v))
  247. }
  248. // BatchNoIn applies the In predicate on the "batch_no" field.
  249. func BatchNoIn(vs ...string) predicate.BatchMsg {
  250. return predicate.BatchMsg(sql.FieldIn(FieldBatchNo, vs...))
  251. }
  252. // BatchNoNotIn applies the NotIn predicate on the "batch_no" field.
  253. func BatchNoNotIn(vs ...string) predicate.BatchMsg {
  254. return predicate.BatchMsg(sql.FieldNotIn(FieldBatchNo, vs...))
  255. }
  256. // BatchNoGT applies the GT predicate on the "batch_no" field.
  257. func BatchNoGT(v string) predicate.BatchMsg {
  258. return predicate.BatchMsg(sql.FieldGT(FieldBatchNo, v))
  259. }
  260. // BatchNoGTE applies the GTE predicate on the "batch_no" field.
  261. func BatchNoGTE(v string) predicate.BatchMsg {
  262. return predicate.BatchMsg(sql.FieldGTE(FieldBatchNo, v))
  263. }
  264. // BatchNoLT applies the LT predicate on the "batch_no" field.
  265. func BatchNoLT(v string) predicate.BatchMsg {
  266. return predicate.BatchMsg(sql.FieldLT(FieldBatchNo, v))
  267. }
  268. // BatchNoLTE applies the LTE predicate on the "batch_no" field.
  269. func BatchNoLTE(v string) predicate.BatchMsg {
  270. return predicate.BatchMsg(sql.FieldLTE(FieldBatchNo, v))
  271. }
  272. // BatchNoContains applies the Contains predicate on the "batch_no" field.
  273. func BatchNoContains(v string) predicate.BatchMsg {
  274. return predicate.BatchMsg(sql.FieldContains(FieldBatchNo, v))
  275. }
  276. // BatchNoHasPrefix applies the HasPrefix predicate on the "batch_no" field.
  277. func BatchNoHasPrefix(v string) predicate.BatchMsg {
  278. return predicate.BatchMsg(sql.FieldHasPrefix(FieldBatchNo, v))
  279. }
  280. // BatchNoHasSuffix applies the HasSuffix predicate on the "batch_no" field.
  281. func BatchNoHasSuffix(v string) predicate.BatchMsg {
  282. return predicate.BatchMsg(sql.FieldHasSuffix(FieldBatchNo, v))
  283. }
  284. // BatchNoIsNil applies the IsNil predicate on the "batch_no" field.
  285. func BatchNoIsNil() predicate.BatchMsg {
  286. return predicate.BatchMsg(sql.FieldIsNull(FieldBatchNo))
  287. }
  288. // BatchNoNotNil applies the NotNil predicate on the "batch_no" field.
  289. func BatchNoNotNil() predicate.BatchMsg {
  290. return predicate.BatchMsg(sql.FieldNotNull(FieldBatchNo))
  291. }
  292. // BatchNoEqualFold applies the EqualFold predicate on the "batch_no" field.
  293. func BatchNoEqualFold(v string) predicate.BatchMsg {
  294. return predicate.BatchMsg(sql.FieldEqualFold(FieldBatchNo, v))
  295. }
  296. // BatchNoContainsFold applies the ContainsFold predicate on the "batch_no" field.
  297. func BatchNoContainsFold(v string) predicate.BatchMsg {
  298. return predicate.BatchMsg(sql.FieldContainsFold(FieldBatchNo, v))
  299. }
  300. // FromwxidEQ applies the EQ predicate on the "fromwxid" field.
  301. func FromwxidEQ(v string) predicate.BatchMsg {
  302. return predicate.BatchMsg(sql.FieldEQ(FieldFromwxid, v))
  303. }
  304. // FromwxidNEQ applies the NEQ predicate on the "fromwxid" field.
  305. func FromwxidNEQ(v string) predicate.BatchMsg {
  306. return predicate.BatchMsg(sql.FieldNEQ(FieldFromwxid, v))
  307. }
  308. // FromwxidIn applies the In predicate on the "fromwxid" field.
  309. func FromwxidIn(vs ...string) predicate.BatchMsg {
  310. return predicate.BatchMsg(sql.FieldIn(FieldFromwxid, vs...))
  311. }
  312. // FromwxidNotIn applies the NotIn predicate on the "fromwxid" field.
  313. func FromwxidNotIn(vs ...string) predicate.BatchMsg {
  314. return predicate.BatchMsg(sql.FieldNotIn(FieldFromwxid, vs...))
  315. }
  316. // FromwxidGT applies the GT predicate on the "fromwxid" field.
  317. func FromwxidGT(v string) predicate.BatchMsg {
  318. return predicate.BatchMsg(sql.FieldGT(FieldFromwxid, v))
  319. }
  320. // FromwxidGTE applies the GTE predicate on the "fromwxid" field.
  321. func FromwxidGTE(v string) predicate.BatchMsg {
  322. return predicate.BatchMsg(sql.FieldGTE(FieldFromwxid, v))
  323. }
  324. // FromwxidLT applies the LT predicate on the "fromwxid" field.
  325. func FromwxidLT(v string) predicate.BatchMsg {
  326. return predicate.BatchMsg(sql.FieldLT(FieldFromwxid, v))
  327. }
  328. // FromwxidLTE applies the LTE predicate on the "fromwxid" field.
  329. func FromwxidLTE(v string) predicate.BatchMsg {
  330. return predicate.BatchMsg(sql.FieldLTE(FieldFromwxid, v))
  331. }
  332. // FromwxidContains applies the Contains predicate on the "fromwxid" field.
  333. func FromwxidContains(v string) predicate.BatchMsg {
  334. return predicate.BatchMsg(sql.FieldContains(FieldFromwxid, v))
  335. }
  336. // FromwxidHasPrefix applies the HasPrefix predicate on the "fromwxid" field.
  337. func FromwxidHasPrefix(v string) predicate.BatchMsg {
  338. return predicate.BatchMsg(sql.FieldHasPrefix(FieldFromwxid, v))
  339. }
  340. // FromwxidHasSuffix applies the HasSuffix predicate on the "fromwxid" field.
  341. func FromwxidHasSuffix(v string) predicate.BatchMsg {
  342. return predicate.BatchMsg(sql.FieldHasSuffix(FieldFromwxid, v))
  343. }
  344. // FromwxidIsNil applies the IsNil predicate on the "fromwxid" field.
  345. func FromwxidIsNil() predicate.BatchMsg {
  346. return predicate.BatchMsg(sql.FieldIsNull(FieldFromwxid))
  347. }
  348. // FromwxidNotNil applies the NotNil predicate on the "fromwxid" field.
  349. func FromwxidNotNil() predicate.BatchMsg {
  350. return predicate.BatchMsg(sql.FieldNotNull(FieldFromwxid))
  351. }
  352. // FromwxidEqualFold applies the EqualFold predicate on the "fromwxid" field.
  353. func FromwxidEqualFold(v string) predicate.BatchMsg {
  354. return predicate.BatchMsg(sql.FieldEqualFold(FieldFromwxid, v))
  355. }
  356. // FromwxidContainsFold applies the ContainsFold predicate on the "fromwxid" field.
  357. func FromwxidContainsFold(v string) predicate.BatchMsg {
  358. return predicate.BatchMsg(sql.FieldContainsFold(FieldFromwxid, v))
  359. }
  360. // MsgEQ applies the EQ predicate on the "msg" field.
  361. func MsgEQ(v string) predicate.BatchMsg {
  362. return predicate.BatchMsg(sql.FieldEQ(FieldMsg, v))
  363. }
  364. // MsgNEQ applies the NEQ predicate on the "msg" field.
  365. func MsgNEQ(v string) predicate.BatchMsg {
  366. return predicate.BatchMsg(sql.FieldNEQ(FieldMsg, v))
  367. }
  368. // MsgIn applies the In predicate on the "msg" field.
  369. func MsgIn(vs ...string) predicate.BatchMsg {
  370. return predicate.BatchMsg(sql.FieldIn(FieldMsg, vs...))
  371. }
  372. // MsgNotIn applies the NotIn predicate on the "msg" field.
  373. func MsgNotIn(vs ...string) predicate.BatchMsg {
  374. return predicate.BatchMsg(sql.FieldNotIn(FieldMsg, vs...))
  375. }
  376. // MsgGT applies the GT predicate on the "msg" field.
  377. func MsgGT(v string) predicate.BatchMsg {
  378. return predicate.BatchMsg(sql.FieldGT(FieldMsg, v))
  379. }
  380. // MsgGTE applies the GTE predicate on the "msg" field.
  381. func MsgGTE(v string) predicate.BatchMsg {
  382. return predicate.BatchMsg(sql.FieldGTE(FieldMsg, v))
  383. }
  384. // MsgLT applies the LT predicate on the "msg" field.
  385. func MsgLT(v string) predicate.BatchMsg {
  386. return predicate.BatchMsg(sql.FieldLT(FieldMsg, v))
  387. }
  388. // MsgLTE applies the LTE predicate on the "msg" field.
  389. func MsgLTE(v string) predicate.BatchMsg {
  390. return predicate.BatchMsg(sql.FieldLTE(FieldMsg, v))
  391. }
  392. // MsgContains applies the Contains predicate on the "msg" field.
  393. func MsgContains(v string) predicate.BatchMsg {
  394. return predicate.BatchMsg(sql.FieldContains(FieldMsg, v))
  395. }
  396. // MsgHasPrefix applies the HasPrefix predicate on the "msg" field.
  397. func MsgHasPrefix(v string) predicate.BatchMsg {
  398. return predicate.BatchMsg(sql.FieldHasPrefix(FieldMsg, v))
  399. }
  400. // MsgHasSuffix applies the HasSuffix predicate on the "msg" field.
  401. func MsgHasSuffix(v string) predicate.BatchMsg {
  402. return predicate.BatchMsg(sql.FieldHasSuffix(FieldMsg, v))
  403. }
  404. // MsgIsNil applies the IsNil predicate on the "msg" field.
  405. func MsgIsNil() predicate.BatchMsg {
  406. return predicate.BatchMsg(sql.FieldIsNull(FieldMsg))
  407. }
  408. // MsgNotNil applies the NotNil predicate on the "msg" field.
  409. func MsgNotNil() predicate.BatchMsg {
  410. return predicate.BatchMsg(sql.FieldNotNull(FieldMsg))
  411. }
  412. // MsgEqualFold applies the EqualFold predicate on the "msg" field.
  413. func MsgEqualFold(v string) predicate.BatchMsg {
  414. return predicate.BatchMsg(sql.FieldEqualFold(FieldMsg, v))
  415. }
  416. // MsgContainsFold applies the ContainsFold predicate on the "msg" field.
  417. func MsgContainsFold(v string) predicate.BatchMsg {
  418. return predicate.BatchMsg(sql.FieldContainsFold(FieldMsg, v))
  419. }
  420. // TagEQ applies the EQ predicate on the "tag" field.
  421. func TagEQ(v string) predicate.BatchMsg {
  422. return predicate.BatchMsg(sql.FieldEQ(FieldTag, v))
  423. }
  424. // TagNEQ applies the NEQ predicate on the "tag" field.
  425. func TagNEQ(v string) predicate.BatchMsg {
  426. return predicate.BatchMsg(sql.FieldNEQ(FieldTag, v))
  427. }
  428. // TagIn applies the In predicate on the "tag" field.
  429. func TagIn(vs ...string) predicate.BatchMsg {
  430. return predicate.BatchMsg(sql.FieldIn(FieldTag, vs...))
  431. }
  432. // TagNotIn applies the NotIn predicate on the "tag" field.
  433. func TagNotIn(vs ...string) predicate.BatchMsg {
  434. return predicate.BatchMsg(sql.FieldNotIn(FieldTag, vs...))
  435. }
  436. // TagGT applies the GT predicate on the "tag" field.
  437. func TagGT(v string) predicate.BatchMsg {
  438. return predicate.BatchMsg(sql.FieldGT(FieldTag, v))
  439. }
  440. // TagGTE applies the GTE predicate on the "tag" field.
  441. func TagGTE(v string) predicate.BatchMsg {
  442. return predicate.BatchMsg(sql.FieldGTE(FieldTag, v))
  443. }
  444. // TagLT applies the LT predicate on the "tag" field.
  445. func TagLT(v string) predicate.BatchMsg {
  446. return predicate.BatchMsg(sql.FieldLT(FieldTag, v))
  447. }
  448. // TagLTE applies the LTE predicate on the "tag" field.
  449. func TagLTE(v string) predicate.BatchMsg {
  450. return predicate.BatchMsg(sql.FieldLTE(FieldTag, v))
  451. }
  452. // TagContains applies the Contains predicate on the "tag" field.
  453. func TagContains(v string) predicate.BatchMsg {
  454. return predicate.BatchMsg(sql.FieldContains(FieldTag, v))
  455. }
  456. // TagHasPrefix applies the HasPrefix predicate on the "tag" field.
  457. func TagHasPrefix(v string) predicate.BatchMsg {
  458. return predicate.BatchMsg(sql.FieldHasPrefix(FieldTag, v))
  459. }
  460. // TagHasSuffix applies the HasSuffix predicate on the "tag" field.
  461. func TagHasSuffix(v string) predicate.BatchMsg {
  462. return predicate.BatchMsg(sql.FieldHasSuffix(FieldTag, v))
  463. }
  464. // TagIsNil applies the IsNil predicate on the "tag" field.
  465. func TagIsNil() predicate.BatchMsg {
  466. return predicate.BatchMsg(sql.FieldIsNull(FieldTag))
  467. }
  468. // TagNotNil applies the NotNil predicate on the "tag" field.
  469. func TagNotNil() predicate.BatchMsg {
  470. return predicate.BatchMsg(sql.FieldNotNull(FieldTag))
  471. }
  472. // TagEqualFold applies the EqualFold predicate on the "tag" field.
  473. func TagEqualFold(v string) predicate.BatchMsg {
  474. return predicate.BatchMsg(sql.FieldEqualFold(FieldTag, v))
  475. }
  476. // TagContainsFold applies the ContainsFold predicate on the "tag" field.
  477. func TagContainsFold(v string) predicate.BatchMsg {
  478. return predicate.BatchMsg(sql.FieldContainsFold(FieldTag, v))
  479. }
  480. // TotalEQ applies the EQ predicate on the "total" field.
  481. func TotalEQ(v int32) predicate.BatchMsg {
  482. return predicate.BatchMsg(sql.FieldEQ(FieldTotal, v))
  483. }
  484. // TotalNEQ applies the NEQ predicate on the "total" field.
  485. func TotalNEQ(v int32) predicate.BatchMsg {
  486. return predicate.BatchMsg(sql.FieldNEQ(FieldTotal, v))
  487. }
  488. // TotalIn applies the In predicate on the "total" field.
  489. func TotalIn(vs ...int32) predicate.BatchMsg {
  490. return predicate.BatchMsg(sql.FieldIn(FieldTotal, vs...))
  491. }
  492. // TotalNotIn applies the NotIn predicate on the "total" field.
  493. func TotalNotIn(vs ...int32) predicate.BatchMsg {
  494. return predicate.BatchMsg(sql.FieldNotIn(FieldTotal, vs...))
  495. }
  496. // TotalGT applies the GT predicate on the "total" field.
  497. func TotalGT(v int32) predicate.BatchMsg {
  498. return predicate.BatchMsg(sql.FieldGT(FieldTotal, v))
  499. }
  500. // TotalGTE applies the GTE predicate on the "total" field.
  501. func TotalGTE(v int32) predicate.BatchMsg {
  502. return predicate.BatchMsg(sql.FieldGTE(FieldTotal, v))
  503. }
  504. // TotalLT applies the LT predicate on the "total" field.
  505. func TotalLT(v int32) predicate.BatchMsg {
  506. return predicate.BatchMsg(sql.FieldLT(FieldTotal, v))
  507. }
  508. // TotalLTE applies the LTE predicate on the "total" field.
  509. func TotalLTE(v int32) predicate.BatchMsg {
  510. return predicate.BatchMsg(sql.FieldLTE(FieldTotal, v))
  511. }
  512. // TotalIsNil applies the IsNil predicate on the "total" field.
  513. func TotalIsNil() predicate.BatchMsg {
  514. return predicate.BatchMsg(sql.FieldIsNull(FieldTotal))
  515. }
  516. // TotalNotNil applies the NotNil predicate on the "total" field.
  517. func TotalNotNil() predicate.BatchMsg {
  518. return predicate.BatchMsg(sql.FieldNotNull(FieldTotal))
  519. }
  520. // SuccessEQ applies the EQ predicate on the "success" field.
  521. func SuccessEQ(v int32) predicate.BatchMsg {
  522. return predicate.BatchMsg(sql.FieldEQ(FieldSuccess, v))
  523. }
  524. // SuccessNEQ applies the NEQ predicate on the "success" field.
  525. func SuccessNEQ(v int32) predicate.BatchMsg {
  526. return predicate.BatchMsg(sql.FieldNEQ(FieldSuccess, v))
  527. }
  528. // SuccessIn applies the In predicate on the "success" field.
  529. func SuccessIn(vs ...int32) predicate.BatchMsg {
  530. return predicate.BatchMsg(sql.FieldIn(FieldSuccess, vs...))
  531. }
  532. // SuccessNotIn applies the NotIn predicate on the "success" field.
  533. func SuccessNotIn(vs ...int32) predicate.BatchMsg {
  534. return predicate.BatchMsg(sql.FieldNotIn(FieldSuccess, vs...))
  535. }
  536. // SuccessGT applies the GT predicate on the "success" field.
  537. func SuccessGT(v int32) predicate.BatchMsg {
  538. return predicate.BatchMsg(sql.FieldGT(FieldSuccess, v))
  539. }
  540. // SuccessGTE applies the GTE predicate on the "success" field.
  541. func SuccessGTE(v int32) predicate.BatchMsg {
  542. return predicate.BatchMsg(sql.FieldGTE(FieldSuccess, v))
  543. }
  544. // SuccessLT applies the LT predicate on the "success" field.
  545. func SuccessLT(v int32) predicate.BatchMsg {
  546. return predicate.BatchMsg(sql.FieldLT(FieldSuccess, v))
  547. }
  548. // SuccessLTE applies the LTE predicate on the "success" field.
  549. func SuccessLTE(v int32) predicate.BatchMsg {
  550. return predicate.BatchMsg(sql.FieldLTE(FieldSuccess, v))
  551. }
  552. // SuccessIsNil applies the IsNil predicate on the "success" field.
  553. func SuccessIsNil() predicate.BatchMsg {
  554. return predicate.BatchMsg(sql.FieldIsNull(FieldSuccess))
  555. }
  556. // SuccessNotNil applies the NotNil predicate on the "success" field.
  557. func SuccessNotNil() predicate.BatchMsg {
  558. return predicate.BatchMsg(sql.FieldNotNull(FieldSuccess))
  559. }
  560. // FailEQ applies the EQ predicate on the "fail" field.
  561. func FailEQ(v int32) predicate.BatchMsg {
  562. return predicate.BatchMsg(sql.FieldEQ(FieldFail, v))
  563. }
  564. // FailNEQ applies the NEQ predicate on the "fail" field.
  565. func FailNEQ(v int32) predicate.BatchMsg {
  566. return predicate.BatchMsg(sql.FieldNEQ(FieldFail, v))
  567. }
  568. // FailIn applies the In predicate on the "fail" field.
  569. func FailIn(vs ...int32) predicate.BatchMsg {
  570. return predicate.BatchMsg(sql.FieldIn(FieldFail, vs...))
  571. }
  572. // FailNotIn applies the NotIn predicate on the "fail" field.
  573. func FailNotIn(vs ...int32) predicate.BatchMsg {
  574. return predicate.BatchMsg(sql.FieldNotIn(FieldFail, vs...))
  575. }
  576. // FailGT applies the GT predicate on the "fail" field.
  577. func FailGT(v int32) predicate.BatchMsg {
  578. return predicate.BatchMsg(sql.FieldGT(FieldFail, v))
  579. }
  580. // FailGTE applies the GTE predicate on the "fail" field.
  581. func FailGTE(v int32) predicate.BatchMsg {
  582. return predicate.BatchMsg(sql.FieldGTE(FieldFail, v))
  583. }
  584. // FailLT applies the LT predicate on the "fail" field.
  585. func FailLT(v int32) predicate.BatchMsg {
  586. return predicate.BatchMsg(sql.FieldLT(FieldFail, v))
  587. }
  588. // FailLTE applies the LTE predicate on the "fail" field.
  589. func FailLTE(v int32) predicate.BatchMsg {
  590. return predicate.BatchMsg(sql.FieldLTE(FieldFail, v))
  591. }
  592. // FailIsNil applies the IsNil predicate on the "fail" field.
  593. func FailIsNil() predicate.BatchMsg {
  594. return predicate.BatchMsg(sql.FieldIsNull(FieldFail))
  595. }
  596. // FailNotNil applies the NotNil predicate on the "fail" field.
  597. func FailNotNil() predicate.BatchMsg {
  598. return predicate.BatchMsg(sql.FieldNotNull(FieldFail))
  599. }
  600. // StartTimeEQ applies the EQ predicate on the "start_time" field.
  601. func StartTimeEQ(v time.Time) predicate.BatchMsg {
  602. return predicate.BatchMsg(sql.FieldEQ(FieldStartTime, v))
  603. }
  604. // StartTimeNEQ applies the NEQ predicate on the "start_time" field.
  605. func StartTimeNEQ(v time.Time) predicate.BatchMsg {
  606. return predicate.BatchMsg(sql.FieldNEQ(FieldStartTime, v))
  607. }
  608. // StartTimeIn applies the In predicate on the "start_time" field.
  609. func StartTimeIn(vs ...time.Time) predicate.BatchMsg {
  610. return predicate.BatchMsg(sql.FieldIn(FieldStartTime, vs...))
  611. }
  612. // StartTimeNotIn applies the NotIn predicate on the "start_time" field.
  613. func StartTimeNotIn(vs ...time.Time) predicate.BatchMsg {
  614. return predicate.BatchMsg(sql.FieldNotIn(FieldStartTime, vs...))
  615. }
  616. // StartTimeGT applies the GT predicate on the "start_time" field.
  617. func StartTimeGT(v time.Time) predicate.BatchMsg {
  618. return predicate.BatchMsg(sql.FieldGT(FieldStartTime, v))
  619. }
  620. // StartTimeGTE applies the GTE predicate on the "start_time" field.
  621. func StartTimeGTE(v time.Time) predicate.BatchMsg {
  622. return predicate.BatchMsg(sql.FieldGTE(FieldStartTime, v))
  623. }
  624. // StartTimeLT applies the LT predicate on the "start_time" field.
  625. func StartTimeLT(v time.Time) predicate.BatchMsg {
  626. return predicate.BatchMsg(sql.FieldLT(FieldStartTime, v))
  627. }
  628. // StartTimeLTE applies the LTE predicate on the "start_time" field.
  629. func StartTimeLTE(v time.Time) predicate.BatchMsg {
  630. return predicate.BatchMsg(sql.FieldLTE(FieldStartTime, v))
  631. }
  632. // StartTimeIsNil applies the IsNil predicate on the "start_time" field.
  633. func StartTimeIsNil() predicate.BatchMsg {
  634. return predicate.BatchMsg(sql.FieldIsNull(FieldStartTime))
  635. }
  636. // StartTimeNotNil applies the NotNil predicate on the "start_time" field.
  637. func StartTimeNotNil() predicate.BatchMsg {
  638. return predicate.BatchMsg(sql.FieldNotNull(FieldStartTime))
  639. }
  640. // StopTimeEQ applies the EQ predicate on the "stop_time" field.
  641. func StopTimeEQ(v time.Time) predicate.BatchMsg {
  642. return predicate.BatchMsg(sql.FieldEQ(FieldStopTime, v))
  643. }
  644. // StopTimeNEQ applies the NEQ predicate on the "stop_time" field.
  645. func StopTimeNEQ(v time.Time) predicate.BatchMsg {
  646. return predicate.BatchMsg(sql.FieldNEQ(FieldStopTime, v))
  647. }
  648. // StopTimeIn applies the In predicate on the "stop_time" field.
  649. func StopTimeIn(vs ...time.Time) predicate.BatchMsg {
  650. return predicate.BatchMsg(sql.FieldIn(FieldStopTime, vs...))
  651. }
  652. // StopTimeNotIn applies the NotIn predicate on the "stop_time" field.
  653. func StopTimeNotIn(vs ...time.Time) predicate.BatchMsg {
  654. return predicate.BatchMsg(sql.FieldNotIn(FieldStopTime, vs...))
  655. }
  656. // StopTimeGT applies the GT predicate on the "stop_time" field.
  657. func StopTimeGT(v time.Time) predicate.BatchMsg {
  658. return predicate.BatchMsg(sql.FieldGT(FieldStopTime, v))
  659. }
  660. // StopTimeGTE applies the GTE predicate on the "stop_time" field.
  661. func StopTimeGTE(v time.Time) predicate.BatchMsg {
  662. return predicate.BatchMsg(sql.FieldGTE(FieldStopTime, v))
  663. }
  664. // StopTimeLT applies the LT predicate on the "stop_time" field.
  665. func StopTimeLT(v time.Time) predicate.BatchMsg {
  666. return predicate.BatchMsg(sql.FieldLT(FieldStopTime, v))
  667. }
  668. // StopTimeLTE applies the LTE predicate on the "stop_time" field.
  669. func StopTimeLTE(v time.Time) predicate.BatchMsg {
  670. return predicate.BatchMsg(sql.FieldLTE(FieldStopTime, v))
  671. }
  672. // StopTimeIsNil applies the IsNil predicate on the "stop_time" field.
  673. func StopTimeIsNil() predicate.BatchMsg {
  674. return predicate.BatchMsg(sql.FieldIsNull(FieldStopTime))
  675. }
  676. // StopTimeNotNil applies the NotNil predicate on the "stop_time" field.
  677. func StopTimeNotNil() predicate.BatchMsg {
  678. return predicate.BatchMsg(sql.FieldNotNull(FieldStopTime))
  679. }
  680. // And groups predicates with the AND operator between them.
  681. func And(predicates ...predicate.BatchMsg) predicate.BatchMsg {
  682. return predicate.BatchMsg(sql.AndPredicates(predicates...))
  683. }
  684. // Or groups predicates with the OR operator between them.
  685. func Or(predicates ...predicate.BatchMsg) predicate.BatchMsg {
  686. return predicate.BatchMsg(sql.OrPredicates(predicates...))
  687. }
  688. // Not applies the not operator on the given predicate.
  689. func Not(p predicate.BatchMsg) predicate.BatchMsg {
  690. return predicate.BatchMsg(sql.NotPredicates(p))
  691. }