where.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. // Code generated by ent, DO NOT EDIT.
  2. package agentbase
  3. import (
  4. "wechat-api/ent/predicate"
  5. "entgo.io/ent/dialect/sql"
  6. "entgo.io/ent/dialect/sql/sqlgraph"
  7. )
  8. // ID filters vertices based on their ID field.
  9. func ID(id string) predicate.AgentBase {
  10. return predicate.AgentBase(sql.FieldEQ(FieldID, id))
  11. }
  12. // IDEQ applies the EQ predicate on the ID field.
  13. func IDEQ(id string) predicate.AgentBase {
  14. return predicate.AgentBase(sql.FieldEQ(FieldID, id))
  15. }
  16. // IDNEQ applies the NEQ predicate on the ID field.
  17. func IDNEQ(id string) predicate.AgentBase {
  18. return predicate.AgentBase(sql.FieldNEQ(FieldID, id))
  19. }
  20. // IDIn applies the In predicate on the ID field.
  21. func IDIn(ids ...string) predicate.AgentBase {
  22. return predicate.AgentBase(sql.FieldIn(FieldID, ids...))
  23. }
  24. // IDNotIn applies the NotIn predicate on the ID field.
  25. func IDNotIn(ids ...string) predicate.AgentBase {
  26. return predicate.AgentBase(sql.FieldNotIn(FieldID, ids...))
  27. }
  28. // IDGT applies the GT predicate on the ID field.
  29. func IDGT(id string) predicate.AgentBase {
  30. return predicate.AgentBase(sql.FieldGT(FieldID, id))
  31. }
  32. // IDGTE applies the GTE predicate on the ID field.
  33. func IDGTE(id string) predicate.AgentBase {
  34. return predicate.AgentBase(sql.FieldGTE(FieldID, id))
  35. }
  36. // IDLT applies the LT predicate on the ID field.
  37. func IDLT(id string) predicate.AgentBase {
  38. return predicate.AgentBase(sql.FieldLT(FieldID, id))
  39. }
  40. // IDLTE applies the LTE predicate on the ID field.
  41. func IDLTE(id string) predicate.AgentBase {
  42. return predicate.AgentBase(sql.FieldLTE(FieldID, id))
  43. }
  44. // IDEqualFold applies the EqualFold predicate on the ID field.
  45. func IDEqualFold(id string) predicate.AgentBase {
  46. return predicate.AgentBase(sql.FieldEqualFold(FieldID, id))
  47. }
  48. // IDContainsFold applies the ContainsFold predicate on the ID field.
  49. func IDContainsFold(id string) predicate.AgentBase {
  50. return predicate.AgentBase(sql.FieldContainsFold(FieldID, id))
  51. }
  52. // Q applies equality check predicate on the "q" field. It's identical to QEQ.
  53. func Q(v string) predicate.AgentBase {
  54. return predicate.AgentBase(sql.FieldEQ(FieldQ, v))
  55. }
  56. // A applies equality check predicate on the "a" field. It's identical to AEQ.
  57. func A(v string) predicate.AgentBase {
  58. return predicate.AgentBase(sql.FieldEQ(FieldA, v))
  59. }
  60. // ChunkIndex applies equality check predicate on the "chunk_index" field. It's identical to ChunkIndexEQ.
  61. func ChunkIndex(v uint64) predicate.AgentBase {
  62. return predicate.AgentBase(sql.FieldEQ(FieldChunkIndex, v))
  63. }
  64. // DatasetID applies equality check predicate on the "dataset_id" field. It's identical to DatasetIDEQ.
  65. func DatasetID(v string) predicate.AgentBase {
  66. return predicate.AgentBase(sql.FieldEQ(FieldDatasetID, v))
  67. }
  68. // CollectionID applies equality check predicate on the "collection_id" field. It's identical to CollectionIDEQ.
  69. func CollectionID(v string) predicate.AgentBase {
  70. return predicate.AgentBase(sql.FieldEQ(FieldCollectionID, v))
  71. }
  72. // SourceName applies equality check predicate on the "source_name" field. It's identical to SourceNameEQ.
  73. func SourceName(v string) predicate.AgentBase {
  74. return predicate.AgentBase(sql.FieldEQ(FieldSourceName, v))
  75. }
  76. // QEQ applies the EQ predicate on the "q" field.
  77. func QEQ(v string) predicate.AgentBase {
  78. return predicate.AgentBase(sql.FieldEQ(FieldQ, v))
  79. }
  80. // QNEQ applies the NEQ predicate on the "q" field.
  81. func QNEQ(v string) predicate.AgentBase {
  82. return predicate.AgentBase(sql.FieldNEQ(FieldQ, v))
  83. }
  84. // QIn applies the In predicate on the "q" field.
  85. func QIn(vs ...string) predicate.AgentBase {
  86. return predicate.AgentBase(sql.FieldIn(FieldQ, vs...))
  87. }
  88. // QNotIn applies the NotIn predicate on the "q" field.
  89. func QNotIn(vs ...string) predicate.AgentBase {
  90. return predicate.AgentBase(sql.FieldNotIn(FieldQ, vs...))
  91. }
  92. // QGT applies the GT predicate on the "q" field.
  93. func QGT(v string) predicate.AgentBase {
  94. return predicate.AgentBase(sql.FieldGT(FieldQ, v))
  95. }
  96. // QGTE applies the GTE predicate on the "q" field.
  97. func QGTE(v string) predicate.AgentBase {
  98. return predicate.AgentBase(sql.FieldGTE(FieldQ, v))
  99. }
  100. // QLT applies the LT predicate on the "q" field.
  101. func QLT(v string) predicate.AgentBase {
  102. return predicate.AgentBase(sql.FieldLT(FieldQ, v))
  103. }
  104. // QLTE applies the LTE predicate on the "q" field.
  105. func QLTE(v string) predicate.AgentBase {
  106. return predicate.AgentBase(sql.FieldLTE(FieldQ, v))
  107. }
  108. // QContains applies the Contains predicate on the "q" field.
  109. func QContains(v string) predicate.AgentBase {
  110. return predicate.AgentBase(sql.FieldContains(FieldQ, v))
  111. }
  112. // QHasPrefix applies the HasPrefix predicate on the "q" field.
  113. func QHasPrefix(v string) predicate.AgentBase {
  114. return predicate.AgentBase(sql.FieldHasPrefix(FieldQ, v))
  115. }
  116. // QHasSuffix applies the HasSuffix predicate on the "q" field.
  117. func QHasSuffix(v string) predicate.AgentBase {
  118. return predicate.AgentBase(sql.FieldHasSuffix(FieldQ, v))
  119. }
  120. // QIsNil applies the IsNil predicate on the "q" field.
  121. func QIsNil() predicate.AgentBase {
  122. return predicate.AgentBase(sql.FieldIsNull(FieldQ))
  123. }
  124. // QNotNil applies the NotNil predicate on the "q" field.
  125. func QNotNil() predicate.AgentBase {
  126. return predicate.AgentBase(sql.FieldNotNull(FieldQ))
  127. }
  128. // QEqualFold applies the EqualFold predicate on the "q" field.
  129. func QEqualFold(v string) predicate.AgentBase {
  130. return predicate.AgentBase(sql.FieldEqualFold(FieldQ, v))
  131. }
  132. // QContainsFold applies the ContainsFold predicate on the "q" field.
  133. func QContainsFold(v string) predicate.AgentBase {
  134. return predicate.AgentBase(sql.FieldContainsFold(FieldQ, v))
  135. }
  136. // AEQ applies the EQ predicate on the "a" field.
  137. func AEQ(v string) predicate.AgentBase {
  138. return predicate.AgentBase(sql.FieldEQ(FieldA, v))
  139. }
  140. // ANEQ applies the NEQ predicate on the "a" field.
  141. func ANEQ(v string) predicate.AgentBase {
  142. return predicate.AgentBase(sql.FieldNEQ(FieldA, v))
  143. }
  144. // AIn applies the In predicate on the "a" field.
  145. func AIn(vs ...string) predicate.AgentBase {
  146. return predicate.AgentBase(sql.FieldIn(FieldA, vs...))
  147. }
  148. // ANotIn applies the NotIn predicate on the "a" field.
  149. func ANotIn(vs ...string) predicate.AgentBase {
  150. return predicate.AgentBase(sql.FieldNotIn(FieldA, vs...))
  151. }
  152. // AGT applies the GT predicate on the "a" field.
  153. func AGT(v string) predicate.AgentBase {
  154. return predicate.AgentBase(sql.FieldGT(FieldA, v))
  155. }
  156. // AGTE applies the GTE predicate on the "a" field.
  157. func AGTE(v string) predicate.AgentBase {
  158. return predicate.AgentBase(sql.FieldGTE(FieldA, v))
  159. }
  160. // ALT applies the LT predicate on the "a" field.
  161. func ALT(v string) predicate.AgentBase {
  162. return predicate.AgentBase(sql.FieldLT(FieldA, v))
  163. }
  164. // ALTE applies the LTE predicate on the "a" field.
  165. func ALTE(v string) predicate.AgentBase {
  166. return predicate.AgentBase(sql.FieldLTE(FieldA, v))
  167. }
  168. // AContains applies the Contains predicate on the "a" field.
  169. func AContains(v string) predicate.AgentBase {
  170. return predicate.AgentBase(sql.FieldContains(FieldA, v))
  171. }
  172. // AHasPrefix applies the HasPrefix predicate on the "a" field.
  173. func AHasPrefix(v string) predicate.AgentBase {
  174. return predicate.AgentBase(sql.FieldHasPrefix(FieldA, v))
  175. }
  176. // AHasSuffix applies the HasSuffix predicate on the "a" field.
  177. func AHasSuffix(v string) predicate.AgentBase {
  178. return predicate.AgentBase(sql.FieldHasSuffix(FieldA, v))
  179. }
  180. // AIsNil applies the IsNil predicate on the "a" field.
  181. func AIsNil() predicate.AgentBase {
  182. return predicate.AgentBase(sql.FieldIsNull(FieldA))
  183. }
  184. // ANotNil applies the NotNil predicate on the "a" field.
  185. func ANotNil() predicate.AgentBase {
  186. return predicate.AgentBase(sql.FieldNotNull(FieldA))
  187. }
  188. // AEqualFold applies the EqualFold predicate on the "a" field.
  189. func AEqualFold(v string) predicate.AgentBase {
  190. return predicate.AgentBase(sql.FieldEqualFold(FieldA, v))
  191. }
  192. // AContainsFold applies the ContainsFold predicate on the "a" field.
  193. func AContainsFold(v string) predicate.AgentBase {
  194. return predicate.AgentBase(sql.FieldContainsFold(FieldA, v))
  195. }
  196. // ChunkIndexEQ applies the EQ predicate on the "chunk_index" field.
  197. func ChunkIndexEQ(v uint64) predicate.AgentBase {
  198. return predicate.AgentBase(sql.FieldEQ(FieldChunkIndex, v))
  199. }
  200. // ChunkIndexNEQ applies the NEQ predicate on the "chunk_index" field.
  201. func ChunkIndexNEQ(v uint64) predicate.AgentBase {
  202. return predicate.AgentBase(sql.FieldNEQ(FieldChunkIndex, v))
  203. }
  204. // ChunkIndexIn applies the In predicate on the "chunk_index" field.
  205. func ChunkIndexIn(vs ...uint64) predicate.AgentBase {
  206. return predicate.AgentBase(sql.FieldIn(FieldChunkIndex, vs...))
  207. }
  208. // ChunkIndexNotIn applies the NotIn predicate on the "chunk_index" field.
  209. func ChunkIndexNotIn(vs ...uint64) predicate.AgentBase {
  210. return predicate.AgentBase(sql.FieldNotIn(FieldChunkIndex, vs...))
  211. }
  212. // ChunkIndexGT applies the GT predicate on the "chunk_index" field.
  213. func ChunkIndexGT(v uint64) predicate.AgentBase {
  214. return predicate.AgentBase(sql.FieldGT(FieldChunkIndex, v))
  215. }
  216. // ChunkIndexGTE applies the GTE predicate on the "chunk_index" field.
  217. func ChunkIndexGTE(v uint64) predicate.AgentBase {
  218. return predicate.AgentBase(sql.FieldGTE(FieldChunkIndex, v))
  219. }
  220. // ChunkIndexLT applies the LT predicate on the "chunk_index" field.
  221. func ChunkIndexLT(v uint64) predicate.AgentBase {
  222. return predicate.AgentBase(sql.FieldLT(FieldChunkIndex, v))
  223. }
  224. // ChunkIndexLTE applies the LTE predicate on the "chunk_index" field.
  225. func ChunkIndexLTE(v uint64) predicate.AgentBase {
  226. return predicate.AgentBase(sql.FieldLTE(FieldChunkIndex, v))
  227. }
  228. // IndexesIsNil applies the IsNil predicate on the "indexes" field.
  229. func IndexesIsNil() predicate.AgentBase {
  230. return predicate.AgentBase(sql.FieldIsNull(FieldIndexes))
  231. }
  232. // IndexesNotNil applies the NotNil predicate on the "indexes" field.
  233. func IndexesNotNil() predicate.AgentBase {
  234. return predicate.AgentBase(sql.FieldNotNull(FieldIndexes))
  235. }
  236. // DatasetIDEQ applies the EQ predicate on the "dataset_id" field.
  237. func DatasetIDEQ(v string) predicate.AgentBase {
  238. return predicate.AgentBase(sql.FieldEQ(FieldDatasetID, v))
  239. }
  240. // DatasetIDNEQ applies the NEQ predicate on the "dataset_id" field.
  241. func DatasetIDNEQ(v string) predicate.AgentBase {
  242. return predicate.AgentBase(sql.FieldNEQ(FieldDatasetID, v))
  243. }
  244. // DatasetIDIn applies the In predicate on the "dataset_id" field.
  245. func DatasetIDIn(vs ...string) predicate.AgentBase {
  246. return predicate.AgentBase(sql.FieldIn(FieldDatasetID, vs...))
  247. }
  248. // DatasetIDNotIn applies the NotIn predicate on the "dataset_id" field.
  249. func DatasetIDNotIn(vs ...string) predicate.AgentBase {
  250. return predicate.AgentBase(sql.FieldNotIn(FieldDatasetID, vs...))
  251. }
  252. // DatasetIDGT applies the GT predicate on the "dataset_id" field.
  253. func DatasetIDGT(v string) predicate.AgentBase {
  254. return predicate.AgentBase(sql.FieldGT(FieldDatasetID, v))
  255. }
  256. // DatasetIDGTE applies the GTE predicate on the "dataset_id" field.
  257. func DatasetIDGTE(v string) predicate.AgentBase {
  258. return predicate.AgentBase(sql.FieldGTE(FieldDatasetID, v))
  259. }
  260. // DatasetIDLT applies the LT predicate on the "dataset_id" field.
  261. func DatasetIDLT(v string) predicate.AgentBase {
  262. return predicate.AgentBase(sql.FieldLT(FieldDatasetID, v))
  263. }
  264. // DatasetIDLTE applies the LTE predicate on the "dataset_id" field.
  265. func DatasetIDLTE(v string) predicate.AgentBase {
  266. return predicate.AgentBase(sql.FieldLTE(FieldDatasetID, v))
  267. }
  268. // DatasetIDContains applies the Contains predicate on the "dataset_id" field.
  269. func DatasetIDContains(v string) predicate.AgentBase {
  270. return predicate.AgentBase(sql.FieldContains(FieldDatasetID, v))
  271. }
  272. // DatasetIDHasPrefix applies the HasPrefix predicate on the "dataset_id" field.
  273. func DatasetIDHasPrefix(v string) predicate.AgentBase {
  274. return predicate.AgentBase(sql.FieldHasPrefix(FieldDatasetID, v))
  275. }
  276. // DatasetIDHasSuffix applies the HasSuffix predicate on the "dataset_id" field.
  277. func DatasetIDHasSuffix(v string) predicate.AgentBase {
  278. return predicate.AgentBase(sql.FieldHasSuffix(FieldDatasetID, v))
  279. }
  280. // DatasetIDIsNil applies the IsNil predicate on the "dataset_id" field.
  281. func DatasetIDIsNil() predicate.AgentBase {
  282. return predicate.AgentBase(sql.FieldIsNull(FieldDatasetID))
  283. }
  284. // DatasetIDNotNil applies the NotNil predicate on the "dataset_id" field.
  285. func DatasetIDNotNil() predicate.AgentBase {
  286. return predicate.AgentBase(sql.FieldNotNull(FieldDatasetID))
  287. }
  288. // DatasetIDEqualFold applies the EqualFold predicate on the "dataset_id" field.
  289. func DatasetIDEqualFold(v string) predicate.AgentBase {
  290. return predicate.AgentBase(sql.FieldEqualFold(FieldDatasetID, v))
  291. }
  292. // DatasetIDContainsFold applies the ContainsFold predicate on the "dataset_id" field.
  293. func DatasetIDContainsFold(v string) predicate.AgentBase {
  294. return predicate.AgentBase(sql.FieldContainsFold(FieldDatasetID, v))
  295. }
  296. // CollectionIDEQ applies the EQ predicate on the "collection_id" field.
  297. func CollectionIDEQ(v string) predicate.AgentBase {
  298. return predicate.AgentBase(sql.FieldEQ(FieldCollectionID, v))
  299. }
  300. // CollectionIDNEQ applies the NEQ predicate on the "collection_id" field.
  301. func CollectionIDNEQ(v string) predicate.AgentBase {
  302. return predicate.AgentBase(sql.FieldNEQ(FieldCollectionID, v))
  303. }
  304. // CollectionIDIn applies the In predicate on the "collection_id" field.
  305. func CollectionIDIn(vs ...string) predicate.AgentBase {
  306. return predicate.AgentBase(sql.FieldIn(FieldCollectionID, vs...))
  307. }
  308. // CollectionIDNotIn applies the NotIn predicate on the "collection_id" field.
  309. func CollectionIDNotIn(vs ...string) predicate.AgentBase {
  310. return predicate.AgentBase(sql.FieldNotIn(FieldCollectionID, vs...))
  311. }
  312. // CollectionIDGT applies the GT predicate on the "collection_id" field.
  313. func CollectionIDGT(v string) predicate.AgentBase {
  314. return predicate.AgentBase(sql.FieldGT(FieldCollectionID, v))
  315. }
  316. // CollectionIDGTE applies the GTE predicate on the "collection_id" field.
  317. func CollectionIDGTE(v string) predicate.AgentBase {
  318. return predicate.AgentBase(sql.FieldGTE(FieldCollectionID, v))
  319. }
  320. // CollectionIDLT applies the LT predicate on the "collection_id" field.
  321. func CollectionIDLT(v string) predicate.AgentBase {
  322. return predicate.AgentBase(sql.FieldLT(FieldCollectionID, v))
  323. }
  324. // CollectionIDLTE applies the LTE predicate on the "collection_id" field.
  325. func CollectionIDLTE(v string) predicate.AgentBase {
  326. return predicate.AgentBase(sql.FieldLTE(FieldCollectionID, v))
  327. }
  328. // CollectionIDContains applies the Contains predicate on the "collection_id" field.
  329. func CollectionIDContains(v string) predicate.AgentBase {
  330. return predicate.AgentBase(sql.FieldContains(FieldCollectionID, v))
  331. }
  332. // CollectionIDHasPrefix applies the HasPrefix predicate on the "collection_id" field.
  333. func CollectionIDHasPrefix(v string) predicate.AgentBase {
  334. return predicate.AgentBase(sql.FieldHasPrefix(FieldCollectionID, v))
  335. }
  336. // CollectionIDHasSuffix applies the HasSuffix predicate on the "collection_id" field.
  337. func CollectionIDHasSuffix(v string) predicate.AgentBase {
  338. return predicate.AgentBase(sql.FieldHasSuffix(FieldCollectionID, v))
  339. }
  340. // CollectionIDIsNil applies the IsNil predicate on the "collection_id" field.
  341. func CollectionIDIsNil() predicate.AgentBase {
  342. return predicate.AgentBase(sql.FieldIsNull(FieldCollectionID))
  343. }
  344. // CollectionIDNotNil applies the NotNil predicate on the "collection_id" field.
  345. func CollectionIDNotNil() predicate.AgentBase {
  346. return predicate.AgentBase(sql.FieldNotNull(FieldCollectionID))
  347. }
  348. // CollectionIDEqualFold applies the EqualFold predicate on the "collection_id" field.
  349. func CollectionIDEqualFold(v string) predicate.AgentBase {
  350. return predicate.AgentBase(sql.FieldEqualFold(FieldCollectionID, v))
  351. }
  352. // CollectionIDContainsFold applies the ContainsFold predicate on the "collection_id" field.
  353. func CollectionIDContainsFold(v string) predicate.AgentBase {
  354. return predicate.AgentBase(sql.FieldContainsFold(FieldCollectionID, v))
  355. }
  356. // SourceNameEQ applies the EQ predicate on the "source_name" field.
  357. func SourceNameEQ(v string) predicate.AgentBase {
  358. return predicate.AgentBase(sql.FieldEQ(FieldSourceName, v))
  359. }
  360. // SourceNameNEQ applies the NEQ predicate on the "source_name" field.
  361. func SourceNameNEQ(v string) predicate.AgentBase {
  362. return predicate.AgentBase(sql.FieldNEQ(FieldSourceName, v))
  363. }
  364. // SourceNameIn applies the In predicate on the "source_name" field.
  365. func SourceNameIn(vs ...string) predicate.AgentBase {
  366. return predicate.AgentBase(sql.FieldIn(FieldSourceName, vs...))
  367. }
  368. // SourceNameNotIn applies the NotIn predicate on the "source_name" field.
  369. func SourceNameNotIn(vs ...string) predicate.AgentBase {
  370. return predicate.AgentBase(sql.FieldNotIn(FieldSourceName, vs...))
  371. }
  372. // SourceNameGT applies the GT predicate on the "source_name" field.
  373. func SourceNameGT(v string) predicate.AgentBase {
  374. return predicate.AgentBase(sql.FieldGT(FieldSourceName, v))
  375. }
  376. // SourceNameGTE applies the GTE predicate on the "source_name" field.
  377. func SourceNameGTE(v string) predicate.AgentBase {
  378. return predicate.AgentBase(sql.FieldGTE(FieldSourceName, v))
  379. }
  380. // SourceNameLT applies the LT predicate on the "source_name" field.
  381. func SourceNameLT(v string) predicate.AgentBase {
  382. return predicate.AgentBase(sql.FieldLT(FieldSourceName, v))
  383. }
  384. // SourceNameLTE applies the LTE predicate on the "source_name" field.
  385. func SourceNameLTE(v string) predicate.AgentBase {
  386. return predicate.AgentBase(sql.FieldLTE(FieldSourceName, v))
  387. }
  388. // SourceNameContains applies the Contains predicate on the "source_name" field.
  389. func SourceNameContains(v string) predicate.AgentBase {
  390. return predicate.AgentBase(sql.FieldContains(FieldSourceName, v))
  391. }
  392. // SourceNameHasPrefix applies the HasPrefix predicate on the "source_name" field.
  393. func SourceNameHasPrefix(v string) predicate.AgentBase {
  394. return predicate.AgentBase(sql.FieldHasPrefix(FieldSourceName, v))
  395. }
  396. // SourceNameHasSuffix applies the HasSuffix predicate on the "source_name" field.
  397. func SourceNameHasSuffix(v string) predicate.AgentBase {
  398. return predicate.AgentBase(sql.FieldHasSuffix(FieldSourceName, v))
  399. }
  400. // SourceNameIsNil applies the IsNil predicate on the "source_name" field.
  401. func SourceNameIsNil() predicate.AgentBase {
  402. return predicate.AgentBase(sql.FieldIsNull(FieldSourceName))
  403. }
  404. // SourceNameNotNil applies the NotNil predicate on the "source_name" field.
  405. func SourceNameNotNil() predicate.AgentBase {
  406. return predicate.AgentBase(sql.FieldNotNull(FieldSourceName))
  407. }
  408. // SourceNameEqualFold applies the EqualFold predicate on the "source_name" field.
  409. func SourceNameEqualFold(v string) predicate.AgentBase {
  410. return predicate.AgentBase(sql.FieldEqualFold(FieldSourceName, v))
  411. }
  412. // SourceNameContainsFold applies the ContainsFold predicate on the "source_name" field.
  413. func SourceNameContainsFold(v string) predicate.AgentBase {
  414. return predicate.AgentBase(sql.FieldContainsFold(FieldSourceName, v))
  415. }
  416. // CanWriteIsNil applies the IsNil predicate on the "can_write" field.
  417. func CanWriteIsNil() predicate.AgentBase {
  418. return predicate.AgentBase(sql.FieldIsNull(FieldCanWrite))
  419. }
  420. // CanWriteNotNil applies the NotNil predicate on the "can_write" field.
  421. func CanWriteNotNil() predicate.AgentBase {
  422. return predicate.AgentBase(sql.FieldNotNull(FieldCanWrite))
  423. }
  424. // IsOwnerIsNil applies the IsNil predicate on the "is_owner" field.
  425. func IsOwnerIsNil() predicate.AgentBase {
  426. return predicate.AgentBase(sql.FieldIsNull(FieldIsOwner))
  427. }
  428. // IsOwnerNotNil applies the NotNil predicate on the "is_owner" field.
  429. func IsOwnerNotNil() predicate.AgentBase {
  430. return predicate.AgentBase(sql.FieldNotNull(FieldIsOwner))
  431. }
  432. // HasWxAgent applies the HasEdge predicate on the "wx_agent" edge.
  433. func HasWxAgent() predicate.AgentBase {
  434. return predicate.AgentBase(func(s *sql.Selector) {
  435. step := sqlgraph.NewStep(
  436. sqlgraph.From(Table, FieldID),
  437. sqlgraph.Edge(sqlgraph.O2M, false, WxAgentTable, WxAgentColumn),
  438. )
  439. sqlgraph.HasNeighbors(s, step)
  440. })
  441. }
  442. // HasWxAgentWith applies the HasEdge predicate on the "wx_agent" edge with a given conditions (other predicates).
  443. func HasWxAgentWith(preds ...predicate.Wx) predicate.AgentBase {
  444. return predicate.AgentBase(func(s *sql.Selector) {
  445. step := newWxAgentStep()
  446. sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
  447. for _, p := range preds {
  448. p(s)
  449. }
  450. })
  451. })
  452. }
  453. // And groups predicates with the AND operator between them.
  454. func And(predicates ...predicate.AgentBase) predicate.AgentBase {
  455. return predicate.AgentBase(sql.AndPredicates(predicates...))
  456. }
  457. // Or groups predicates with the OR operator between them.
  458. func Or(predicates ...predicate.AgentBase) predicate.AgentBase {
  459. return predicate.AgentBase(sql.OrPredicates(predicates...))
  460. }
  461. // Not applies the not operator on the given predicate.
  462. func Not(p predicate.AgentBase) predicate.AgentBase {
  463. return predicate.AgentBase(sql.NotPredicates(p))
  464. }