where.go 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180
  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. // TaskName applies equality check predicate on the "task_name" field. It's identical to TaskNameEQ.
  65. func TaskName(v string) predicate.BatchMsg {
  66. return predicate.BatchMsg(sql.FieldEQ(FieldTaskName, v))
  67. }
  68. // Fromwxid applies equality check predicate on the "fromwxid" field. It's identical to FromwxidEQ.
  69. func Fromwxid(v string) predicate.BatchMsg {
  70. return predicate.BatchMsg(sql.FieldEQ(FieldFromwxid, v))
  71. }
  72. // Msg applies equality check predicate on the "msg" field. It's identical to MsgEQ.
  73. func Msg(v string) predicate.BatchMsg {
  74. return predicate.BatchMsg(sql.FieldEQ(FieldMsg, v))
  75. }
  76. // Tag applies equality check predicate on the "tag" field. It's identical to TagEQ.
  77. func Tag(v string) predicate.BatchMsg {
  78. return predicate.BatchMsg(sql.FieldEQ(FieldTag, v))
  79. }
  80. // Tagids applies equality check predicate on the "tagids" field. It's identical to TagidsEQ.
  81. func Tagids(v string) predicate.BatchMsg {
  82. return predicate.BatchMsg(sql.FieldEQ(FieldTagids, v))
  83. }
  84. // Total applies equality check predicate on the "total" field. It's identical to TotalEQ.
  85. func Total(v int32) predicate.BatchMsg {
  86. return predicate.BatchMsg(sql.FieldEQ(FieldTotal, v))
  87. }
  88. // Success applies equality check predicate on the "success" field. It's identical to SuccessEQ.
  89. func Success(v int32) predicate.BatchMsg {
  90. return predicate.BatchMsg(sql.FieldEQ(FieldSuccess, v))
  91. }
  92. // Fail applies equality check predicate on the "fail" field. It's identical to FailEQ.
  93. func Fail(v int32) predicate.BatchMsg {
  94. return predicate.BatchMsg(sql.FieldEQ(FieldFail, v))
  95. }
  96. // StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.
  97. func StartTime(v time.Time) predicate.BatchMsg {
  98. return predicate.BatchMsg(sql.FieldEQ(FieldStartTime, v))
  99. }
  100. // StopTime applies equality check predicate on the "stop_time" field. It's identical to StopTimeEQ.
  101. func StopTime(v time.Time) predicate.BatchMsg {
  102. return predicate.BatchMsg(sql.FieldEQ(FieldStopTime, v))
  103. }
  104. // SendTime applies equality check predicate on the "send_time" field. It's identical to SendTimeEQ.
  105. func SendTime(v time.Time) predicate.BatchMsg {
  106. return predicate.BatchMsg(sql.FieldEQ(FieldSendTime, v))
  107. }
  108. // Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
  109. func Type(v int32) predicate.BatchMsg {
  110. return predicate.BatchMsg(sql.FieldEQ(FieldType, v))
  111. }
  112. // OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
  113. func OrganizationID(v uint64) predicate.BatchMsg {
  114. return predicate.BatchMsg(sql.FieldEQ(FieldOrganizationID, v))
  115. }
  116. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  117. func CreatedAtEQ(v time.Time) predicate.BatchMsg {
  118. return predicate.BatchMsg(sql.FieldEQ(FieldCreatedAt, v))
  119. }
  120. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  121. func CreatedAtNEQ(v time.Time) predicate.BatchMsg {
  122. return predicate.BatchMsg(sql.FieldNEQ(FieldCreatedAt, v))
  123. }
  124. // CreatedAtIn applies the In predicate on the "created_at" field.
  125. func CreatedAtIn(vs ...time.Time) predicate.BatchMsg {
  126. return predicate.BatchMsg(sql.FieldIn(FieldCreatedAt, vs...))
  127. }
  128. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  129. func CreatedAtNotIn(vs ...time.Time) predicate.BatchMsg {
  130. return predicate.BatchMsg(sql.FieldNotIn(FieldCreatedAt, vs...))
  131. }
  132. // CreatedAtGT applies the GT predicate on the "created_at" field.
  133. func CreatedAtGT(v time.Time) predicate.BatchMsg {
  134. return predicate.BatchMsg(sql.FieldGT(FieldCreatedAt, v))
  135. }
  136. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  137. func CreatedAtGTE(v time.Time) predicate.BatchMsg {
  138. return predicate.BatchMsg(sql.FieldGTE(FieldCreatedAt, v))
  139. }
  140. // CreatedAtLT applies the LT predicate on the "created_at" field.
  141. func CreatedAtLT(v time.Time) predicate.BatchMsg {
  142. return predicate.BatchMsg(sql.FieldLT(FieldCreatedAt, v))
  143. }
  144. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  145. func CreatedAtLTE(v time.Time) predicate.BatchMsg {
  146. return predicate.BatchMsg(sql.FieldLTE(FieldCreatedAt, v))
  147. }
  148. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  149. func UpdatedAtEQ(v time.Time) predicate.BatchMsg {
  150. return predicate.BatchMsg(sql.FieldEQ(FieldUpdatedAt, v))
  151. }
  152. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  153. func UpdatedAtNEQ(v time.Time) predicate.BatchMsg {
  154. return predicate.BatchMsg(sql.FieldNEQ(FieldUpdatedAt, v))
  155. }
  156. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  157. func UpdatedAtIn(vs ...time.Time) predicate.BatchMsg {
  158. return predicate.BatchMsg(sql.FieldIn(FieldUpdatedAt, vs...))
  159. }
  160. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  161. func UpdatedAtNotIn(vs ...time.Time) predicate.BatchMsg {
  162. return predicate.BatchMsg(sql.FieldNotIn(FieldUpdatedAt, vs...))
  163. }
  164. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  165. func UpdatedAtGT(v time.Time) predicate.BatchMsg {
  166. return predicate.BatchMsg(sql.FieldGT(FieldUpdatedAt, v))
  167. }
  168. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  169. func UpdatedAtGTE(v time.Time) predicate.BatchMsg {
  170. return predicate.BatchMsg(sql.FieldGTE(FieldUpdatedAt, v))
  171. }
  172. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  173. func UpdatedAtLT(v time.Time) predicate.BatchMsg {
  174. return predicate.BatchMsg(sql.FieldLT(FieldUpdatedAt, v))
  175. }
  176. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  177. func UpdatedAtLTE(v time.Time) predicate.BatchMsg {
  178. return predicate.BatchMsg(sql.FieldLTE(FieldUpdatedAt, v))
  179. }
  180. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  181. func DeletedAtEQ(v time.Time) predicate.BatchMsg {
  182. return predicate.BatchMsg(sql.FieldEQ(FieldDeletedAt, v))
  183. }
  184. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  185. func DeletedAtNEQ(v time.Time) predicate.BatchMsg {
  186. return predicate.BatchMsg(sql.FieldNEQ(FieldDeletedAt, v))
  187. }
  188. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  189. func DeletedAtIn(vs ...time.Time) predicate.BatchMsg {
  190. return predicate.BatchMsg(sql.FieldIn(FieldDeletedAt, vs...))
  191. }
  192. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  193. func DeletedAtNotIn(vs ...time.Time) predicate.BatchMsg {
  194. return predicate.BatchMsg(sql.FieldNotIn(FieldDeletedAt, vs...))
  195. }
  196. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  197. func DeletedAtGT(v time.Time) predicate.BatchMsg {
  198. return predicate.BatchMsg(sql.FieldGT(FieldDeletedAt, v))
  199. }
  200. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  201. func DeletedAtGTE(v time.Time) predicate.BatchMsg {
  202. return predicate.BatchMsg(sql.FieldGTE(FieldDeletedAt, v))
  203. }
  204. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  205. func DeletedAtLT(v time.Time) predicate.BatchMsg {
  206. return predicate.BatchMsg(sql.FieldLT(FieldDeletedAt, v))
  207. }
  208. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  209. func DeletedAtLTE(v time.Time) predicate.BatchMsg {
  210. return predicate.BatchMsg(sql.FieldLTE(FieldDeletedAt, v))
  211. }
  212. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  213. func DeletedAtIsNil() predicate.BatchMsg {
  214. return predicate.BatchMsg(sql.FieldIsNull(FieldDeletedAt))
  215. }
  216. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  217. func DeletedAtNotNil() predicate.BatchMsg {
  218. return predicate.BatchMsg(sql.FieldNotNull(FieldDeletedAt))
  219. }
  220. // StatusEQ applies the EQ predicate on the "status" field.
  221. func StatusEQ(v uint8) predicate.BatchMsg {
  222. return predicate.BatchMsg(sql.FieldEQ(FieldStatus, v))
  223. }
  224. // StatusNEQ applies the NEQ predicate on the "status" field.
  225. func StatusNEQ(v uint8) predicate.BatchMsg {
  226. return predicate.BatchMsg(sql.FieldNEQ(FieldStatus, v))
  227. }
  228. // StatusIn applies the In predicate on the "status" field.
  229. func StatusIn(vs ...uint8) predicate.BatchMsg {
  230. return predicate.BatchMsg(sql.FieldIn(FieldStatus, vs...))
  231. }
  232. // StatusNotIn applies the NotIn predicate on the "status" field.
  233. func StatusNotIn(vs ...uint8) predicate.BatchMsg {
  234. return predicate.BatchMsg(sql.FieldNotIn(FieldStatus, vs...))
  235. }
  236. // StatusGT applies the GT predicate on the "status" field.
  237. func StatusGT(v uint8) predicate.BatchMsg {
  238. return predicate.BatchMsg(sql.FieldGT(FieldStatus, v))
  239. }
  240. // StatusGTE applies the GTE predicate on the "status" field.
  241. func StatusGTE(v uint8) predicate.BatchMsg {
  242. return predicate.BatchMsg(sql.FieldGTE(FieldStatus, v))
  243. }
  244. // StatusLT applies the LT predicate on the "status" field.
  245. func StatusLT(v uint8) predicate.BatchMsg {
  246. return predicate.BatchMsg(sql.FieldLT(FieldStatus, v))
  247. }
  248. // StatusLTE applies the LTE predicate on the "status" field.
  249. func StatusLTE(v uint8) predicate.BatchMsg {
  250. return predicate.BatchMsg(sql.FieldLTE(FieldStatus, v))
  251. }
  252. // StatusIsNil applies the IsNil predicate on the "status" field.
  253. func StatusIsNil() predicate.BatchMsg {
  254. return predicate.BatchMsg(sql.FieldIsNull(FieldStatus))
  255. }
  256. // StatusNotNil applies the NotNil predicate on the "status" field.
  257. func StatusNotNil() predicate.BatchMsg {
  258. return predicate.BatchMsg(sql.FieldNotNull(FieldStatus))
  259. }
  260. // BatchNoEQ applies the EQ predicate on the "batch_no" field.
  261. func BatchNoEQ(v string) predicate.BatchMsg {
  262. return predicate.BatchMsg(sql.FieldEQ(FieldBatchNo, v))
  263. }
  264. // BatchNoNEQ applies the NEQ predicate on the "batch_no" field.
  265. func BatchNoNEQ(v string) predicate.BatchMsg {
  266. return predicate.BatchMsg(sql.FieldNEQ(FieldBatchNo, v))
  267. }
  268. // BatchNoIn applies the In predicate on the "batch_no" field.
  269. func BatchNoIn(vs ...string) predicate.BatchMsg {
  270. return predicate.BatchMsg(sql.FieldIn(FieldBatchNo, vs...))
  271. }
  272. // BatchNoNotIn applies the NotIn predicate on the "batch_no" field.
  273. func BatchNoNotIn(vs ...string) predicate.BatchMsg {
  274. return predicate.BatchMsg(sql.FieldNotIn(FieldBatchNo, vs...))
  275. }
  276. // BatchNoGT applies the GT predicate on the "batch_no" field.
  277. func BatchNoGT(v string) predicate.BatchMsg {
  278. return predicate.BatchMsg(sql.FieldGT(FieldBatchNo, v))
  279. }
  280. // BatchNoGTE applies the GTE predicate on the "batch_no" field.
  281. func BatchNoGTE(v string) predicate.BatchMsg {
  282. return predicate.BatchMsg(sql.FieldGTE(FieldBatchNo, v))
  283. }
  284. // BatchNoLT applies the LT predicate on the "batch_no" field.
  285. func BatchNoLT(v string) predicate.BatchMsg {
  286. return predicate.BatchMsg(sql.FieldLT(FieldBatchNo, v))
  287. }
  288. // BatchNoLTE applies the LTE predicate on the "batch_no" field.
  289. func BatchNoLTE(v string) predicate.BatchMsg {
  290. return predicate.BatchMsg(sql.FieldLTE(FieldBatchNo, v))
  291. }
  292. // BatchNoContains applies the Contains predicate on the "batch_no" field.
  293. func BatchNoContains(v string) predicate.BatchMsg {
  294. return predicate.BatchMsg(sql.FieldContains(FieldBatchNo, v))
  295. }
  296. // BatchNoHasPrefix applies the HasPrefix predicate on the "batch_no" field.
  297. func BatchNoHasPrefix(v string) predicate.BatchMsg {
  298. return predicate.BatchMsg(sql.FieldHasPrefix(FieldBatchNo, v))
  299. }
  300. // BatchNoHasSuffix applies the HasSuffix predicate on the "batch_no" field.
  301. func BatchNoHasSuffix(v string) predicate.BatchMsg {
  302. return predicate.BatchMsg(sql.FieldHasSuffix(FieldBatchNo, v))
  303. }
  304. // BatchNoIsNil applies the IsNil predicate on the "batch_no" field.
  305. func BatchNoIsNil() predicate.BatchMsg {
  306. return predicate.BatchMsg(sql.FieldIsNull(FieldBatchNo))
  307. }
  308. // BatchNoNotNil applies the NotNil predicate on the "batch_no" field.
  309. func BatchNoNotNil() predicate.BatchMsg {
  310. return predicate.BatchMsg(sql.FieldNotNull(FieldBatchNo))
  311. }
  312. // BatchNoEqualFold applies the EqualFold predicate on the "batch_no" field.
  313. func BatchNoEqualFold(v string) predicate.BatchMsg {
  314. return predicate.BatchMsg(sql.FieldEqualFold(FieldBatchNo, v))
  315. }
  316. // BatchNoContainsFold applies the ContainsFold predicate on the "batch_no" field.
  317. func BatchNoContainsFold(v string) predicate.BatchMsg {
  318. return predicate.BatchMsg(sql.FieldContainsFold(FieldBatchNo, v))
  319. }
  320. // TaskNameEQ applies the EQ predicate on the "task_name" field.
  321. func TaskNameEQ(v string) predicate.BatchMsg {
  322. return predicate.BatchMsg(sql.FieldEQ(FieldTaskName, v))
  323. }
  324. // TaskNameNEQ applies the NEQ predicate on the "task_name" field.
  325. func TaskNameNEQ(v string) predicate.BatchMsg {
  326. return predicate.BatchMsg(sql.FieldNEQ(FieldTaskName, v))
  327. }
  328. // TaskNameIn applies the In predicate on the "task_name" field.
  329. func TaskNameIn(vs ...string) predicate.BatchMsg {
  330. return predicate.BatchMsg(sql.FieldIn(FieldTaskName, vs...))
  331. }
  332. // TaskNameNotIn applies the NotIn predicate on the "task_name" field.
  333. func TaskNameNotIn(vs ...string) predicate.BatchMsg {
  334. return predicate.BatchMsg(sql.FieldNotIn(FieldTaskName, vs...))
  335. }
  336. // TaskNameGT applies the GT predicate on the "task_name" field.
  337. func TaskNameGT(v string) predicate.BatchMsg {
  338. return predicate.BatchMsg(sql.FieldGT(FieldTaskName, v))
  339. }
  340. // TaskNameGTE applies the GTE predicate on the "task_name" field.
  341. func TaskNameGTE(v string) predicate.BatchMsg {
  342. return predicate.BatchMsg(sql.FieldGTE(FieldTaskName, v))
  343. }
  344. // TaskNameLT applies the LT predicate on the "task_name" field.
  345. func TaskNameLT(v string) predicate.BatchMsg {
  346. return predicate.BatchMsg(sql.FieldLT(FieldTaskName, v))
  347. }
  348. // TaskNameLTE applies the LTE predicate on the "task_name" field.
  349. func TaskNameLTE(v string) predicate.BatchMsg {
  350. return predicate.BatchMsg(sql.FieldLTE(FieldTaskName, v))
  351. }
  352. // TaskNameContains applies the Contains predicate on the "task_name" field.
  353. func TaskNameContains(v string) predicate.BatchMsg {
  354. return predicate.BatchMsg(sql.FieldContains(FieldTaskName, v))
  355. }
  356. // TaskNameHasPrefix applies the HasPrefix predicate on the "task_name" field.
  357. func TaskNameHasPrefix(v string) predicate.BatchMsg {
  358. return predicate.BatchMsg(sql.FieldHasPrefix(FieldTaskName, v))
  359. }
  360. // TaskNameHasSuffix applies the HasSuffix predicate on the "task_name" field.
  361. func TaskNameHasSuffix(v string) predicate.BatchMsg {
  362. return predicate.BatchMsg(sql.FieldHasSuffix(FieldTaskName, v))
  363. }
  364. // TaskNameIsNil applies the IsNil predicate on the "task_name" field.
  365. func TaskNameIsNil() predicate.BatchMsg {
  366. return predicate.BatchMsg(sql.FieldIsNull(FieldTaskName))
  367. }
  368. // TaskNameNotNil applies the NotNil predicate on the "task_name" field.
  369. func TaskNameNotNil() predicate.BatchMsg {
  370. return predicate.BatchMsg(sql.FieldNotNull(FieldTaskName))
  371. }
  372. // TaskNameEqualFold applies the EqualFold predicate on the "task_name" field.
  373. func TaskNameEqualFold(v string) predicate.BatchMsg {
  374. return predicate.BatchMsg(sql.FieldEqualFold(FieldTaskName, v))
  375. }
  376. // TaskNameContainsFold applies the ContainsFold predicate on the "task_name" field.
  377. func TaskNameContainsFold(v string) predicate.BatchMsg {
  378. return predicate.BatchMsg(sql.FieldContainsFold(FieldTaskName, v))
  379. }
  380. // FromwxidEQ applies the EQ predicate on the "fromwxid" field.
  381. func FromwxidEQ(v string) predicate.BatchMsg {
  382. return predicate.BatchMsg(sql.FieldEQ(FieldFromwxid, v))
  383. }
  384. // FromwxidNEQ applies the NEQ predicate on the "fromwxid" field.
  385. func FromwxidNEQ(v string) predicate.BatchMsg {
  386. return predicate.BatchMsg(sql.FieldNEQ(FieldFromwxid, v))
  387. }
  388. // FromwxidIn applies the In predicate on the "fromwxid" field.
  389. func FromwxidIn(vs ...string) predicate.BatchMsg {
  390. return predicate.BatchMsg(sql.FieldIn(FieldFromwxid, vs...))
  391. }
  392. // FromwxidNotIn applies the NotIn predicate on the "fromwxid" field.
  393. func FromwxidNotIn(vs ...string) predicate.BatchMsg {
  394. return predicate.BatchMsg(sql.FieldNotIn(FieldFromwxid, vs...))
  395. }
  396. // FromwxidGT applies the GT predicate on the "fromwxid" field.
  397. func FromwxidGT(v string) predicate.BatchMsg {
  398. return predicate.BatchMsg(sql.FieldGT(FieldFromwxid, v))
  399. }
  400. // FromwxidGTE applies the GTE predicate on the "fromwxid" field.
  401. func FromwxidGTE(v string) predicate.BatchMsg {
  402. return predicate.BatchMsg(sql.FieldGTE(FieldFromwxid, v))
  403. }
  404. // FromwxidLT applies the LT predicate on the "fromwxid" field.
  405. func FromwxidLT(v string) predicate.BatchMsg {
  406. return predicate.BatchMsg(sql.FieldLT(FieldFromwxid, v))
  407. }
  408. // FromwxidLTE applies the LTE predicate on the "fromwxid" field.
  409. func FromwxidLTE(v string) predicate.BatchMsg {
  410. return predicate.BatchMsg(sql.FieldLTE(FieldFromwxid, v))
  411. }
  412. // FromwxidContains applies the Contains predicate on the "fromwxid" field.
  413. func FromwxidContains(v string) predicate.BatchMsg {
  414. return predicate.BatchMsg(sql.FieldContains(FieldFromwxid, v))
  415. }
  416. // FromwxidHasPrefix applies the HasPrefix predicate on the "fromwxid" field.
  417. func FromwxidHasPrefix(v string) predicate.BatchMsg {
  418. return predicate.BatchMsg(sql.FieldHasPrefix(FieldFromwxid, v))
  419. }
  420. // FromwxidHasSuffix applies the HasSuffix predicate on the "fromwxid" field.
  421. func FromwxidHasSuffix(v string) predicate.BatchMsg {
  422. return predicate.BatchMsg(sql.FieldHasSuffix(FieldFromwxid, v))
  423. }
  424. // FromwxidIsNil applies the IsNil predicate on the "fromwxid" field.
  425. func FromwxidIsNil() predicate.BatchMsg {
  426. return predicate.BatchMsg(sql.FieldIsNull(FieldFromwxid))
  427. }
  428. // FromwxidNotNil applies the NotNil predicate on the "fromwxid" field.
  429. func FromwxidNotNil() predicate.BatchMsg {
  430. return predicate.BatchMsg(sql.FieldNotNull(FieldFromwxid))
  431. }
  432. // FromwxidEqualFold applies the EqualFold predicate on the "fromwxid" field.
  433. func FromwxidEqualFold(v string) predicate.BatchMsg {
  434. return predicate.BatchMsg(sql.FieldEqualFold(FieldFromwxid, v))
  435. }
  436. // FromwxidContainsFold applies the ContainsFold predicate on the "fromwxid" field.
  437. func FromwxidContainsFold(v string) predicate.BatchMsg {
  438. return predicate.BatchMsg(sql.FieldContainsFold(FieldFromwxid, v))
  439. }
  440. // MsgEQ applies the EQ predicate on the "msg" field.
  441. func MsgEQ(v string) predicate.BatchMsg {
  442. return predicate.BatchMsg(sql.FieldEQ(FieldMsg, v))
  443. }
  444. // MsgNEQ applies the NEQ predicate on the "msg" field.
  445. func MsgNEQ(v string) predicate.BatchMsg {
  446. return predicate.BatchMsg(sql.FieldNEQ(FieldMsg, v))
  447. }
  448. // MsgIn applies the In predicate on the "msg" field.
  449. func MsgIn(vs ...string) predicate.BatchMsg {
  450. return predicate.BatchMsg(sql.FieldIn(FieldMsg, vs...))
  451. }
  452. // MsgNotIn applies the NotIn predicate on the "msg" field.
  453. func MsgNotIn(vs ...string) predicate.BatchMsg {
  454. return predicate.BatchMsg(sql.FieldNotIn(FieldMsg, vs...))
  455. }
  456. // MsgGT applies the GT predicate on the "msg" field.
  457. func MsgGT(v string) predicate.BatchMsg {
  458. return predicate.BatchMsg(sql.FieldGT(FieldMsg, v))
  459. }
  460. // MsgGTE applies the GTE predicate on the "msg" field.
  461. func MsgGTE(v string) predicate.BatchMsg {
  462. return predicate.BatchMsg(sql.FieldGTE(FieldMsg, v))
  463. }
  464. // MsgLT applies the LT predicate on the "msg" field.
  465. func MsgLT(v string) predicate.BatchMsg {
  466. return predicate.BatchMsg(sql.FieldLT(FieldMsg, v))
  467. }
  468. // MsgLTE applies the LTE predicate on the "msg" field.
  469. func MsgLTE(v string) predicate.BatchMsg {
  470. return predicate.BatchMsg(sql.FieldLTE(FieldMsg, v))
  471. }
  472. // MsgContains applies the Contains predicate on the "msg" field.
  473. func MsgContains(v string) predicate.BatchMsg {
  474. return predicate.BatchMsg(sql.FieldContains(FieldMsg, v))
  475. }
  476. // MsgHasPrefix applies the HasPrefix predicate on the "msg" field.
  477. func MsgHasPrefix(v string) predicate.BatchMsg {
  478. return predicate.BatchMsg(sql.FieldHasPrefix(FieldMsg, v))
  479. }
  480. // MsgHasSuffix applies the HasSuffix predicate on the "msg" field.
  481. func MsgHasSuffix(v string) predicate.BatchMsg {
  482. return predicate.BatchMsg(sql.FieldHasSuffix(FieldMsg, v))
  483. }
  484. // MsgIsNil applies the IsNil predicate on the "msg" field.
  485. func MsgIsNil() predicate.BatchMsg {
  486. return predicate.BatchMsg(sql.FieldIsNull(FieldMsg))
  487. }
  488. // MsgNotNil applies the NotNil predicate on the "msg" field.
  489. func MsgNotNil() predicate.BatchMsg {
  490. return predicate.BatchMsg(sql.FieldNotNull(FieldMsg))
  491. }
  492. // MsgEqualFold applies the EqualFold predicate on the "msg" field.
  493. func MsgEqualFold(v string) predicate.BatchMsg {
  494. return predicate.BatchMsg(sql.FieldEqualFold(FieldMsg, v))
  495. }
  496. // MsgContainsFold applies the ContainsFold predicate on the "msg" field.
  497. func MsgContainsFold(v string) predicate.BatchMsg {
  498. return predicate.BatchMsg(sql.FieldContainsFold(FieldMsg, v))
  499. }
  500. // TagEQ applies the EQ predicate on the "tag" field.
  501. func TagEQ(v string) predicate.BatchMsg {
  502. return predicate.BatchMsg(sql.FieldEQ(FieldTag, v))
  503. }
  504. // TagNEQ applies the NEQ predicate on the "tag" field.
  505. func TagNEQ(v string) predicate.BatchMsg {
  506. return predicate.BatchMsg(sql.FieldNEQ(FieldTag, v))
  507. }
  508. // TagIn applies the In predicate on the "tag" field.
  509. func TagIn(vs ...string) predicate.BatchMsg {
  510. return predicate.BatchMsg(sql.FieldIn(FieldTag, vs...))
  511. }
  512. // TagNotIn applies the NotIn predicate on the "tag" field.
  513. func TagNotIn(vs ...string) predicate.BatchMsg {
  514. return predicate.BatchMsg(sql.FieldNotIn(FieldTag, vs...))
  515. }
  516. // TagGT applies the GT predicate on the "tag" field.
  517. func TagGT(v string) predicate.BatchMsg {
  518. return predicate.BatchMsg(sql.FieldGT(FieldTag, v))
  519. }
  520. // TagGTE applies the GTE predicate on the "tag" field.
  521. func TagGTE(v string) predicate.BatchMsg {
  522. return predicate.BatchMsg(sql.FieldGTE(FieldTag, v))
  523. }
  524. // TagLT applies the LT predicate on the "tag" field.
  525. func TagLT(v string) predicate.BatchMsg {
  526. return predicate.BatchMsg(sql.FieldLT(FieldTag, v))
  527. }
  528. // TagLTE applies the LTE predicate on the "tag" field.
  529. func TagLTE(v string) predicate.BatchMsg {
  530. return predicate.BatchMsg(sql.FieldLTE(FieldTag, v))
  531. }
  532. // TagContains applies the Contains predicate on the "tag" field.
  533. func TagContains(v string) predicate.BatchMsg {
  534. return predicate.BatchMsg(sql.FieldContains(FieldTag, v))
  535. }
  536. // TagHasPrefix applies the HasPrefix predicate on the "tag" field.
  537. func TagHasPrefix(v string) predicate.BatchMsg {
  538. return predicate.BatchMsg(sql.FieldHasPrefix(FieldTag, v))
  539. }
  540. // TagHasSuffix applies the HasSuffix predicate on the "tag" field.
  541. func TagHasSuffix(v string) predicate.BatchMsg {
  542. return predicate.BatchMsg(sql.FieldHasSuffix(FieldTag, v))
  543. }
  544. // TagIsNil applies the IsNil predicate on the "tag" field.
  545. func TagIsNil() predicate.BatchMsg {
  546. return predicate.BatchMsg(sql.FieldIsNull(FieldTag))
  547. }
  548. // TagNotNil applies the NotNil predicate on the "tag" field.
  549. func TagNotNil() predicate.BatchMsg {
  550. return predicate.BatchMsg(sql.FieldNotNull(FieldTag))
  551. }
  552. // TagEqualFold applies the EqualFold predicate on the "tag" field.
  553. func TagEqualFold(v string) predicate.BatchMsg {
  554. return predicate.BatchMsg(sql.FieldEqualFold(FieldTag, v))
  555. }
  556. // TagContainsFold applies the ContainsFold predicate on the "tag" field.
  557. func TagContainsFold(v string) predicate.BatchMsg {
  558. return predicate.BatchMsg(sql.FieldContainsFold(FieldTag, v))
  559. }
  560. // TagidsEQ applies the EQ predicate on the "tagids" field.
  561. func TagidsEQ(v string) predicate.BatchMsg {
  562. return predicate.BatchMsg(sql.FieldEQ(FieldTagids, v))
  563. }
  564. // TagidsNEQ applies the NEQ predicate on the "tagids" field.
  565. func TagidsNEQ(v string) predicate.BatchMsg {
  566. return predicate.BatchMsg(sql.FieldNEQ(FieldTagids, v))
  567. }
  568. // TagidsIn applies the In predicate on the "tagids" field.
  569. func TagidsIn(vs ...string) predicate.BatchMsg {
  570. return predicate.BatchMsg(sql.FieldIn(FieldTagids, vs...))
  571. }
  572. // TagidsNotIn applies the NotIn predicate on the "tagids" field.
  573. func TagidsNotIn(vs ...string) predicate.BatchMsg {
  574. return predicate.BatchMsg(sql.FieldNotIn(FieldTagids, vs...))
  575. }
  576. // TagidsGT applies the GT predicate on the "tagids" field.
  577. func TagidsGT(v string) predicate.BatchMsg {
  578. return predicate.BatchMsg(sql.FieldGT(FieldTagids, v))
  579. }
  580. // TagidsGTE applies the GTE predicate on the "tagids" field.
  581. func TagidsGTE(v string) predicate.BatchMsg {
  582. return predicate.BatchMsg(sql.FieldGTE(FieldTagids, v))
  583. }
  584. // TagidsLT applies the LT predicate on the "tagids" field.
  585. func TagidsLT(v string) predicate.BatchMsg {
  586. return predicate.BatchMsg(sql.FieldLT(FieldTagids, v))
  587. }
  588. // TagidsLTE applies the LTE predicate on the "tagids" field.
  589. func TagidsLTE(v string) predicate.BatchMsg {
  590. return predicate.BatchMsg(sql.FieldLTE(FieldTagids, v))
  591. }
  592. // TagidsContains applies the Contains predicate on the "tagids" field.
  593. func TagidsContains(v string) predicate.BatchMsg {
  594. return predicate.BatchMsg(sql.FieldContains(FieldTagids, v))
  595. }
  596. // TagidsHasPrefix applies the HasPrefix predicate on the "tagids" field.
  597. func TagidsHasPrefix(v string) predicate.BatchMsg {
  598. return predicate.BatchMsg(sql.FieldHasPrefix(FieldTagids, v))
  599. }
  600. // TagidsHasSuffix applies the HasSuffix predicate on the "tagids" field.
  601. func TagidsHasSuffix(v string) predicate.BatchMsg {
  602. return predicate.BatchMsg(sql.FieldHasSuffix(FieldTagids, v))
  603. }
  604. // TagidsIsNil applies the IsNil predicate on the "tagids" field.
  605. func TagidsIsNil() predicate.BatchMsg {
  606. return predicate.BatchMsg(sql.FieldIsNull(FieldTagids))
  607. }
  608. // TagidsNotNil applies the NotNil predicate on the "tagids" field.
  609. func TagidsNotNil() predicate.BatchMsg {
  610. return predicate.BatchMsg(sql.FieldNotNull(FieldTagids))
  611. }
  612. // TagidsEqualFold applies the EqualFold predicate on the "tagids" field.
  613. func TagidsEqualFold(v string) predicate.BatchMsg {
  614. return predicate.BatchMsg(sql.FieldEqualFold(FieldTagids, v))
  615. }
  616. // TagidsContainsFold applies the ContainsFold predicate on the "tagids" field.
  617. func TagidsContainsFold(v string) predicate.BatchMsg {
  618. return predicate.BatchMsg(sql.FieldContainsFold(FieldTagids, v))
  619. }
  620. // TotalEQ applies the EQ predicate on the "total" field.
  621. func TotalEQ(v int32) predicate.BatchMsg {
  622. return predicate.BatchMsg(sql.FieldEQ(FieldTotal, v))
  623. }
  624. // TotalNEQ applies the NEQ predicate on the "total" field.
  625. func TotalNEQ(v int32) predicate.BatchMsg {
  626. return predicate.BatchMsg(sql.FieldNEQ(FieldTotal, v))
  627. }
  628. // TotalIn applies the In predicate on the "total" field.
  629. func TotalIn(vs ...int32) predicate.BatchMsg {
  630. return predicate.BatchMsg(sql.FieldIn(FieldTotal, vs...))
  631. }
  632. // TotalNotIn applies the NotIn predicate on the "total" field.
  633. func TotalNotIn(vs ...int32) predicate.BatchMsg {
  634. return predicate.BatchMsg(sql.FieldNotIn(FieldTotal, vs...))
  635. }
  636. // TotalGT applies the GT predicate on the "total" field.
  637. func TotalGT(v int32) predicate.BatchMsg {
  638. return predicate.BatchMsg(sql.FieldGT(FieldTotal, v))
  639. }
  640. // TotalGTE applies the GTE predicate on the "total" field.
  641. func TotalGTE(v int32) predicate.BatchMsg {
  642. return predicate.BatchMsg(sql.FieldGTE(FieldTotal, v))
  643. }
  644. // TotalLT applies the LT predicate on the "total" field.
  645. func TotalLT(v int32) predicate.BatchMsg {
  646. return predicate.BatchMsg(sql.FieldLT(FieldTotal, v))
  647. }
  648. // TotalLTE applies the LTE predicate on the "total" field.
  649. func TotalLTE(v int32) predicate.BatchMsg {
  650. return predicate.BatchMsg(sql.FieldLTE(FieldTotal, v))
  651. }
  652. // TotalIsNil applies the IsNil predicate on the "total" field.
  653. func TotalIsNil() predicate.BatchMsg {
  654. return predicate.BatchMsg(sql.FieldIsNull(FieldTotal))
  655. }
  656. // TotalNotNil applies the NotNil predicate on the "total" field.
  657. func TotalNotNil() predicate.BatchMsg {
  658. return predicate.BatchMsg(sql.FieldNotNull(FieldTotal))
  659. }
  660. // SuccessEQ applies the EQ predicate on the "success" field.
  661. func SuccessEQ(v int32) predicate.BatchMsg {
  662. return predicate.BatchMsg(sql.FieldEQ(FieldSuccess, v))
  663. }
  664. // SuccessNEQ applies the NEQ predicate on the "success" field.
  665. func SuccessNEQ(v int32) predicate.BatchMsg {
  666. return predicate.BatchMsg(sql.FieldNEQ(FieldSuccess, v))
  667. }
  668. // SuccessIn applies the In predicate on the "success" field.
  669. func SuccessIn(vs ...int32) predicate.BatchMsg {
  670. return predicate.BatchMsg(sql.FieldIn(FieldSuccess, vs...))
  671. }
  672. // SuccessNotIn applies the NotIn predicate on the "success" field.
  673. func SuccessNotIn(vs ...int32) predicate.BatchMsg {
  674. return predicate.BatchMsg(sql.FieldNotIn(FieldSuccess, vs...))
  675. }
  676. // SuccessGT applies the GT predicate on the "success" field.
  677. func SuccessGT(v int32) predicate.BatchMsg {
  678. return predicate.BatchMsg(sql.FieldGT(FieldSuccess, v))
  679. }
  680. // SuccessGTE applies the GTE predicate on the "success" field.
  681. func SuccessGTE(v int32) predicate.BatchMsg {
  682. return predicate.BatchMsg(sql.FieldGTE(FieldSuccess, v))
  683. }
  684. // SuccessLT applies the LT predicate on the "success" field.
  685. func SuccessLT(v int32) predicate.BatchMsg {
  686. return predicate.BatchMsg(sql.FieldLT(FieldSuccess, v))
  687. }
  688. // SuccessLTE applies the LTE predicate on the "success" field.
  689. func SuccessLTE(v int32) predicate.BatchMsg {
  690. return predicate.BatchMsg(sql.FieldLTE(FieldSuccess, v))
  691. }
  692. // SuccessIsNil applies the IsNil predicate on the "success" field.
  693. func SuccessIsNil() predicate.BatchMsg {
  694. return predicate.BatchMsg(sql.FieldIsNull(FieldSuccess))
  695. }
  696. // SuccessNotNil applies the NotNil predicate on the "success" field.
  697. func SuccessNotNil() predicate.BatchMsg {
  698. return predicate.BatchMsg(sql.FieldNotNull(FieldSuccess))
  699. }
  700. // FailEQ applies the EQ predicate on the "fail" field.
  701. func FailEQ(v int32) predicate.BatchMsg {
  702. return predicate.BatchMsg(sql.FieldEQ(FieldFail, v))
  703. }
  704. // FailNEQ applies the NEQ predicate on the "fail" field.
  705. func FailNEQ(v int32) predicate.BatchMsg {
  706. return predicate.BatchMsg(sql.FieldNEQ(FieldFail, v))
  707. }
  708. // FailIn applies the In predicate on the "fail" field.
  709. func FailIn(vs ...int32) predicate.BatchMsg {
  710. return predicate.BatchMsg(sql.FieldIn(FieldFail, vs...))
  711. }
  712. // FailNotIn applies the NotIn predicate on the "fail" field.
  713. func FailNotIn(vs ...int32) predicate.BatchMsg {
  714. return predicate.BatchMsg(sql.FieldNotIn(FieldFail, vs...))
  715. }
  716. // FailGT applies the GT predicate on the "fail" field.
  717. func FailGT(v int32) predicate.BatchMsg {
  718. return predicate.BatchMsg(sql.FieldGT(FieldFail, v))
  719. }
  720. // FailGTE applies the GTE predicate on the "fail" field.
  721. func FailGTE(v int32) predicate.BatchMsg {
  722. return predicate.BatchMsg(sql.FieldGTE(FieldFail, v))
  723. }
  724. // FailLT applies the LT predicate on the "fail" field.
  725. func FailLT(v int32) predicate.BatchMsg {
  726. return predicate.BatchMsg(sql.FieldLT(FieldFail, v))
  727. }
  728. // FailLTE applies the LTE predicate on the "fail" field.
  729. func FailLTE(v int32) predicate.BatchMsg {
  730. return predicate.BatchMsg(sql.FieldLTE(FieldFail, v))
  731. }
  732. // FailIsNil applies the IsNil predicate on the "fail" field.
  733. func FailIsNil() predicate.BatchMsg {
  734. return predicate.BatchMsg(sql.FieldIsNull(FieldFail))
  735. }
  736. // FailNotNil applies the NotNil predicate on the "fail" field.
  737. func FailNotNil() predicate.BatchMsg {
  738. return predicate.BatchMsg(sql.FieldNotNull(FieldFail))
  739. }
  740. // StartTimeEQ applies the EQ predicate on the "start_time" field.
  741. func StartTimeEQ(v time.Time) predicate.BatchMsg {
  742. return predicate.BatchMsg(sql.FieldEQ(FieldStartTime, v))
  743. }
  744. // StartTimeNEQ applies the NEQ predicate on the "start_time" field.
  745. func StartTimeNEQ(v time.Time) predicate.BatchMsg {
  746. return predicate.BatchMsg(sql.FieldNEQ(FieldStartTime, v))
  747. }
  748. // StartTimeIn applies the In predicate on the "start_time" field.
  749. func StartTimeIn(vs ...time.Time) predicate.BatchMsg {
  750. return predicate.BatchMsg(sql.FieldIn(FieldStartTime, vs...))
  751. }
  752. // StartTimeNotIn applies the NotIn predicate on the "start_time" field.
  753. func StartTimeNotIn(vs ...time.Time) predicate.BatchMsg {
  754. return predicate.BatchMsg(sql.FieldNotIn(FieldStartTime, vs...))
  755. }
  756. // StartTimeGT applies the GT predicate on the "start_time" field.
  757. func StartTimeGT(v time.Time) predicate.BatchMsg {
  758. return predicate.BatchMsg(sql.FieldGT(FieldStartTime, v))
  759. }
  760. // StartTimeGTE applies the GTE predicate on the "start_time" field.
  761. func StartTimeGTE(v time.Time) predicate.BatchMsg {
  762. return predicate.BatchMsg(sql.FieldGTE(FieldStartTime, v))
  763. }
  764. // StartTimeLT applies the LT predicate on the "start_time" field.
  765. func StartTimeLT(v time.Time) predicate.BatchMsg {
  766. return predicate.BatchMsg(sql.FieldLT(FieldStartTime, v))
  767. }
  768. // StartTimeLTE applies the LTE predicate on the "start_time" field.
  769. func StartTimeLTE(v time.Time) predicate.BatchMsg {
  770. return predicate.BatchMsg(sql.FieldLTE(FieldStartTime, v))
  771. }
  772. // StartTimeIsNil applies the IsNil predicate on the "start_time" field.
  773. func StartTimeIsNil() predicate.BatchMsg {
  774. return predicate.BatchMsg(sql.FieldIsNull(FieldStartTime))
  775. }
  776. // StartTimeNotNil applies the NotNil predicate on the "start_time" field.
  777. func StartTimeNotNil() predicate.BatchMsg {
  778. return predicate.BatchMsg(sql.FieldNotNull(FieldStartTime))
  779. }
  780. // StopTimeEQ applies the EQ predicate on the "stop_time" field.
  781. func StopTimeEQ(v time.Time) predicate.BatchMsg {
  782. return predicate.BatchMsg(sql.FieldEQ(FieldStopTime, v))
  783. }
  784. // StopTimeNEQ applies the NEQ predicate on the "stop_time" field.
  785. func StopTimeNEQ(v time.Time) predicate.BatchMsg {
  786. return predicate.BatchMsg(sql.FieldNEQ(FieldStopTime, v))
  787. }
  788. // StopTimeIn applies the In predicate on the "stop_time" field.
  789. func StopTimeIn(vs ...time.Time) predicate.BatchMsg {
  790. return predicate.BatchMsg(sql.FieldIn(FieldStopTime, vs...))
  791. }
  792. // StopTimeNotIn applies the NotIn predicate on the "stop_time" field.
  793. func StopTimeNotIn(vs ...time.Time) predicate.BatchMsg {
  794. return predicate.BatchMsg(sql.FieldNotIn(FieldStopTime, vs...))
  795. }
  796. // StopTimeGT applies the GT predicate on the "stop_time" field.
  797. func StopTimeGT(v time.Time) predicate.BatchMsg {
  798. return predicate.BatchMsg(sql.FieldGT(FieldStopTime, v))
  799. }
  800. // StopTimeGTE applies the GTE predicate on the "stop_time" field.
  801. func StopTimeGTE(v time.Time) predicate.BatchMsg {
  802. return predicate.BatchMsg(sql.FieldGTE(FieldStopTime, v))
  803. }
  804. // StopTimeLT applies the LT predicate on the "stop_time" field.
  805. func StopTimeLT(v time.Time) predicate.BatchMsg {
  806. return predicate.BatchMsg(sql.FieldLT(FieldStopTime, v))
  807. }
  808. // StopTimeLTE applies the LTE predicate on the "stop_time" field.
  809. func StopTimeLTE(v time.Time) predicate.BatchMsg {
  810. return predicate.BatchMsg(sql.FieldLTE(FieldStopTime, v))
  811. }
  812. // StopTimeIsNil applies the IsNil predicate on the "stop_time" field.
  813. func StopTimeIsNil() predicate.BatchMsg {
  814. return predicate.BatchMsg(sql.FieldIsNull(FieldStopTime))
  815. }
  816. // StopTimeNotNil applies the NotNil predicate on the "stop_time" field.
  817. func StopTimeNotNil() predicate.BatchMsg {
  818. return predicate.BatchMsg(sql.FieldNotNull(FieldStopTime))
  819. }
  820. // SendTimeEQ applies the EQ predicate on the "send_time" field.
  821. func SendTimeEQ(v time.Time) predicate.BatchMsg {
  822. return predicate.BatchMsg(sql.FieldEQ(FieldSendTime, v))
  823. }
  824. // SendTimeNEQ applies the NEQ predicate on the "send_time" field.
  825. func SendTimeNEQ(v time.Time) predicate.BatchMsg {
  826. return predicate.BatchMsg(sql.FieldNEQ(FieldSendTime, v))
  827. }
  828. // SendTimeIn applies the In predicate on the "send_time" field.
  829. func SendTimeIn(vs ...time.Time) predicate.BatchMsg {
  830. return predicate.BatchMsg(sql.FieldIn(FieldSendTime, vs...))
  831. }
  832. // SendTimeNotIn applies the NotIn predicate on the "send_time" field.
  833. func SendTimeNotIn(vs ...time.Time) predicate.BatchMsg {
  834. return predicate.BatchMsg(sql.FieldNotIn(FieldSendTime, vs...))
  835. }
  836. // SendTimeGT applies the GT predicate on the "send_time" field.
  837. func SendTimeGT(v time.Time) predicate.BatchMsg {
  838. return predicate.BatchMsg(sql.FieldGT(FieldSendTime, v))
  839. }
  840. // SendTimeGTE applies the GTE predicate on the "send_time" field.
  841. func SendTimeGTE(v time.Time) predicate.BatchMsg {
  842. return predicate.BatchMsg(sql.FieldGTE(FieldSendTime, v))
  843. }
  844. // SendTimeLT applies the LT predicate on the "send_time" field.
  845. func SendTimeLT(v time.Time) predicate.BatchMsg {
  846. return predicate.BatchMsg(sql.FieldLT(FieldSendTime, v))
  847. }
  848. // SendTimeLTE applies the LTE predicate on the "send_time" field.
  849. func SendTimeLTE(v time.Time) predicate.BatchMsg {
  850. return predicate.BatchMsg(sql.FieldLTE(FieldSendTime, v))
  851. }
  852. // SendTimeIsNil applies the IsNil predicate on the "send_time" field.
  853. func SendTimeIsNil() predicate.BatchMsg {
  854. return predicate.BatchMsg(sql.FieldIsNull(FieldSendTime))
  855. }
  856. // SendTimeNotNil applies the NotNil predicate on the "send_time" field.
  857. func SendTimeNotNil() predicate.BatchMsg {
  858. return predicate.BatchMsg(sql.FieldNotNull(FieldSendTime))
  859. }
  860. // TypeEQ applies the EQ predicate on the "type" field.
  861. func TypeEQ(v int32) predicate.BatchMsg {
  862. return predicate.BatchMsg(sql.FieldEQ(FieldType, v))
  863. }
  864. // TypeNEQ applies the NEQ predicate on the "type" field.
  865. func TypeNEQ(v int32) predicate.BatchMsg {
  866. return predicate.BatchMsg(sql.FieldNEQ(FieldType, v))
  867. }
  868. // TypeIn applies the In predicate on the "type" field.
  869. func TypeIn(vs ...int32) predicate.BatchMsg {
  870. return predicate.BatchMsg(sql.FieldIn(FieldType, vs...))
  871. }
  872. // TypeNotIn applies the NotIn predicate on the "type" field.
  873. func TypeNotIn(vs ...int32) predicate.BatchMsg {
  874. return predicate.BatchMsg(sql.FieldNotIn(FieldType, vs...))
  875. }
  876. // TypeGT applies the GT predicate on the "type" field.
  877. func TypeGT(v int32) predicate.BatchMsg {
  878. return predicate.BatchMsg(sql.FieldGT(FieldType, v))
  879. }
  880. // TypeGTE applies the GTE predicate on the "type" field.
  881. func TypeGTE(v int32) predicate.BatchMsg {
  882. return predicate.BatchMsg(sql.FieldGTE(FieldType, v))
  883. }
  884. // TypeLT applies the LT predicate on the "type" field.
  885. func TypeLT(v int32) predicate.BatchMsg {
  886. return predicate.BatchMsg(sql.FieldLT(FieldType, v))
  887. }
  888. // TypeLTE applies the LTE predicate on the "type" field.
  889. func TypeLTE(v int32) predicate.BatchMsg {
  890. return predicate.BatchMsg(sql.FieldLTE(FieldType, v))
  891. }
  892. // TypeIsNil applies the IsNil predicate on the "type" field.
  893. func TypeIsNil() predicate.BatchMsg {
  894. return predicate.BatchMsg(sql.FieldIsNull(FieldType))
  895. }
  896. // TypeNotNil applies the NotNil predicate on the "type" field.
  897. func TypeNotNil() predicate.BatchMsg {
  898. return predicate.BatchMsg(sql.FieldNotNull(FieldType))
  899. }
  900. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  901. func OrganizationIDEQ(v uint64) predicate.BatchMsg {
  902. return predicate.BatchMsg(sql.FieldEQ(FieldOrganizationID, v))
  903. }
  904. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  905. func OrganizationIDNEQ(v uint64) predicate.BatchMsg {
  906. return predicate.BatchMsg(sql.FieldNEQ(FieldOrganizationID, v))
  907. }
  908. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  909. func OrganizationIDIn(vs ...uint64) predicate.BatchMsg {
  910. return predicate.BatchMsg(sql.FieldIn(FieldOrganizationID, vs...))
  911. }
  912. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  913. func OrganizationIDNotIn(vs ...uint64) predicate.BatchMsg {
  914. return predicate.BatchMsg(sql.FieldNotIn(FieldOrganizationID, vs...))
  915. }
  916. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  917. func OrganizationIDGT(v uint64) predicate.BatchMsg {
  918. return predicate.BatchMsg(sql.FieldGT(FieldOrganizationID, v))
  919. }
  920. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  921. func OrganizationIDGTE(v uint64) predicate.BatchMsg {
  922. return predicate.BatchMsg(sql.FieldGTE(FieldOrganizationID, v))
  923. }
  924. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  925. func OrganizationIDLT(v uint64) predicate.BatchMsg {
  926. return predicate.BatchMsg(sql.FieldLT(FieldOrganizationID, v))
  927. }
  928. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  929. func OrganizationIDLTE(v uint64) predicate.BatchMsg {
  930. return predicate.BatchMsg(sql.FieldLTE(FieldOrganizationID, v))
  931. }
  932. // And groups predicates with the AND operator between them.
  933. func And(predicates ...predicate.BatchMsg) predicate.BatchMsg {
  934. return predicate.BatchMsg(sql.AndPredicates(predicates...))
  935. }
  936. // Or groups predicates with the OR operator between them.
  937. func Or(predicates ...predicate.BatchMsg) predicate.BatchMsg {
  938. return predicate.BatchMsg(sql.OrPredicates(predicates...))
  939. }
  940. // Not applies the not operator on the given predicate.
  941. func Not(p predicate.BatchMsg) predicate.BatchMsg {
  942. return predicate.BatchMsg(sql.NotPredicates(p))
  943. }