where.go 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625
  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. // Ctype applies equality check predicate on the "ctype" field. It's identical to CtypeEQ.
  117. func Ctype(v uint64) predicate.BatchMsg {
  118. return predicate.BatchMsg(sql.FieldEQ(FieldCtype, v))
  119. }
  120. // Cc applies equality check predicate on the "cc" field. It's identical to CcEQ.
  121. func Cc(v string) predicate.BatchMsg {
  122. return predicate.BatchMsg(sql.FieldEQ(FieldCc, v))
  123. }
  124. // Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
  125. func Phone(v string) predicate.BatchMsg {
  126. return predicate.BatchMsg(sql.FieldEQ(FieldPhone, v))
  127. }
  128. // TemplateName applies equality check predicate on the "template_name" field. It's identical to TemplateNameEQ.
  129. func TemplateName(v string) predicate.BatchMsg {
  130. return predicate.BatchMsg(sql.FieldEQ(FieldTemplateName, v))
  131. }
  132. // TemplateCode applies equality check predicate on the "template_code" field. It's identical to TemplateCodeEQ.
  133. func TemplateCode(v string) predicate.BatchMsg {
  134. return predicate.BatchMsg(sql.FieldEQ(FieldTemplateCode, v))
  135. }
  136. // Lang applies equality check predicate on the "lang" field. It's identical to LangEQ.
  137. func Lang(v string) predicate.BatchMsg {
  138. return predicate.BatchMsg(sql.FieldEQ(FieldLang, v))
  139. }
  140. // CreatedAtEQ applies the EQ predicate on the "created_at" field.
  141. func CreatedAtEQ(v time.Time) predicate.BatchMsg {
  142. return predicate.BatchMsg(sql.FieldEQ(FieldCreatedAt, v))
  143. }
  144. // CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
  145. func CreatedAtNEQ(v time.Time) predicate.BatchMsg {
  146. return predicate.BatchMsg(sql.FieldNEQ(FieldCreatedAt, v))
  147. }
  148. // CreatedAtIn applies the In predicate on the "created_at" field.
  149. func CreatedAtIn(vs ...time.Time) predicate.BatchMsg {
  150. return predicate.BatchMsg(sql.FieldIn(FieldCreatedAt, vs...))
  151. }
  152. // CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
  153. func CreatedAtNotIn(vs ...time.Time) predicate.BatchMsg {
  154. return predicate.BatchMsg(sql.FieldNotIn(FieldCreatedAt, vs...))
  155. }
  156. // CreatedAtGT applies the GT predicate on the "created_at" field.
  157. func CreatedAtGT(v time.Time) predicate.BatchMsg {
  158. return predicate.BatchMsg(sql.FieldGT(FieldCreatedAt, v))
  159. }
  160. // CreatedAtGTE applies the GTE predicate on the "created_at" field.
  161. func CreatedAtGTE(v time.Time) predicate.BatchMsg {
  162. return predicate.BatchMsg(sql.FieldGTE(FieldCreatedAt, v))
  163. }
  164. // CreatedAtLT applies the LT predicate on the "created_at" field.
  165. func CreatedAtLT(v time.Time) predicate.BatchMsg {
  166. return predicate.BatchMsg(sql.FieldLT(FieldCreatedAt, v))
  167. }
  168. // CreatedAtLTE applies the LTE predicate on the "created_at" field.
  169. func CreatedAtLTE(v time.Time) predicate.BatchMsg {
  170. return predicate.BatchMsg(sql.FieldLTE(FieldCreatedAt, v))
  171. }
  172. // UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
  173. func UpdatedAtEQ(v time.Time) predicate.BatchMsg {
  174. return predicate.BatchMsg(sql.FieldEQ(FieldUpdatedAt, v))
  175. }
  176. // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
  177. func UpdatedAtNEQ(v time.Time) predicate.BatchMsg {
  178. return predicate.BatchMsg(sql.FieldNEQ(FieldUpdatedAt, v))
  179. }
  180. // UpdatedAtIn applies the In predicate on the "updated_at" field.
  181. func UpdatedAtIn(vs ...time.Time) predicate.BatchMsg {
  182. return predicate.BatchMsg(sql.FieldIn(FieldUpdatedAt, vs...))
  183. }
  184. // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
  185. func UpdatedAtNotIn(vs ...time.Time) predicate.BatchMsg {
  186. return predicate.BatchMsg(sql.FieldNotIn(FieldUpdatedAt, vs...))
  187. }
  188. // UpdatedAtGT applies the GT predicate on the "updated_at" field.
  189. func UpdatedAtGT(v time.Time) predicate.BatchMsg {
  190. return predicate.BatchMsg(sql.FieldGT(FieldUpdatedAt, v))
  191. }
  192. // UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
  193. func UpdatedAtGTE(v time.Time) predicate.BatchMsg {
  194. return predicate.BatchMsg(sql.FieldGTE(FieldUpdatedAt, v))
  195. }
  196. // UpdatedAtLT applies the LT predicate on the "updated_at" field.
  197. func UpdatedAtLT(v time.Time) predicate.BatchMsg {
  198. return predicate.BatchMsg(sql.FieldLT(FieldUpdatedAt, v))
  199. }
  200. // UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
  201. func UpdatedAtLTE(v time.Time) predicate.BatchMsg {
  202. return predicate.BatchMsg(sql.FieldLTE(FieldUpdatedAt, v))
  203. }
  204. // DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
  205. func DeletedAtEQ(v time.Time) predicate.BatchMsg {
  206. return predicate.BatchMsg(sql.FieldEQ(FieldDeletedAt, v))
  207. }
  208. // DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
  209. func DeletedAtNEQ(v time.Time) predicate.BatchMsg {
  210. return predicate.BatchMsg(sql.FieldNEQ(FieldDeletedAt, v))
  211. }
  212. // DeletedAtIn applies the In predicate on the "deleted_at" field.
  213. func DeletedAtIn(vs ...time.Time) predicate.BatchMsg {
  214. return predicate.BatchMsg(sql.FieldIn(FieldDeletedAt, vs...))
  215. }
  216. // DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
  217. func DeletedAtNotIn(vs ...time.Time) predicate.BatchMsg {
  218. return predicate.BatchMsg(sql.FieldNotIn(FieldDeletedAt, vs...))
  219. }
  220. // DeletedAtGT applies the GT predicate on the "deleted_at" field.
  221. func DeletedAtGT(v time.Time) predicate.BatchMsg {
  222. return predicate.BatchMsg(sql.FieldGT(FieldDeletedAt, v))
  223. }
  224. // DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
  225. func DeletedAtGTE(v time.Time) predicate.BatchMsg {
  226. return predicate.BatchMsg(sql.FieldGTE(FieldDeletedAt, v))
  227. }
  228. // DeletedAtLT applies the LT predicate on the "deleted_at" field.
  229. func DeletedAtLT(v time.Time) predicate.BatchMsg {
  230. return predicate.BatchMsg(sql.FieldLT(FieldDeletedAt, v))
  231. }
  232. // DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
  233. func DeletedAtLTE(v time.Time) predicate.BatchMsg {
  234. return predicate.BatchMsg(sql.FieldLTE(FieldDeletedAt, v))
  235. }
  236. // DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
  237. func DeletedAtIsNil() predicate.BatchMsg {
  238. return predicate.BatchMsg(sql.FieldIsNull(FieldDeletedAt))
  239. }
  240. // DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
  241. func DeletedAtNotNil() predicate.BatchMsg {
  242. return predicate.BatchMsg(sql.FieldNotNull(FieldDeletedAt))
  243. }
  244. // StatusEQ applies the EQ predicate on the "status" field.
  245. func StatusEQ(v uint8) predicate.BatchMsg {
  246. return predicate.BatchMsg(sql.FieldEQ(FieldStatus, v))
  247. }
  248. // StatusNEQ applies the NEQ predicate on the "status" field.
  249. func StatusNEQ(v uint8) predicate.BatchMsg {
  250. return predicate.BatchMsg(sql.FieldNEQ(FieldStatus, v))
  251. }
  252. // StatusIn applies the In predicate on the "status" field.
  253. func StatusIn(vs ...uint8) predicate.BatchMsg {
  254. return predicate.BatchMsg(sql.FieldIn(FieldStatus, vs...))
  255. }
  256. // StatusNotIn applies the NotIn predicate on the "status" field.
  257. func StatusNotIn(vs ...uint8) predicate.BatchMsg {
  258. return predicate.BatchMsg(sql.FieldNotIn(FieldStatus, vs...))
  259. }
  260. // StatusGT applies the GT predicate on the "status" field.
  261. func StatusGT(v uint8) predicate.BatchMsg {
  262. return predicate.BatchMsg(sql.FieldGT(FieldStatus, v))
  263. }
  264. // StatusGTE applies the GTE predicate on the "status" field.
  265. func StatusGTE(v uint8) predicate.BatchMsg {
  266. return predicate.BatchMsg(sql.FieldGTE(FieldStatus, v))
  267. }
  268. // StatusLT applies the LT predicate on the "status" field.
  269. func StatusLT(v uint8) predicate.BatchMsg {
  270. return predicate.BatchMsg(sql.FieldLT(FieldStatus, v))
  271. }
  272. // StatusLTE applies the LTE predicate on the "status" field.
  273. func StatusLTE(v uint8) predicate.BatchMsg {
  274. return predicate.BatchMsg(sql.FieldLTE(FieldStatus, v))
  275. }
  276. // StatusIsNil applies the IsNil predicate on the "status" field.
  277. func StatusIsNil() predicate.BatchMsg {
  278. return predicate.BatchMsg(sql.FieldIsNull(FieldStatus))
  279. }
  280. // StatusNotNil applies the NotNil predicate on the "status" field.
  281. func StatusNotNil() predicate.BatchMsg {
  282. return predicate.BatchMsg(sql.FieldNotNull(FieldStatus))
  283. }
  284. // BatchNoEQ applies the EQ predicate on the "batch_no" field.
  285. func BatchNoEQ(v string) predicate.BatchMsg {
  286. return predicate.BatchMsg(sql.FieldEQ(FieldBatchNo, v))
  287. }
  288. // BatchNoNEQ applies the NEQ predicate on the "batch_no" field.
  289. func BatchNoNEQ(v string) predicate.BatchMsg {
  290. return predicate.BatchMsg(sql.FieldNEQ(FieldBatchNo, v))
  291. }
  292. // BatchNoIn applies the In predicate on the "batch_no" field.
  293. func BatchNoIn(vs ...string) predicate.BatchMsg {
  294. return predicate.BatchMsg(sql.FieldIn(FieldBatchNo, vs...))
  295. }
  296. // BatchNoNotIn applies the NotIn predicate on the "batch_no" field.
  297. func BatchNoNotIn(vs ...string) predicate.BatchMsg {
  298. return predicate.BatchMsg(sql.FieldNotIn(FieldBatchNo, vs...))
  299. }
  300. // BatchNoGT applies the GT predicate on the "batch_no" field.
  301. func BatchNoGT(v string) predicate.BatchMsg {
  302. return predicate.BatchMsg(sql.FieldGT(FieldBatchNo, v))
  303. }
  304. // BatchNoGTE applies the GTE predicate on the "batch_no" field.
  305. func BatchNoGTE(v string) predicate.BatchMsg {
  306. return predicate.BatchMsg(sql.FieldGTE(FieldBatchNo, v))
  307. }
  308. // BatchNoLT applies the LT predicate on the "batch_no" field.
  309. func BatchNoLT(v string) predicate.BatchMsg {
  310. return predicate.BatchMsg(sql.FieldLT(FieldBatchNo, v))
  311. }
  312. // BatchNoLTE applies the LTE predicate on the "batch_no" field.
  313. func BatchNoLTE(v string) predicate.BatchMsg {
  314. return predicate.BatchMsg(sql.FieldLTE(FieldBatchNo, v))
  315. }
  316. // BatchNoContains applies the Contains predicate on the "batch_no" field.
  317. func BatchNoContains(v string) predicate.BatchMsg {
  318. return predicate.BatchMsg(sql.FieldContains(FieldBatchNo, v))
  319. }
  320. // BatchNoHasPrefix applies the HasPrefix predicate on the "batch_no" field.
  321. func BatchNoHasPrefix(v string) predicate.BatchMsg {
  322. return predicate.BatchMsg(sql.FieldHasPrefix(FieldBatchNo, v))
  323. }
  324. // BatchNoHasSuffix applies the HasSuffix predicate on the "batch_no" field.
  325. func BatchNoHasSuffix(v string) predicate.BatchMsg {
  326. return predicate.BatchMsg(sql.FieldHasSuffix(FieldBatchNo, v))
  327. }
  328. // BatchNoIsNil applies the IsNil predicate on the "batch_no" field.
  329. func BatchNoIsNil() predicate.BatchMsg {
  330. return predicate.BatchMsg(sql.FieldIsNull(FieldBatchNo))
  331. }
  332. // BatchNoNotNil applies the NotNil predicate on the "batch_no" field.
  333. func BatchNoNotNil() predicate.BatchMsg {
  334. return predicate.BatchMsg(sql.FieldNotNull(FieldBatchNo))
  335. }
  336. // BatchNoEqualFold applies the EqualFold predicate on the "batch_no" field.
  337. func BatchNoEqualFold(v string) predicate.BatchMsg {
  338. return predicate.BatchMsg(sql.FieldEqualFold(FieldBatchNo, v))
  339. }
  340. // BatchNoContainsFold applies the ContainsFold predicate on the "batch_no" field.
  341. func BatchNoContainsFold(v string) predicate.BatchMsg {
  342. return predicate.BatchMsg(sql.FieldContainsFold(FieldBatchNo, v))
  343. }
  344. // TaskNameEQ applies the EQ predicate on the "task_name" field.
  345. func TaskNameEQ(v string) predicate.BatchMsg {
  346. return predicate.BatchMsg(sql.FieldEQ(FieldTaskName, v))
  347. }
  348. // TaskNameNEQ applies the NEQ predicate on the "task_name" field.
  349. func TaskNameNEQ(v string) predicate.BatchMsg {
  350. return predicate.BatchMsg(sql.FieldNEQ(FieldTaskName, v))
  351. }
  352. // TaskNameIn applies the In predicate on the "task_name" field.
  353. func TaskNameIn(vs ...string) predicate.BatchMsg {
  354. return predicate.BatchMsg(sql.FieldIn(FieldTaskName, vs...))
  355. }
  356. // TaskNameNotIn applies the NotIn predicate on the "task_name" field.
  357. func TaskNameNotIn(vs ...string) predicate.BatchMsg {
  358. return predicate.BatchMsg(sql.FieldNotIn(FieldTaskName, vs...))
  359. }
  360. // TaskNameGT applies the GT predicate on the "task_name" field.
  361. func TaskNameGT(v string) predicate.BatchMsg {
  362. return predicate.BatchMsg(sql.FieldGT(FieldTaskName, v))
  363. }
  364. // TaskNameGTE applies the GTE predicate on the "task_name" field.
  365. func TaskNameGTE(v string) predicate.BatchMsg {
  366. return predicate.BatchMsg(sql.FieldGTE(FieldTaskName, v))
  367. }
  368. // TaskNameLT applies the LT predicate on the "task_name" field.
  369. func TaskNameLT(v string) predicate.BatchMsg {
  370. return predicate.BatchMsg(sql.FieldLT(FieldTaskName, v))
  371. }
  372. // TaskNameLTE applies the LTE predicate on the "task_name" field.
  373. func TaskNameLTE(v string) predicate.BatchMsg {
  374. return predicate.BatchMsg(sql.FieldLTE(FieldTaskName, v))
  375. }
  376. // TaskNameContains applies the Contains predicate on the "task_name" field.
  377. func TaskNameContains(v string) predicate.BatchMsg {
  378. return predicate.BatchMsg(sql.FieldContains(FieldTaskName, v))
  379. }
  380. // TaskNameHasPrefix applies the HasPrefix predicate on the "task_name" field.
  381. func TaskNameHasPrefix(v string) predicate.BatchMsg {
  382. return predicate.BatchMsg(sql.FieldHasPrefix(FieldTaskName, v))
  383. }
  384. // TaskNameHasSuffix applies the HasSuffix predicate on the "task_name" field.
  385. func TaskNameHasSuffix(v string) predicate.BatchMsg {
  386. return predicate.BatchMsg(sql.FieldHasSuffix(FieldTaskName, v))
  387. }
  388. // TaskNameIsNil applies the IsNil predicate on the "task_name" field.
  389. func TaskNameIsNil() predicate.BatchMsg {
  390. return predicate.BatchMsg(sql.FieldIsNull(FieldTaskName))
  391. }
  392. // TaskNameNotNil applies the NotNil predicate on the "task_name" field.
  393. func TaskNameNotNil() predicate.BatchMsg {
  394. return predicate.BatchMsg(sql.FieldNotNull(FieldTaskName))
  395. }
  396. // TaskNameEqualFold applies the EqualFold predicate on the "task_name" field.
  397. func TaskNameEqualFold(v string) predicate.BatchMsg {
  398. return predicate.BatchMsg(sql.FieldEqualFold(FieldTaskName, v))
  399. }
  400. // TaskNameContainsFold applies the ContainsFold predicate on the "task_name" field.
  401. func TaskNameContainsFold(v string) predicate.BatchMsg {
  402. return predicate.BatchMsg(sql.FieldContainsFold(FieldTaskName, v))
  403. }
  404. // FromwxidEQ applies the EQ predicate on the "fromwxid" field.
  405. func FromwxidEQ(v string) predicate.BatchMsg {
  406. return predicate.BatchMsg(sql.FieldEQ(FieldFromwxid, v))
  407. }
  408. // FromwxidNEQ applies the NEQ predicate on the "fromwxid" field.
  409. func FromwxidNEQ(v string) predicate.BatchMsg {
  410. return predicate.BatchMsg(sql.FieldNEQ(FieldFromwxid, v))
  411. }
  412. // FromwxidIn applies the In predicate on the "fromwxid" field.
  413. func FromwxidIn(vs ...string) predicate.BatchMsg {
  414. return predicate.BatchMsg(sql.FieldIn(FieldFromwxid, vs...))
  415. }
  416. // FromwxidNotIn applies the NotIn predicate on the "fromwxid" field.
  417. func FromwxidNotIn(vs ...string) predicate.BatchMsg {
  418. return predicate.BatchMsg(sql.FieldNotIn(FieldFromwxid, vs...))
  419. }
  420. // FromwxidGT applies the GT predicate on the "fromwxid" field.
  421. func FromwxidGT(v string) predicate.BatchMsg {
  422. return predicate.BatchMsg(sql.FieldGT(FieldFromwxid, v))
  423. }
  424. // FromwxidGTE applies the GTE predicate on the "fromwxid" field.
  425. func FromwxidGTE(v string) predicate.BatchMsg {
  426. return predicate.BatchMsg(sql.FieldGTE(FieldFromwxid, v))
  427. }
  428. // FromwxidLT applies the LT predicate on the "fromwxid" field.
  429. func FromwxidLT(v string) predicate.BatchMsg {
  430. return predicate.BatchMsg(sql.FieldLT(FieldFromwxid, v))
  431. }
  432. // FromwxidLTE applies the LTE predicate on the "fromwxid" field.
  433. func FromwxidLTE(v string) predicate.BatchMsg {
  434. return predicate.BatchMsg(sql.FieldLTE(FieldFromwxid, v))
  435. }
  436. // FromwxidContains applies the Contains predicate on the "fromwxid" field.
  437. func FromwxidContains(v string) predicate.BatchMsg {
  438. return predicate.BatchMsg(sql.FieldContains(FieldFromwxid, v))
  439. }
  440. // FromwxidHasPrefix applies the HasPrefix predicate on the "fromwxid" field.
  441. func FromwxidHasPrefix(v string) predicate.BatchMsg {
  442. return predicate.BatchMsg(sql.FieldHasPrefix(FieldFromwxid, v))
  443. }
  444. // FromwxidHasSuffix applies the HasSuffix predicate on the "fromwxid" field.
  445. func FromwxidHasSuffix(v string) predicate.BatchMsg {
  446. return predicate.BatchMsg(sql.FieldHasSuffix(FieldFromwxid, v))
  447. }
  448. // FromwxidIsNil applies the IsNil predicate on the "fromwxid" field.
  449. func FromwxidIsNil() predicate.BatchMsg {
  450. return predicate.BatchMsg(sql.FieldIsNull(FieldFromwxid))
  451. }
  452. // FromwxidNotNil applies the NotNil predicate on the "fromwxid" field.
  453. func FromwxidNotNil() predicate.BatchMsg {
  454. return predicate.BatchMsg(sql.FieldNotNull(FieldFromwxid))
  455. }
  456. // FromwxidEqualFold applies the EqualFold predicate on the "fromwxid" field.
  457. func FromwxidEqualFold(v string) predicate.BatchMsg {
  458. return predicate.BatchMsg(sql.FieldEqualFold(FieldFromwxid, v))
  459. }
  460. // FromwxidContainsFold applies the ContainsFold predicate on the "fromwxid" field.
  461. func FromwxidContainsFold(v string) predicate.BatchMsg {
  462. return predicate.BatchMsg(sql.FieldContainsFold(FieldFromwxid, v))
  463. }
  464. // MsgEQ applies the EQ predicate on the "msg" field.
  465. func MsgEQ(v string) predicate.BatchMsg {
  466. return predicate.BatchMsg(sql.FieldEQ(FieldMsg, v))
  467. }
  468. // MsgNEQ applies the NEQ predicate on the "msg" field.
  469. func MsgNEQ(v string) predicate.BatchMsg {
  470. return predicate.BatchMsg(sql.FieldNEQ(FieldMsg, v))
  471. }
  472. // MsgIn applies the In predicate on the "msg" field.
  473. func MsgIn(vs ...string) predicate.BatchMsg {
  474. return predicate.BatchMsg(sql.FieldIn(FieldMsg, vs...))
  475. }
  476. // MsgNotIn applies the NotIn predicate on the "msg" field.
  477. func MsgNotIn(vs ...string) predicate.BatchMsg {
  478. return predicate.BatchMsg(sql.FieldNotIn(FieldMsg, vs...))
  479. }
  480. // MsgGT applies the GT predicate on the "msg" field.
  481. func MsgGT(v string) predicate.BatchMsg {
  482. return predicate.BatchMsg(sql.FieldGT(FieldMsg, v))
  483. }
  484. // MsgGTE applies the GTE predicate on the "msg" field.
  485. func MsgGTE(v string) predicate.BatchMsg {
  486. return predicate.BatchMsg(sql.FieldGTE(FieldMsg, v))
  487. }
  488. // MsgLT applies the LT predicate on the "msg" field.
  489. func MsgLT(v string) predicate.BatchMsg {
  490. return predicate.BatchMsg(sql.FieldLT(FieldMsg, v))
  491. }
  492. // MsgLTE applies the LTE predicate on the "msg" field.
  493. func MsgLTE(v string) predicate.BatchMsg {
  494. return predicate.BatchMsg(sql.FieldLTE(FieldMsg, v))
  495. }
  496. // MsgContains applies the Contains predicate on the "msg" field.
  497. func MsgContains(v string) predicate.BatchMsg {
  498. return predicate.BatchMsg(sql.FieldContains(FieldMsg, v))
  499. }
  500. // MsgHasPrefix applies the HasPrefix predicate on the "msg" field.
  501. func MsgHasPrefix(v string) predicate.BatchMsg {
  502. return predicate.BatchMsg(sql.FieldHasPrefix(FieldMsg, v))
  503. }
  504. // MsgHasSuffix applies the HasSuffix predicate on the "msg" field.
  505. func MsgHasSuffix(v string) predicate.BatchMsg {
  506. return predicate.BatchMsg(sql.FieldHasSuffix(FieldMsg, v))
  507. }
  508. // MsgIsNil applies the IsNil predicate on the "msg" field.
  509. func MsgIsNil() predicate.BatchMsg {
  510. return predicate.BatchMsg(sql.FieldIsNull(FieldMsg))
  511. }
  512. // MsgNotNil applies the NotNil predicate on the "msg" field.
  513. func MsgNotNil() predicate.BatchMsg {
  514. return predicate.BatchMsg(sql.FieldNotNull(FieldMsg))
  515. }
  516. // MsgEqualFold applies the EqualFold predicate on the "msg" field.
  517. func MsgEqualFold(v string) predicate.BatchMsg {
  518. return predicate.BatchMsg(sql.FieldEqualFold(FieldMsg, v))
  519. }
  520. // MsgContainsFold applies the ContainsFold predicate on the "msg" field.
  521. func MsgContainsFold(v string) predicate.BatchMsg {
  522. return predicate.BatchMsg(sql.FieldContainsFold(FieldMsg, v))
  523. }
  524. // TagEQ applies the EQ predicate on the "tag" field.
  525. func TagEQ(v string) predicate.BatchMsg {
  526. return predicate.BatchMsg(sql.FieldEQ(FieldTag, v))
  527. }
  528. // TagNEQ applies the NEQ predicate on the "tag" field.
  529. func TagNEQ(v string) predicate.BatchMsg {
  530. return predicate.BatchMsg(sql.FieldNEQ(FieldTag, v))
  531. }
  532. // TagIn applies the In predicate on the "tag" field.
  533. func TagIn(vs ...string) predicate.BatchMsg {
  534. return predicate.BatchMsg(sql.FieldIn(FieldTag, vs...))
  535. }
  536. // TagNotIn applies the NotIn predicate on the "tag" field.
  537. func TagNotIn(vs ...string) predicate.BatchMsg {
  538. return predicate.BatchMsg(sql.FieldNotIn(FieldTag, vs...))
  539. }
  540. // TagGT applies the GT predicate on the "tag" field.
  541. func TagGT(v string) predicate.BatchMsg {
  542. return predicate.BatchMsg(sql.FieldGT(FieldTag, v))
  543. }
  544. // TagGTE applies the GTE predicate on the "tag" field.
  545. func TagGTE(v string) predicate.BatchMsg {
  546. return predicate.BatchMsg(sql.FieldGTE(FieldTag, v))
  547. }
  548. // TagLT applies the LT predicate on the "tag" field.
  549. func TagLT(v string) predicate.BatchMsg {
  550. return predicate.BatchMsg(sql.FieldLT(FieldTag, v))
  551. }
  552. // TagLTE applies the LTE predicate on the "tag" field.
  553. func TagLTE(v string) predicate.BatchMsg {
  554. return predicate.BatchMsg(sql.FieldLTE(FieldTag, v))
  555. }
  556. // TagContains applies the Contains predicate on the "tag" field.
  557. func TagContains(v string) predicate.BatchMsg {
  558. return predicate.BatchMsg(sql.FieldContains(FieldTag, v))
  559. }
  560. // TagHasPrefix applies the HasPrefix predicate on the "tag" field.
  561. func TagHasPrefix(v string) predicate.BatchMsg {
  562. return predicate.BatchMsg(sql.FieldHasPrefix(FieldTag, v))
  563. }
  564. // TagHasSuffix applies the HasSuffix predicate on the "tag" field.
  565. func TagHasSuffix(v string) predicate.BatchMsg {
  566. return predicate.BatchMsg(sql.FieldHasSuffix(FieldTag, v))
  567. }
  568. // TagIsNil applies the IsNil predicate on the "tag" field.
  569. func TagIsNil() predicate.BatchMsg {
  570. return predicate.BatchMsg(sql.FieldIsNull(FieldTag))
  571. }
  572. // TagNotNil applies the NotNil predicate on the "tag" field.
  573. func TagNotNil() predicate.BatchMsg {
  574. return predicate.BatchMsg(sql.FieldNotNull(FieldTag))
  575. }
  576. // TagEqualFold applies the EqualFold predicate on the "tag" field.
  577. func TagEqualFold(v string) predicate.BatchMsg {
  578. return predicate.BatchMsg(sql.FieldEqualFold(FieldTag, v))
  579. }
  580. // TagContainsFold applies the ContainsFold predicate on the "tag" field.
  581. func TagContainsFold(v string) predicate.BatchMsg {
  582. return predicate.BatchMsg(sql.FieldContainsFold(FieldTag, v))
  583. }
  584. // TagidsEQ applies the EQ predicate on the "tagids" field.
  585. func TagidsEQ(v string) predicate.BatchMsg {
  586. return predicate.BatchMsg(sql.FieldEQ(FieldTagids, v))
  587. }
  588. // TagidsNEQ applies the NEQ predicate on the "tagids" field.
  589. func TagidsNEQ(v string) predicate.BatchMsg {
  590. return predicate.BatchMsg(sql.FieldNEQ(FieldTagids, v))
  591. }
  592. // TagidsIn applies the In predicate on the "tagids" field.
  593. func TagidsIn(vs ...string) predicate.BatchMsg {
  594. return predicate.BatchMsg(sql.FieldIn(FieldTagids, vs...))
  595. }
  596. // TagidsNotIn applies the NotIn predicate on the "tagids" field.
  597. func TagidsNotIn(vs ...string) predicate.BatchMsg {
  598. return predicate.BatchMsg(sql.FieldNotIn(FieldTagids, vs...))
  599. }
  600. // TagidsGT applies the GT predicate on the "tagids" field.
  601. func TagidsGT(v string) predicate.BatchMsg {
  602. return predicate.BatchMsg(sql.FieldGT(FieldTagids, v))
  603. }
  604. // TagidsGTE applies the GTE predicate on the "tagids" field.
  605. func TagidsGTE(v string) predicate.BatchMsg {
  606. return predicate.BatchMsg(sql.FieldGTE(FieldTagids, v))
  607. }
  608. // TagidsLT applies the LT predicate on the "tagids" field.
  609. func TagidsLT(v string) predicate.BatchMsg {
  610. return predicate.BatchMsg(sql.FieldLT(FieldTagids, v))
  611. }
  612. // TagidsLTE applies the LTE predicate on the "tagids" field.
  613. func TagidsLTE(v string) predicate.BatchMsg {
  614. return predicate.BatchMsg(sql.FieldLTE(FieldTagids, v))
  615. }
  616. // TagidsContains applies the Contains predicate on the "tagids" field.
  617. func TagidsContains(v string) predicate.BatchMsg {
  618. return predicate.BatchMsg(sql.FieldContains(FieldTagids, v))
  619. }
  620. // TagidsHasPrefix applies the HasPrefix predicate on the "tagids" field.
  621. func TagidsHasPrefix(v string) predicate.BatchMsg {
  622. return predicate.BatchMsg(sql.FieldHasPrefix(FieldTagids, v))
  623. }
  624. // TagidsHasSuffix applies the HasSuffix predicate on the "tagids" field.
  625. func TagidsHasSuffix(v string) predicate.BatchMsg {
  626. return predicate.BatchMsg(sql.FieldHasSuffix(FieldTagids, v))
  627. }
  628. // TagidsIsNil applies the IsNil predicate on the "tagids" field.
  629. func TagidsIsNil() predicate.BatchMsg {
  630. return predicate.BatchMsg(sql.FieldIsNull(FieldTagids))
  631. }
  632. // TagidsNotNil applies the NotNil predicate on the "tagids" field.
  633. func TagidsNotNil() predicate.BatchMsg {
  634. return predicate.BatchMsg(sql.FieldNotNull(FieldTagids))
  635. }
  636. // TagidsEqualFold applies the EqualFold predicate on the "tagids" field.
  637. func TagidsEqualFold(v string) predicate.BatchMsg {
  638. return predicate.BatchMsg(sql.FieldEqualFold(FieldTagids, v))
  639. }
  640. // TagidsContainsFold applies the ContainsFold predicate on the "tagids" field.
  641. func TagidsContainsFold(v string) predicate.BatchMsg {
  642. return predicate.BatchMsg(sql.FieldContainsFold(FieldTagids, v))
  643. }
  644. // TotalEQ applies the EQ predicate on the "total" field.
  645. func TotalEQ(v int32) predicate.BatchMsg {
  646. return predicate.BatchMsg(sql.FieldEQ(FieldTotal, v))
  647. }
  648. // TotalNEQ applies the NEQ predicate on the "total" field.
  649. func TotalNEQ(v int32) predicate.BatchMsg {
  650. return predicate.BatchMsg(sql.FieldNEQ(FieldTotal, v))
  651. }
  652. // TotalIn applies the In predicate on the "total" field.
  653. func TotalIn(vs ...int32) predicate.BatchMsg {
  654. return predicate.BatchMsg(sql.FieldIn(FieldTotal, vs...))
  655. }
  656. // TotalNotIn applies the NotIn predicate on the "total" field.
  657. func TotalNotIn(vs ...int32) predicate.BatchMsg {
  658. return predicate.BatchMsg(sql.FieldNotIn(FieldTotal, vs...))
  659. }
  660. // TotalGT applies the GT predicate on the "total" field.
  661. func TotalGT(v int32) predicate.BatchMsg {
  662. return predicate.BatchMsg(sql.FieldGT(FieldTotal, v))
  663. }
  664. // TotalGTE applies the GTE predicate on the "total" field.
  665. func TotalGTE(v int32) predicate.BatchMsg {
  666. return predicate.BatchMsg(sql.FieldGTE(FieldTotal, v))
  667. }
  668. // TotalLT applies the LT predicate on the "total" field.
  669. func TotalLT(v int32) predicate.BatchMsg {
  670. return predicate.BatchMsg(sql.FieldLT(FieldTotal, v))
  671. }
  672. // TotalLTE applies the LTE predicate on the "total" field.
  673. func TotalLTE(v int32) predicate.BatchMsg {
  674. return predicate.BatchMsg(sql.FieldLTE(FieldTotal, v))
  675. }
  676. // TotalIsNil applies the IsNil predicate on the "total" field.
  677. func TotalIsNil() predicate.BatchMsg {
  678. return predicate.BatchMsg(sql.FieldIsNull(FieldTotal))
  679. }
  680. // TotalNotNil applies the NotNil predicate on the "total" field.
  681. func TotalNotNil() predicate.BatchMsg {
  682. return predicate.BatchMsg(sql.FieldNotNull(FieldTotal))
  683. }
  684. // SuccessEQ applies the EQ predicate on the "success" field.
  685. func SuccessEQ(v int32) predicate.BatchMsg {
  686. return predicate.BatchMsg(sql.FieldEQ(FieldSuccess, v))
  687. }
  688. // SuccessNEQ applies the NEQ predicate on the "success" field.
  689. func SuccessNEQ(v int32) predicate.BatchMsg {
  690. return predicate.BatchMsg(sql.FieldNEQ(FieldSuccess, v))
  691. }
  692. // SuccessIn applies the In predicate on the "success" field.
  693. func SuccessIn(vs ...int32) predicate.BatchMsg {
  694. return predicate.BatchMsg(sql.FieldIn(FieldSuccess, vs...))
  695. }
  696. // SuccessNotIn applies the NotIn predicate on the "success" field.
  697. func SuccessNotIn(vs ...int32) predicate.BatchMsg {
  698. return predicate.BatchMsg(sql.FieldNotIn(FieldSuccess, vs...))
  699. }
  700. // SuccessGT applies the GT predicate on the "success" field.
  701. func SuccessGT(v int32) predicate.BatchMsg {
  702. return predicate.BatchMsg(sql.FieldGT(FieldSuccess, v))
  703. }
  704. // SuccessGTE applies the GTE predicate on the "success" field.
  705. func SuccessGTE(v int32) predicate.BatchMsg {
  706. return predicate.BatchMsg(sql.FieldGTE(FieldSuccess, v))
  707. }
  708. // SuccessLT applies the LT predicate on the "success" field.
  709. func SuccessLT(v int32) predicate.BatchMsg {
  710. return predicate.BatchMsg(sql.FieldLT(FieldSuccess, v))
  711. }
  712. // SuccessLTE applies the LTE predicate on the "success" field.
  713. func SuccessLTE(v int32) predicate.BatchMsg {
  714. return predicate.BatchMsg(sql.FieldLTE(FieldSuccess, v))
  715. }
  716. // SuccessIsNil applies the IsNil predicate on the "success" field.
  717. func SuccessIsNil() predicate.BatchMsg {
  718. return predicate.BatchMsg(sql.FieldIsNull(FieldSuccess))
  719. }
  720. // SuccessNotNil applies the NotNil predicate on the "success" field.
  721. func SuccessNotNil() predicate.BatchMsg {
  722. return predicate.BatchMsg(sql.FieldNotNull(FieldSuccess))
  723. }
  724. // FailEQ applies the EQ predicate on the "fail" field.
  725. func FailEQ(v int32) predicate.BatchMsg {
  726. return predicate.BatchMsg(sql.FieldEQ(FieldFail, v))
  727. }
  728. // FailNEQ applies the NEQ predicate on the "fail" field.
  729. func FailNEQ(v int32) predicate.BatchMsg {
  730. return predicate.BatchMsg(sql.FieldNEQ(FieldFail, v))
  731. }
  732. // FailIn applies the In predicate on the "fail" field.
  733. func FailIn(vs ...int32) predicate.BatchMsg {
  734. return predicate.BatchMsg(sql.FieldIn(FieldFail, vs...))
  735. }
  736. // FailNotIn applies the NotIn predicate on the "fail" field.
  737. func FailNotIn(vs ...int32) predicate.BatchMsg {
  738. return predicate.BatchMsg(sql.FieldNotIn(FieldFail, vs...))
  739. }
  740. // FailGT applies the GT predicate on the "fail" field.
  741. func FailGT(v int32) predicate.BatchMsg {
  742. return predicate.BatchMsg(sql.FieldGT(FieldFail, v))
  743. }
  744. // FailGTE applies the GTE predicate on the "fail" field.
  745. func FailGTE(v int32) predicate.BatchMsg {
  746. return predicate.BatchMsg(sql.FieldGTE(FieldFail, v))
  747. }
  748. // FailLT applies the LT predicate on the "fail" field.
  749. func FailLT(v int32) predicate.BatchMsg {
  750. return predicate.BatchMsg(sql.FieldLT(FieldFail, v))
  751. }
  752. // FailLTE applies the LTE predicate on the "fail" field.
  753. func FailLTE(v int32) predicate.BatchMsg {
  754. return predicate.BatchMsg(sql.FieldLTE(FieldFail, v))
  755. }
  756. // FailIsNil applies the IsNil predicate on the "fail" field.
  757. func FailIsNil() predicate.BatchMsg {
  758. return predicate.BatchMsg(sql.FieldIsNull(FieldFail))
  759. }
  760. // FailNotNil applies the NotNil predicate on the "fail" field.
  761. func FailNotNil() predicate.BatchMsg {
  762. return predicate.BatchMsg(sql.FieldNotNull(FieldFail))
  763. }
  764. // StartTimeEQ applies the EQ predicate on the "start_time" field.
  765. func StartTimeEQ(v time.Time) predicate.BatchMsg {
  766. return predicate.BatchMsg(sql.FieldEQ(FieldStartTime, v))
  767. }
  768. // StartTimeNEQ applies the NEQ predicate on the "start_time" field.
  769. func StartTimeNEQ(v time.Time) predicate.BatchMsg {
  770. return predicate.BatchMsg(sql.FieldNEQ(FieldStartTime, v))
  771. }
  772. // StartTimeIn applies the In predicate on the "start_time" field.
  773. func StartTimeIn(vs ...time.Time) predicate.BatchMsg {
  774. return predicate.BatchMsg(sql.FieldIn(FieldStartTime, vs...))
  775. }
  776. // StartTimeNotIn applies the NotIn predicate on the "start_time" field.
  777. func StartTimeNotIn(vs ...time.Time) predicate.BatchMsg {
  778. return predicate.BatchMsg(sql.FieldNotIn(FieldStartTime, vs...))
  779. }
  780. // StartTimeGT applies the GT predicate on the "start_time" field.
  781. func StartTimeGT(v time.Time) predicate.BatchMsg {
  782. return predicate.BatchMsg(sql.FieldGT(FieldStartTime, v))
  783. }
  784. // StartTimeGTE applies the GTE predicate on the "start_time" field.
  785. func StartTimeGTE(v time.Time) predicate.BatchMsg {
  786. return predicate.BatchMsg(sql.FieldGTE(FieldStartTime, v))
  787. }
  788. // StartTimeLT applies the LT predicate on the "start_time" field.
  789. func StartTimeLT(v time.Time) predicate.BatchMsg {
  790. return predicate.BatchMsg(sql.FieldLT(FieldStartTime, v))
  791. }
  792. // StartTimeLTE applies the LTE predicate on the "start_time" field.
  793. func StartTimeLTE(v time.Time) predicate.BatchMsg {
  794. return predicate.BatchMsg(sql.FieldLTE(FieldStartTime, v))
  795. }
  796. // StartTimeIsNil applies the IsNil predicate on the "start_time" field.
  797. func StartTimeIsNil() predicate.BatchMsg {
  798. return predicate.BatchMsg(sql.FieldIsNull(FieldStartTime))
  799. }
  800. // StartTimeNotNil applies the NotNil predicate on the "start_time" field.
  801. func StartTimeNotNil() predicate.BatchMsg {
  802. return predicate.BatchMsg(sql.FieldNotNull(FieldStartTime))
  803. }
  804. // StopTimeEQ applies the EQ predicate on the "stop_time" field.
  805. func StopTimeEQ(v time.Time) predicate.BatchMsg {
  806. return predicate.BatchMsg(sql.FieldEQ(FieldStopTime, v))
  807. }
  808. // StopTimeNEQ applies the NEQ predicate on the "stop_time" field.
  809. func StopTimeNEQ(v time.Time) predicate.BatchMsg {
  810. return predicate.BatchMsg(sql.FieldNEQ(FieldStopTime, v))
  811. }
  812. // StopTimeIn applies the In predicate on the "stop_time" field.
  813. func StopTimeIn(vs ...time.Time) predicate.BatchMsg {
  814. return predicate.BatchMsg(sql.FieldIn(FieldStopTime, vs...))
  815. }
  816. // StopTimeNotIn applies the NotIn predicate on the "stop_time" field.
  817. func StopTimeNotIn(vs ...time.Time) predicate.BatchMsg {
  818. return predicate.BatchMsg(sql.FieldNotIn(FieldStopTime, vs...))
  819. }
  820. // StopTimeGT applies the GT predicate on the "stop_time" field.
  821. func StopTimeGT(v time.Time) predicate.BatchMsg {
  822. return predicate.BatchMsg(sql.FieldGT(FieldStopTime, v))
  823. }
  824. // StopTimeGTE applies the GTE predicate on the "stop_time" field.
  825. func StopTimeGTE(v time.Time) predicate.BatchMsg {
  826. return predicate.BatchMsg(sql.FieldGTE(FieldStopTime, v))
  827. }
  828. // StopTimeLT applies the LT predicate on the "stop_time" field.
  829. func StopTimeLT(v time.Time) predicate.BatchMsg {
  830. return predicate.BatchMsg(sql.FieldLT(FieldStopTime, v))
  831. }
  832. // StopTimeLTE applies the LTE predicate on the "stop_time" field.
  833. func StopTimeLTE(v time.Time) predicate.BatchMsg {
  834. return predicate.BatchMsg(sql.FieldLTE(FieldStopTime, v))
  835. }
  836. // StopTimeIsNil applies the IsNil predicate on the "stop_time" field.
  837. func StopTimeIsNil() predicate.BatchMsg {
  838. return predicate.BatchMsg(sql.FieldIsNull(FieldStopTime))
  839. }
  840. // StopTimeNotNil applies the NotNil predicate on the "stop_time" field.
  841. func StopTimeNotNil() predicate.BatchMsg {
  842. return predicate.BatchMsg(sql.FieldNotNull(FieldStopTime))
  843. }
  844. // SendTimeEQ applies the EQ predicate on the "send_time" field.
  845. func SendTimeEQ(v time.Time) predicate.BatchMsg {
  846. return predicate.BatchMsg(sql.FieldEQ(FieldSendTime, v))
  847. }
  848. // SendTimeNEQ applies the NEQ predicate on the "send_time" field.
  849. func SendTimeNEQ(v time.Time) predicate.BatchMsg {
  850. return predicate.BatchMsg(sql.FieldNEQ(FieldSendTime, v))
  851. }
  852. // SendTimeIn applies the In predicate on the "send_time" field.
  853. func SendTimeIn(vs ...time.Time) predicate.BatchMsg {
  854. return predicate.BatchMsg(sql.FieldIn(FieldSendTime, vs...))
  855. }
  856. // SendTimeNotIn applies the NotIn predicate on the "send_time" field.
  857. func SendTimeNotIn(vs ...time.Time) predicate.BatchMsg {
  858. return predicate.BatchMsg(sql.FieldNotIn(FieldSendTime, vs...))
  859. }
  860. // SendTimeGT applies the GT predicate on the "send_time" field.
  861. func SendTimeGT(v time.Time) predicate.BatchMsg {
  862. return predicate.BatchMsg(sql.FieldGT(FieldSendTime, v))
  863. }
  864. // SendTimeGTE applies the GTE predicate on the "send_time" field.
  865. func SendTimeGTE(v time.Time) predicate.BatchMsg {
  866. return predicate.BatchMsg(sql.FieldGTE(FieldSendTime, v))
  867. }
  868. // SendTimeLT applies the LT predicate on the "send_time" field.
  869. func SendTimeLT(v time.Time) predicate.BatchMsg {
  870. return predicate.BatchMsg(sql.FieldLT(FieldSendTime, v))
  871. }
  872. // SendTimeLTE applies the LTE predicate on the "send_time" field.
  873. func SendTimeLTE(v time.Time) predicate.BatchMsg {
  874. return predicate.BatchMsg(sql.FieldLTE(FieldSendTime, v))
  875. }
  876. // SendTimeIsNil applies the IsNil predicate on the "send_time" field.
  877. func SendTimeIsNil() predicate.BatchMsg {
  878. return predicate.BatchMsg(sql.FieldIsNull(FieldSendTime))
  879. }
  880. // SendTimeNotNil applies the NotNil predicate on the "send_time" field.
  881. func SendTimeNotNil() predicate.BatchMsg {
  882. return predicate.BatchMsg(sql.FieldNotNull(FieldSendTime))
  883. }
  884. // TypeEQ applies the EQ predicate on the "type" field.
  885. func TypeEQ(v int32) predicate.BatchMsg {
  886. return predicate.BatchMsg(sql.FieldEQ(FieldType, v))
  887. }
  888. // TypeNEQ applies the NEQ predicate on the "type" field.
  889. func TypeNEQ(v int32) predicate.BatchMsg {
  890. return predicate.BatchMsg(sql.FieldNEQ(FieldType, v))
  891. }
  892. // TypeIn applies the In predicate on the "type" field.
  893. func TypeIn(vs ...int32) predicate.BatchMsg {
  894. return predicate.BatchMsg(sql.FieldIn(FieldType, vs...))
  895. }
  896. // TypeNotIn applies the NotIn predicate on the "type" field.
  897. func TypeNotIn(vs ...int32) predicate.BatchMsg {
  898. return predicate.BatchMsg(sql.FieldNotIn(FieldType, vs...))
  899. }
  900. // TypeGT applies the GT predicate on the "type" field.
  901. func TypeGT(v int32) predicate.BatchMsg {
  902. return predicate.BatchMsg(sql.FieldGT(FieldType, v))
  903. }
  904. // TypeGTE applies the GTE predicate on the "type" field.
  905. func TypeGTE(v int32) predicate.BatchMsg {
  906. return predicate.BatchMsg(sql.FieldGTE(FieldType, v))
  907. }
  908. // TypeLT applies the LT predicate on the "type" field.
  909. func TypeLT(v int32) predicate.BatchMsg {
  910. return predicate.BatchMsg(sql.FieldLT(FieldType, v))
  911. }
  912. // TypeLTE applies the LTE predicate on the "type" field.
  913. func TypeLTE(v int32) predicate.BatchMsg {
  914. return predicate.BatchMsg(sql.FieldLTE(FieldType, v))
  915. }
  916. // TypeIsNil applies the IsNil predicate on the "type" field.
  917. func TypeIsNil() predicate.BatchMsg {
  918. return predicate.BatchMsg(sql.FieldIsNull(FieldType))
  919. }
  920. // TypeNotNil applies the NotNil predicate on the "type" field.
  921. func TypeNotNil() predicate.BatchMsg {
  922. return predicate.BatchMsg(sql.FieldNotNull(FieldType))
  923. }
  924. // OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
  925. func OrganizationIDEQ(v uint64) predicate.BatchMsg {
  926. return predicate.BatchMsg(sql.FieldEQ(FieldOrganizationID, v))
  927. }
  928. // OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
  929. func OrganizationIDNEQ(v uint64) predicate.BatchMsg {
  930. return predicate.BatchMsg(sql.FieldNEQ(FieldOrganizationID, v))
  931. }
  932. // OrganizationIDIn applies the In predicate on the "organization_id" field.
  933. func OrganizationIDIn(vs ...uint64) predicate.BatchMsg {
  934. return predicate.BatchMsg(sql.FieldIn(FieldOrganizationID, vs...))
  935. }
  936. // OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
  937. func OrganizationIDNotIn(vs ...uint64) predicate.BatchMsg {
  938. return predicate.BatchMsg(sql.FieldNotIn(FieldOrganizationID, vs...))
  939. }
  940. // OrganizationIDGT applies the GT predicate on the "organization_id" field.
  941. func OrganizationIDGT(v uint64) predicate.BatchMsg {
  942. return predicate.BatchMsg(sql.FieldGT(FieldOrganizationID, v))
  943. }
  944. // OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
  945. func OrganizationIDGTE(v uint64) predicate.BatchMsg {
  946. return predicate.BatchMsg(sql.FieldGTE(FieldOrganizationID, v))
  947. }
  948. // OrganizationIDLT applies the LT predicate on the "organization_id" field.
  949. func OrganizationIDLT(v uint64) predicate.BatchMsg {
  950. return predicate.BatchMsg(sql.FieldLT(FieldOrganizationID, v))
  951. }
  952. // OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
  953. func OrganizationIDLTE(v uint64) predicate.BatchMsg {
  954. return predicate.BatchMsg(sql.FieldLTE(FieldOrganizationID, v))
  955. }
  956. // CtypeEQ applies the EQ predicate on the "ctype" field.
  957. func CtypeEQ(v uint64) predicate.BatchMsg {
  958. return predicate.BatchMsg(sql.FieldEQ(FieldCtype, v))
  959. }
  960. // CtypeNEQ applies the NEQ predicate on the "ctype" field.
  961. func CtypeNEQ(v uint64) predicate.BatchMsg {
  962. return predicate.BatchMsg(sql.FieldNEQ(FieldCtype, v))
  963. }
  964. // CtypeIn applies the In predicate on the "ctype" field.
  965. func CtypeIn(vs ...uint64) predicate.BatchMsg {
  966. return predicate.BatchMsg(sql.FieldIn(FieldCtype, vs...))
  967. }
  968. // CtypeNotIn applies the NotIn predicate on the "ctype" field.
  969. func CtypeNotIn(vs ...uint64) predicate.BatchMsg {
  970. return predicate.BatchMsg(sql.FieldNotIn(FieldCtype, vs...))
  971. }
  972. // CtypeGT applies the GT predicate on the "ctype" field.
  973. func CtypeGT(v uint64) predicate.BatchMsg {
  974. return predicate.BatchMsg(sql.FieldGT(FieldCtype, v))
  975. }
  976. // CtypeGTE applies the GTE predicate on the "ctype" field.
  977. func CtypeGTE(v uint64) predicate.BatchMsg {
  978. return predicate.BatchMsg(sql.FieldGTE(FieldCtype, v))
  979. }
  980. // CtypeLT applies the LT predicate on the "ctype" field.
  981. func CtypeLT(v uint64) predicate.BatchMsg {
  982. return predicate.BatchMsg(sql.FieldLT(FieldCtype, v))
  983. }
  984. // CtypeLTE applies the LTE predicate on the "ctype" field.
  985. func CtypeLTE(v uint64) predicate.BatchMsg {
  986. return predicate.BatchMsg(sql.FieldLTE(FieldCtype, v))
  987. }
  988. // CcEQ applies the EQ predicate on the "cc" field.
  989. func CcEQ(v string) predicate.BatchMsg {
  990. return predicate.BatchMsg(sql.FieldEQ(FieldCc, v))
  991. }
  992. // CcNEQ applies the NEQ predicate on the "cc" field.
  993. func CcNEQ(v string) predicate.BatchMsg {
  994. return predicate.BatchMsg(sql.FieldNEQ(FieldCc, v))
  995. }
  996. // CcIn applies the In predicate on the "cc" field.
  997. func CcIn(vs ...string) predicate.BatchMsg {
  998. return predicate.BatchMsg(sql.FieldIn(FieldCc, vs...))
  999. }
  1000. // CcNotIn applies the NotIn predicate on the "cc" field.
  1001. func CcNotIn(vs ...string) predicate.BatchMsg {
  1002. return predicate.BatchMsg(sql.FieldNotIn(FieldCc, vs...))
  1003. }
  1004. // CcGT applies the GT predicate on the "cc" field.
  1005. func CcGT(v string) predicate.BatchMsg {
  1006. return predicate.BatchMsg(sql.FieldGT(FieldCc, v))
  1007. }
  1008. // CcGTE applies the GTE predicate on the "cc" field.
  1009. func CcGTE(v string) predicate.BatchMsg {
  1010. return predicate.BatchMsg(sql.FieldGTE(FieldCc, v))
  1011. }
  1012. // CcLT applies the LT predicate on the "cc" field.
  1013. func CcLT(v string) predicate.BatchMsg {
  1014. return predicate.BatchMsg(sql.FieldLT(FieldCc, v))
  1015. }
  1016. // CcLTE applies the LTE predicate on the "cc" field.
  1017. func CcLTE(v string) predicate.BatchMsg {
  1018. return predicate.BatchMsg(sql.FieldLTE(FieldCc, v))
  1019. }
  1020. // CcContains applies the Contains predicate on the "cc" field.
  1021. func CcContains(v string) predicate.BatchMsg {
  1022. return predicate.BatchMsg(sql.FieldContains(FieldCc, v))
  1023. }
  1024. // CcHasPrefix applies the HasPrefix predicate on the "cc" field.
  1025. func CcHasPrefix(v string) predicate.BatchMsg {
  1026. return predicate.BatchMsg(sql.FieldHasPrefix(FieldCc, v))
  1027. }
  1028. // CcHasSuffix applies the HasSuffix predicate on the "cc" field.
  1029. func CcHasSuffix(v string) predicate.BatchMsg {
  1030. return predicate.BatchMsg(sql.FieldHasSuffix(FieldCc, v))
  1031. }
  1032. // CcIsNil applies the IsNil predicate on the "cc" field.
  1033. func CcIsNil() predicate.BatchMsg {
  1034. return predicate.BatchMsg(sql.FieldIsNull(FieldCc))
  1035. }
  1036. // CcNotNil applies the NotNil predicate on the "cc" field.
  1037. func CcNotNil() predicate.BatchMsg {
  1038. return predicate.BatchMsg(sql.FieldNotNull(FieldCc))
  1039. }
  1040. // CcEqualFold applies the EqualFold predicate on the "cc" field.
  1041. func CcEqualFold(v string) predicate.BatchMsg {
  1042. return predicate.BatchMsg(sql.FieldEqualFold(FieldCc, v))
  1043. }
  1044. // CcContainsFold applies the ContainsFold predicate on the "cc" field.
  1045. func CcContainsFold(v string) predicate.BatchMsg {
  1046. return predicate.BatchMsg(sql.FieldContainsFold(FieldCc, v))
  1047. }
  1048. // PhoneEQ applies the EQ predicate on the "phone" field.
  1049. func PhoneEQ(v string) predicate.BatchMsg {
  1050. return predicate.BatchMsg(sql.FieldEQ(FieldPhone, v))
  1051. }
  1052. // PhoneNEQ applies the NEQ predicate on the "phone" field.
  1053. func PhoneNEQ(v string) predicate.BatchMsg {
  1054. return predicate.BatchMsg(sql.FieldNEQ(FieldPhone, v))
  1055. }
  1056. // PhoneIn applies the In predicate on the "phone" field.
  1057. func PhoneIn(vs ...string) predicate.BatchMsg {
  1058. return predicate.BatchMsg(sql.FieldIn(FieldPhone, vs...))
  1059. }
  1060. // PhoneNotIn applies the NotIn predicate on the "phone" field.
  1061. func PhoneNotIn(vs ...string) predicate.BatchMsg {
  1062. return predicate.BatchMsg(sql.FieldNotIn(FieldPhone, vs...))
  1063. }
  1064. // PhoneGT applies the GT predicate on the "phone" field.
  1065. func PhoneGT(v string) predicate.BatchMsg {
  1066. return predicate.BatchMsg(sql.FieldGT(FieldPhone, v))
  1067. }
  1068. // PhoneGTE applies the GTE predicate on the "phone" field.
  1069. func PhoneGTE(v string) predicate.BatchMsg {
  1070. return predicate.BatchMsg(sql.FieldGTE(FieldPhone, v))
  1071. }
  1072. // PhoneLT applies the LT predicate on the "phone" field.
  1073. func PhoneLT(v string) predicate.BatchMsg {
  1074. return predicate.BatchMsg(sql.FieldLT(FieldPhone, v))
  1075. }
  1076. // PhoneLTE applies the LTE predicate on the "phone" field.
  1077. func PhoneLTE(v string) predicate.BatchMsg {
  1078. return predicate.BatchMsg(sql.FieldLTE(FieldPhone, v))
  1079. }
  1080. // PhoneContains applies the Contains predicate on the "phone" field.
  1081. func PhoneContains(v string) predicate.BatchMsg {
  1082. return predicate.BatchMsg(sql.FieldContains(FieldPhone, v))
  1083. }
  1084. // PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
  1085. func PhoneHasPrefix(v string) predicate.BatchMsg {
  1086. return predicate.BatchMsg(sql.FieldHasPrefix(FieldPhone, v))
  1087. }
  1088. // PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
  1089. func PhoneHasSuffix(v string) predicate.BatchMsg {
  1090. return predicate.BatchMsg(sql.FieldHasSuffix(FieldPhone, v))
  1091. }
  1092. // PhoneIsNil applies the IsNil predicate on the "phone" field.
  1093. func PhoneIsNil() predicate.BatchMsg {
  1094. return predicate.BatchMsg(sql.FieldIsNull(FieldPhone))
  1095. }
  1096. // PhoneNotNil applies the NotNil predicate on the "phone" field.
  1097. func PhoneNotNil() predicate.BatchMsg {
  1098. return predicate.BatchMsg(sql.FieldNotNull(FieldPhone))
  1099. }
  1100. // PhoneEqualFold applies the EqualFold predicate on the "phone" field.
  1101. func PhoneEqualFold(v string) predicate.BatchMsg {
  1102. return predicate.BatchMsg(sql.FieldEqualFold(FieldPhone, v))
  1103. }
  1104. // PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
  1105. func PhoneContainsFold(v string) predicate.BatchMsg {
  1106. return predicate.BatchMsg(sql.FieldContainsFold(FieldPhone, v))
  1107. }
  1108. // TemplateNameEQ applies the EQ predicate on the "template_name" field.
  1109. func TemplateNameEQ(v string) predicate.BatchMsg {
  1110. return predicate.BatchMsg(sql.FieldEQ(FieldTemplateName, v))
  1111. }
  1112. // TemplateNameNEQ applies the NEQ predicate on the "template_name" field.
  1113. func TemplateNameNEQ(v string) predicate.BatchMsg {
  1114. return predicate.BatchMsg(sql.FieldNEQ(FieldTemplateName, v))
  1115. }
  1116. // TemplateNameIn applies the In predicate on the "template_name" field.
  1117. func TemplateNameIn(vs ...string) predicate.BatchMsg {
  1118. return predicate.BatchMsg(sql.FieldIn(FieldTemplateName, vs...))
  1119. }
  1120. // TemplateNameNotIn applies the NotIn predicate on the "template_name" field.
  1121. func TemplateNameNotIn(vs ...string) predicate.BatchMsg {
  1122. return predicate.BatchMsg(sql.FieldNotIn(FieldTemplateName, vs...))
  1123. }
  1124. // TemplateNameGT applies the GT predicate on the "template_name" field.
  1125. func TemplateNameGT(v string) predicate.BatchMsg {
  1126. return predicate.BatchMsg(sql.FieldGT(FieldTemplateName, v))
  1127. }
  1128. // TemplateNameGTE applies the GTE predicate on the "template_name" field.
  1129. func TemplateNameGTE(v string) predicate.BatchMsg {
  1130. return predicate.BatchMsg(sql.FieldGTE(FieldTemplateName, v))
  1131. }
  1132. // TemplateNameLT applies the LT predicate on the "template_name" field.
  1133. func TemplateNameLT(v string) predicate.BatchMsg {
  1134. return predicate.BatchMsg(sql.FieldLT(FieldTemplateName, v))
  1135. }
  1136. // TemplateNameLTE applies the LTE predicate on the "template_name" field.
  1137. func TemplateNameLTE(v string) predicate.BatchMsg {
  1138. return predicate.BatchMsg(sql.FieldLTE(FieldTemplateName, v))
  1139. }
  1140. // TemplateNameContains applies the Contains predicate on the "template_name" field.
  1141. func TemplateNameContains(v string) predicate.BatchMsg {
  1142. return predicate.BatchMsg(sql.FieldContains(FieldTemplateName, v))
  1143. }
  1144. // TemplateNameHasPrefix applies the HasPrefix predicate on the "template_name" field.
  1145. func TemplateNameHasPrefix(v string) predicate.BatchMsg {
  1146. return predicate.BatchMsg(sql.FieldHasPrefix(FieldTemplateName, v))
  1147. }
  1148. // TemplateNameHasSuffix applies the HasSuffix predicate on the "template_name" field.
  1149. func TemplateNameHasSuffix(v string) predicate.BatchMsg {
  1150. return predicate.BatchMsg(sql.FieldHasSuffix(FieldTemplateName, v))
  1151. }
  1152. // TemplateNameIsNil applies the IsNil predicate on the "template_name" field.
  1153. func TemplateNameIsNil() predicate.BatchMsg {
  1154. return predicate.BatchMsg(sql.FieldIsNull(FieldTemplateName))
  1155. }
  1156. // TemplateNameNotNil applies the NotNil predicate on the "template_name" field.
  1157. func TemplateNameNotNil() predicate.BatchMsg {
  1158. return predicate.BatchMsg(sql.FieldNotNull(FieldTemplateName))
  1159. }
  1160. // TemplateNameEqualFold applies the EqualFold predicate on the "template_name" field.
  1161. func TemplateNameEqualFold(v string) predicate.BatchMsg {
  1162. return predicate.BatchMsg(sql.FieldEqualFold(FieldTemplateName, v))
  1163. }
  1164. // TemplateNameContainsFold applies the ContainsFold predicate on the "template_name" field.
  1165. func TemplateNameContainsFold(v string) predicate.BatchMsg {
  1166. return predicate.BatchMsg(sql.FieldContainsFold(FieldTemplateName, v))
  1167. }
  1168. // TemplateCodeEQ applies the EQ predicate on the "template_code" field.
  1169. func TemplateCodeEQ(v string) predicate.BatchMsg {
  1170. return predicate.BatchMsg(sql.FieldEQ(FieldTemplateCode, v))
  1171. }
  1172. // TemplateCodeNEQ applies the NEQ predicate on the "template_code" field.
  1173. func TemplateCodeNEQ(v string) predicate.BatchMsg {
  1174. return predicate.BatchMsg(sql.FieldNEQ(FieldTemplateCode, v))
  1175. }
  1176. // TemplateCodeIn applies the In predicate on the "template_code" field.
  1177. func TemplateCodeIn(vs ...string) predicate.BatchMsg {
  1178. return predicate.BatchMsg(sql.FieldIn(FieldTemplateCode, vs...))
  1179. }
  1180. // TemplateCodeNotIn applies the NotIn predicate on the "template_code" field.
  1181. func TemplateCodeNotIn(vs ...string) predicate.BatchMsg {
  1182. return predicate.BatchMsg(sql.FieldNotIn(FieldTemplateCode, vs...))
  1183. }
  1184. // TemplateCodeGT applies the GT predicate on the "template_code" field.
  1185. func TemplateCodeGT(v string) predicate.BatchMsg {
  1186. return predicate.BatchMsg(sql.FieldGT(FieldTemplateCode, v))
  1187. }
  1188. // TemplateCodeGTE applies the GTE predicate on the "template_code" field.
  1189. func TemplateCodeGTE(v string) predicate.BatchMsg {
  1190. return predicate.BatchMsg(sql.FieldGTE(FieldTemplateCode, v))
  1191. }
  1192. // TemplateCodeLT applies the LT predicate on the "template_code" field.
  1193. func TemplateCodeLT(v string) predicate.BatchMsg {
  1194. return predicate.BatchMsg(sql.FieldLT(FieldTemplateCode, v))
  1195. }
  1196. // TemplateCodeLTE applies the LTE predicate on the "template_code" field.
  1197. func TemplateCodeLTE(v string) predicate.BatchMsg {
  1198. return predicate.BatchMsg(sql.FieldLTE(FieldTemplateCode, v))
  1199. }
  1200. // TemplateCodeContains applies the Contains predicate on the "template_code" field.
  1201. func TemplateCodeContains(v string) predicate.BatchMsg {
  1202. return predicate.BatchMsg(sql.FieldContains(FieldTemplateCode, v))
  1203. }
  1204. // TemplateCodeHasPrefix applies the HasPrefix predicate on the "template_code" field.
  1205. func TemplateCodeHasPrefix(v string) predicate.BatchMsg {
  1206. return predicate.BatchMsg(sql.FieldHasPrefix(FieldTemplateCode, v))
  1207. }
  1208. // TemplateCodeHasSuffix applies the HasSuffix predicate on the "template_code" field.
  1209. func TemplateCodeHasSuffix(v string) predicate.BatchMsg {
  1210. return predicate.BatchMsg(sql.FieldHasSuffix(FieldTemplateCode, v))
  1211. }
  1212. // TemplateCodeIsNil applies the IsNil predicate on the "template_code" field.
  1213. func TemplateCodeIsNil() predicate.BatchMsg {
  1214. return predicate.BatchMsg(sql.FieldIsNull(FieldTemplateCode))
  1215. }
  1216. // TemplateCodeNotNil applies the NotNil predicate on the "template_code" field.
  1217. func TemplateCodeNotNil() predicate.BatchMsg {
  1218. return predicate.BatchMsg(sql.FieldNotNull(FieldTemplateCode))
  1219. }
  1220. // TemplateCodeEqualFold applies the EqualFold predicate on the "template_code" field.
  1221. func TemplateCodeEqualFold(v string) predicate.BatchMsg {
  1222. return predicate.BatchMsg(sql.FieldEqualFold(FieldTemplateCode, v))
  1223. }
  1224. // TemplateCodeContainsFold applies the ContainsFold predicate on the "template_code" field.
  1225. func TemplateCodeContainsFold(v string) predicate.BatchMsg {
  1226. return predicate.BatchMsg(sql.FieldContainsFold(FieldTemplateCode, v))
  1227. }
  1228. // LangEQ applies the EQ predicate on the "lang" field.
  1229. func LangEQ(v string) predicate.BatchMsg {
  1230. return predicate.BatchMsg(sql.FieldEQ(FieldLang, v))
  1231. }
  1232. // LangNEQ applies the NEQ predicate on the "lang" field.
  1233. func LangNEQ(v string) predicate.BatchMsg {
  1234. return predicate.BatchMsg(sql.FieldNEQ(FieldLang, v))
  1235. }
  1236. // LangIn applies the In predicate on the "lang" field.
  1237. func LangIn(vs ...string) predicate.BatchMsg {
  1238. return predicate.BatchMsg(sql.FieldIn(FieldLang, vs...))
  1239. }
  1240. // LangNotIn applies the NotIn predicate on the "lang" field.
  1241. func LangNotIn(vs ...string) predicate.BatchMsg {
  1242. return predicate.BatchMsg(sql.FieldNotIn(FieldLang, vs...))
  1243. }
  1244. // LangGT applies the GT predicate on the "lang" field.
  1245. func LangGT(v string) predicate.BatchMsg {
  1246. return predicate.BatchMsg(sql.FieldGT(FieldLang, v))
  1247. }
  1248. // LangGTE applies the GTE predicate on the "lang" field.
  1249. func LangGTE(v string) predicate.BatchMsg {
  1250. return predicate.BatchMsg(sql.FieldGTE(FieldLang, v))
  1251. }
  1252. // LangLT applies the LT predicate on the "lang" field.
  1253. func LangLT(v string) predicate.BatchMsg {
  1254. return predicate.BatchMsg(sql.FieldLT(FieldLang, v))
  1255. }
  1256. // LangLTE applies the LTE predicate on the "lang" field.
  1257. func LangLTE(v string) predicate.BatchMsg {
  1258. return predicate.BatchMsg(sql.FieldLTE(FieldLang, v))
  1259. }
  1260. // LangContains applies the Contains predicate on the "lang" field.
  1261. func LangContains(v string) predicate.BatchMsg {
  1262. return predicate.BatchMsg(sql.FieldContains(FieldLang, v))
  1263. }
  1264. // LangHasPrefix applies the HasPrefix predicate on the "lang" field.
  1265. func LangHasPrefix(v string) predicate.BatchMsg {
  1266. return predicate.BatchMsg(sql.FieldHasPrefix(FieldLang, v))
  1267. }
  1268. // LangHasSuffix applies the HasSuffix predicate on the "lang" field.
  1269. func LangHasSuffix(v string) predicate.BatchMsg {
  1270. return predicate.BatchMsg(sql.FieldHasSuffix(FieldLang, v))
  1271. }
  1272. // LangIsNil applies the IsNil predicate on the "lang" field.
  1273. func LangIsNil() predicate.BatchMsg {
  1274. return predicate.BatchMsg(sql.FieldIsNull(FieldLang))
  1275. }
  1276. // LangNotNil applies the NotNil predicate on the "lang" field.
  1277. func LangNotNil() predicate.BatchMsg {
  1278. return predicate.BatchMsg(sql.FieldNotNull(FieldLang))
  1279. }
  1280. // LangEqualFold applies the EqualFold predicate on the "lang" field.
  1281. func LangEqualFold(v string) predicate.BatchMsg {
  1282. return predicate.BatchMsg(sql.FieldEqualFold(FieldLang, v))
  1283. }
  1284. // LangContainsFold applies the ContainsFold predicate on the "lang" field.
  1285. func LangContainsFold(v string) predicate.BatchMsg {
  1286. return predicate.BatchMsg(sql.FieldContainsFold(FieldLang, v))
  1287. }
  1288. // And groups predicates with the AND operator between them.
  1289. func And(predicates ...predicate.BatchMsg) predicate.BatchMsg {
  1290. return predicate.BatchMsg(sql.AndPredicates(predicates...))
  1291. }
  1292. // Or groups predicates with the OR operator between them.
  1293. func Or(predicates ...predicate.BatchMsg) predicate.BatchMsg {
  1294. return predicate.BatchMsg(sql.OrPredicates(predicates...))
  1295. }
  1296. // Not applies the not operator on the given predicate.
  1297. func Not(p predicate.BatchMsg) predicate.BatchMsg {
  1298. return predicate.BatchMsg(sql.NotPredicates(p))
  1299. }