-
-
Notifications
You must be signed in to change notification settings - Fork 253
/
where.go
1345 lines (1083 loc) · 45.5 KB
/
where.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by ent, DO NOT EDIT.
package menu
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"github.com/suyuan32/simple-admin-core/rpc/ent/predicate"
)
// ID filters vertices based on their ID field.
func ID(id uint64) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uint64) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uint64) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uint64) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uint64) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uint64) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uint64) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uint64) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uint64) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldID, id))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldUpdatedAt, v))
}
// Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.
func Sort(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldSort, v))
}
// ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.
func ParentID(v uint64) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldParentID, v))
}
// MenuLevel applies equality check predicate on the "menu_level" field. It's identical to MenuLevelEQ.
func MenuLevel(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldMenuLevel, v))
}
// MenuType applies equality check predicate on the "menu_type" field. It's identical to MenuTypeEQ.
func MenuType(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldMenuType, v))
}
// Path applies equality check predicate on the "path" field. It's identical to PathEQ.
func Path(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldPath, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldName, v))
}
// Redirect applies equality check predicate on the "redirect" field. It's identical to RedirectEQ.
func Redirect(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldRedirect, v))
}
// Component applies equality check predicate on the "component" field. It's identical to ComponentEQ.
func Component(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldComponent, v))
}
// Disabled applies equality check predicate on the "disabled" field. It's identical to DisabledEQ.
func Disabled(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldDisabled, v))
}
// ServiceName applies equality check predicate on the "service_name" field. It's identical to ServiceNameEQ.
func ServiceName(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldServiceName, v))
}
// Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func Title(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldTitle, v))
}
// Icon applies equality check predicate on the "icon" field. It's identical to IconEQ.
func Icon(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldIcon, v))
}
// HideMenu applies equality check predicate on the "hide_menu" field. It's identical to HideMenuEQ.
func HideMenu(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldHideMenu, v))
}
// HideBreadcrumb applies equality check predicate on the "hide_breadcrumb" field. It's identical to HideBreadcrumbEQ.
func HideBreadcrumb(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldHideBreadcrumb, v))
}
// IgnoreKeepAlive applies equality check predicate on the "ignore_keep_alive" field. It's identical to IgnoreKeepAliveEQ.
func IgnoreKeepAlive(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldIgnoreKeepAlive, v))
}
// HideTab applies equality check predicate on the "hide_tab" field. It's identical to HideTabEQ.
func HideTab(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldHideTab, v))
}
// FrameSrc applies equality check predicate on the "frame_src" field. It's identical to FrameSrcEQ.
func FrameSrc(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldFrameSrc, v))
}
// CarryParam applies equality check predicate on the "carry_param" field. It's identical to CarryParamEQ.
func CarryParam(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldCarryParam, v))
}
// HideChildrenInMenu applies equality check predicate on the "hide_children_in_menu" field. It's identical to HideChildrenInMenuEQ.
func HideChildrenInMenu(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldHideChildrenInMenu, v))
}
// Affix applies equality check predicate on the "affix" field. It's identical to AffixEQ.
func Affix(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldAffix, v))
}
// DynamicLevel applies equality check predicate on the "dynamic_level" field. It's identical to DynamicLevelEQ.
func DynamicLevel(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldDynamicLevel, v))
}
// RealPath applies equality check predicate on the "real_path" field. It's identical to RealPathEQ.
func RealPath(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldRealPath, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldUpdatedAt, v))
}
// SortEQ applies the EQ predicate on the "sort" field.
func SortEQ(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldSort, v))
}
// SortNEQ applies the NEQ predicate on the "sort" field.
func SortNEQ(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldSort, v))
}
// SortIn applies the In predicate on the "sort" field.
func SortIn(vs ...uint32) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldSort, vs...))
}
// SortNotIn applies the NotIn predicate on the "sort" field.
func SortNotIn(vs ...uint32) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldSort, vs...))
}
// SortGT applies the GT predicate on the "sort" field.
func SortGT(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldSort, v))
}
// SortGTE applies the GTE predicate on the "sort" field.
func SortGTE(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldSort, v))
}
// SortLT applies the LT predicate on the "sort" field.
func SortLT(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldSort, v))
}
// SortLTE applies the LTE predicate on the "sort" field.
func SortLTE(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldSort, v))
}
// ParentIDEQ applies the EQ predicate on the "parent_id" field.
func ParentIDEQ(v uint64) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldParentID, v))
}
// ParentIDNEQ applies the NEQ predicate on the "parent_id" field.
func ParentIDNEQ(v uint64) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldParentID, v))
}
// ParentIDIn applies the In predicate on the "parent_id" field.
func ParentIDIn(vs ...uint64) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldParentID, vs...))
}
// ParentIDNotIn applies the NotIn predicate on the "parent_id" field.
func ParentIDNotIn(vs ...uint64) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldParentID, vs...))
}
// ParentIDIsNil applies the IsNil predicate on the "parent_id" field.
func ParentIDIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldParentID))
}
// ParentIDNotNil applies the NotNil predicate on the "parent_id" field.
func ParentIDNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldParentID))
}
// MenuLevelEQ applies the EQ predicate on the "menu_level" field.
func MenuLevelEQ(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldMenuLevel, v))
}
// MenuLevelNEQ applies the NEQ predicate on the "menu_level" field.
func MenuLevelNEQ(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldMenuLevel, v))
}
// MenuLevelIn applies the In predicate on the "menu_level" field.
func MenuLevelIn(vs ...uint32) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldMenuLevel, vs...))
}
// MenuLevelNotIn applies the NotIn predicate on the "menu_level" field.
func MenuLevelNotIn(vs ...uint32) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldMenuLevel, vs...))
}
// MenuLevelGT applies the GT predicate on the "menu_level" field.
func MenuLevelGT(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldMenuLevel, v))
}
// MenuLevelGTE applies the GTE predicate on the "menu_level" field.
func MenuLevelGTE(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldMenuLevel, v))
}
// MenuLevelLT applies the LT predicate on the "menu_level" field.
func MenuLevelLT(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldMenuLevel, v))
}
// MenuLevelLTE applies the LTE predicate on the "menu_level" field.
func MenuLevelLTE(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldMenuLevel, v))
}
// MenuTypeEQ applies the EQ predicate on the "menu_type" field.
func MenuTypeEQ(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldMenuType, v))
}
// MenuTypeNEQ applies the NEQ predicate on the "menu_type" field.
func MenuTypeNEQ(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldMenuType, v))
}
// MenuTypeIn applies the In predicate on the "menu_type" field.
func MenuTypeIn(vs ...uint32) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldMenuType, vs...))
}
// MenuTypeNotIn applies the NotIn predicate on the "menu_type" field.
func MenuTypeNotIn(vs ...uint32) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldMenuType, vs...))
}
// MenuTypeGT applies the GT predicate on the "menu_type" field.
func MenuTypeGT(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldMenuType, v))
}
// MenuTypeGTE applies the GTE predicate on the "menu_type" field.
func MenuTypeGTE(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldMenuType, v))
}
// MenuTypeLT applies the LT predicate on the "menu_type" field.
func MenuTypeLT(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldMenuType, v))
}
// MenuTypeLTE applies the LTE predicate on the "menu_type" field.
func MenuTypeLTE(v uint32) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldMenuType, v))
}
// PathEQ applies the EQ predicate on the "path" field.
func PathEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldPath, v))
}
// PathNEQ applies the NEQ predicate on the "path" field.
func PathNEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldPath, v))
}
// PathIn applies the In predicate on the "path" field.
func PathIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldPath, vs...))
}
// PathNotIn applies the NotIn predicate on the "path" field.
func PathNotIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldPath, vs...))
}
// PathGT applies the GT predicate on the "path" field.
func PathGT(v string) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldPath, v))
}
// PathGTE applies the GTE predicate on the "path" field.
func PathGTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldPath, v))
}
// PathLT applies the LT predicate on the "path" field.
func PathLT(v string) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldPath, v))
}
// PathLTE applies the LTE predicate on the "path" field.
func PathLTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldPath, v))
}
// PathContains applies the Contains predicate on the "path" field.
func PathContains(v string) predicate.Menu {
return predicate.Menu(sql.FieldContains(FieldPath, v))
}
// PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasPrefix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasPrefix(FieldPath, v))
}
// PathHasSuffix applies the HasSuffix predicate on the "path" field.
func PathHasSuffix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasSuffix(FieldPath, v))
}
// PathIsNil applies the IsNil predicate on the "path" field.
func PathIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldPath))
}
// PathNotNil applies the NotNil predicate on the "path" field.
func PathNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldPath))
}
// PathEqualFold applies the EqualFold predicate on the "path" field.
func PathEqualFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldEqualFold(FieldPath, v))
}
// PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathContainsFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldContainsFold(FieldPath, v))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.Menu {
return predicate.Menu(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldContainsFold(FieldName, v))
}
// RedirectEQ applies the EQ predicate on the "redirect" field.
func RedirectEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldRedirect, v))
}
// RedirectNEQ applies the NEQ predicate on the "redirect" field.
func RedirectNEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldRedirect, v))
}
// RedirectIn applies the In predicate on the "redirect" field.
func RedirectIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldRedirect, vs...))
}
// RedirectNotIn applies the NotIn predicate on the "redirect" field.
func RedirectNotIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldRedirect, vs...))
}
// RedirectGT applies the GT predicate on the "redirect" field.
func RedirectGT(v string) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldRedirect, v))
}
// RedirectGTE applies the GTE predicate on the "redirect" field.
func RedirectGTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldRedirect, v))
}
// RedirectLT applies the LT predicate on the "redirect" field.
func RedirectLT(v string) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldRedirect, v))
}
// RedirectLTE applies the LTE predicate on the "redirect" field.
func RedirectLTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldRedirect, v))
}
// RedirectContains applies the Contains predicate on the "redirect" field.
func RedirectContains(v string) predicate.Menu {
return predicate.Menu(sql.FieldContains(FieldRedirect, v))
}
// RedirectHasPrefix applies the HasPrefix predicate on the "redirect" field.
func RedirectHasPrefix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasPrefix(FieldRedirect, v))
}
// RedirectHasSuffix applies the HasSuffix predicate on the "redirect" field.
func RedirectHasSuffix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasSuffix(FieldRedirect, v))
}
// RedirectIsNil applies the IsNil predicate on the "redirect" field.
func RedirectIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldRedirect))
}
// RedirectNotNil applies the NotNil predicate on the "redirect" field.
func RedirectNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldRedirect))
}
// RedirectEqualFold applies the EqualFold predicate on the "redirect" field.
func RedirectEqualFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldEqualFold(FieldRedirect, v))
}
// RedirectContainsFold applies the ContainsFold predicate on the "redirect" field.
func RedirectContainsFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldContainsFold(FieldRedirect, v))
}
// ComponentEQ applies the EQ predicate on the "component" field.
func ComponentEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldComponent, v))
}
// ComponentNEQ applies the NEQ predicate on the "component" field.
func ComponentNEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldComponent, v))
}
// ComponentIn applies the In predicate on the "component" field.
func ComponentIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldComponent, vs...))
}
// ComponentNotIn applies the NotIn predicate on the "component" field.
func ComponentNotIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldComponent, vs...))
}
// ComponentGT applies the GT predicate on the "component" field.
func ComponentGT(v string) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldComponent, v))
}
// ComponentGTE applies the GTE predicate on the "component" field.
func ComponentGTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldComponent, v))
}
// ComponentLT applies the LT predicate on the "component" field.
func ComponentLT(v string) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldComponent, v))
}
// ComponentLTE applies the LTE predicate on the "component" field.
func ComponentLTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldComponent, v))
}
// ComponentContains applies the Contains predicate on the "component" field.
func ComponentContains(v string) predicate.Menu {
return predicate.Menu(sql.FieldContains(FieldComponent, v))
}
// ComponentHasPrefix applies the HasPrefix predicate on the "component" field.
func ComponentHasPrefix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasPrefix(FieldComponent, v))
}
// ComponentHasSuffix applies the HasSuffix predicate on the "component" field.
func ComponentHasSuffix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasSuffix(FieldComponent, v))
}
// ComponentIsNil applies the IsNil predicate on the "component" field.
func ComponentIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldComponent))
}
// ComponentNotNil applies the NotNil predicate on the "component" field.
func ComponentNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldComponent))
}
// ComponentEqualFold applies the EqualFold predicate on the "component" field.
func ComponentEqualFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldEqualFold(FieldComponent, v))
}
// ComponentContainsFold applies the ContainsFold predicate on the "component" field.
func ComponentContainsFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldContainsFold(FieldComponent, v))
}
// DisabledEQ applies the EQ predicate on the "disabled" field.
func DisabledEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldDisabled, v))
}
// DisabledNEQ applies the NEQ predicate on the "disabled" field.
func DisabledNEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldDisabled, v))
}
// DisabledIsNil applies the IsNil predicate on the "disabled" field.
func DisabledIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldDisabled))
}
// DisabledNotNil applies the NotNil predicate on the "disabled" field.
func DisabledNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldDisabled))
}
// ServiceNameEQ applies the EQ predicate on the "service_name" field.
func ServiceNameEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldServiceName, v))
}
// ServiceNameNEQ applies the NEQ predicate on the "service_name" field.
func ServiceNameNEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldServiceName, v))
}
// ServiceNameIn applies the In predicate on the "service_name" field.
func ServiceNameIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldServiceName, vs...))
}
// ServiceNameNotIn applies the NotIn predicate on the "service_name" field.
func ServiceNameNotIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldServiceName, vs...))
}
// ServiceNameGT applies the GT predicate on the "service_name" field.
func ServiceNameGT(v string) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldServiceName, v))
}
// ServiceNameGTE applies the GTE predicate on the "service_name" field.
func ServiceNameGTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldServiceName, v))
}
// ServiceNameLT applies the LT predicate on the "service_name" field.
func ServiceNameLT(v string) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldServiceName, v))
}
// ServiceNameLTE applies the LTE predicate on the "service_name" field.
func ServiceNameLTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldServiceName, v))
}
// ServiceNameContains applies the Contains predicate on the "service_name" field.
func ServiceNameContains(v string) predicate.Menu {
return predicate.Menu(sql.FieldContains(FieldServiceName, v))
}
// ServiceNameHasPrefix applies the HasPrefix predicate on the "service_name" field.
func ServiceNameHasPrefix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasPrefix(FieldServiceName, v))
}
// ServiceNameHasSuffix applies the HasSuffix predicate on the "service_name" field.
func ServiceNameHasSuffix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasSuffix(FieldServiceName, v))
}
// ServiceNameIsNil applies the IsNil predicate on the "service_name" field.
func ServiceNameIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldServiceName))
}
// ServiceNameNotNil applies the NotNil predicate on the "service_name" field.
func ServiceNameNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldServiceName))
}
// ServiceNameEqualFold applies the EqualFold predicate on the "service_name" field.
func ServiceNameEqualFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldEqualFold(FieldServiceName, v))
}
// ServiceNameContainsFold applies the ContainsFold predicate on the "service_name" field.
func ServiceNameContainsFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldContainsFold(FieldServiceName, v))
}
// TitleEQ applies the EQ predicate on the "title" field.
func TitleEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldTitle, v))
}
// TitleNEQ applies the NEQ predicate on the "title" field.
func TitleNEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldTitle, v))
}
// TitleIn applies the In predicate on the "title" field.
func TitleIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldTitle, vs...))
}
// TitleNotIn applies the NotIn predicate on the "title" field.
func TitleNotIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldTitle, vs...))
}
// TitleGT applies the GT predicate on the "title" field.
func TitleGT(v string) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldTitle, v))
}
// TitleGTE applies the GTE predicate on the "title" field.
func TitleGTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldTitle, v))
}
// TitleLT applies the LT predicate on the "title" field.
func TitleLT(v string) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldTitle, v))
}
// TitleLTE applies the LTE predicate on the "title" field.
func TitleLTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldTitle, v))
}
// TitleContains applies the Contains predicate on the "title" field.
func TitleContains(v string) predicate.Menu {
return predicate.Menu(sql.FieldContains(FieldTitle, v))
}
// TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasPrefix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasPrefix(FieldTitle, v))
}
// TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleHasSuffix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasSuffix(FieldTitle, v))
}
// TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleEqualFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldEqualFold(FieldTitle, v))
}
// TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleContainsFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldContainsFold(FieldTitle, v))
}
// IconEQ applies the EQ predicate on the "icon" field.
func IconEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldIcon, v))
}
// IconNEQ applies the NEQ predicate on the "icon" field.
func IconNEQ(v string) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldIcon, v))
}
// IconIn applies the In predicate on the "icon" field.
func IconIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldIn(FieldIcon, vs...))
}
// IconNotIn applies the NotIn predicate on the "icon" field.
func IconNotIn(vs ...string) predicate.Menu {
return predicate.Menu(sql.FieldNotIn(FieldIcon, vs...))
}
// IconGT applies the GT predicate on the "icon" field.
func IconGT(v string) predicate.Menu {
return predicate.Menu(sql.FieldGT(FieldIcon, v))
}
// IconGTE applies the GTE predicate on the "icon" field.
func IconGTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldGTE(FieldIcon, v))
}
// IconLT applies the LT predicate on the "icon" field.
func IconLT(v string) predicate.Menu {
return predicate.Menu(sql.FieldLT(FieldIcon, v))
}
// IconLTE applies the LTE predicate on the "icon" field.
func IconLTE(v string) predicate.Menu {
return predicate.Menu(sql.FieldLTE(FieldIcon, v))
}
// IconContains applies the Contains predicate on the "icon" field.
func IconContains(v string) predicate.Menu {
return predicate.Menu(sql.FieldContains(FieldIcon, v))
}
// IconHasPrefix applies the HasPrefix predicate on the "icon" field.
func IconHasPrefix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasPrefix(FieldIcon, v))
}
// IconHasSuffix applies the HasSuffix predicate on the "icon" field.
func IconHasSuffix(v string) predicate.Menu {
return predicate.Menu(sql.FieldHasSuffix(FieldIcon, v))
}
// IconEqualFold applies the EqualFold predicate on the "icon" field.
func IconEqualFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldEqualFold(FieldIcon, v))
}
// IconContainsFold applies the ContainsFold predicate on the "icon" field.
func IconContainsFold(v string) predicate.Menu {
return predicate.Menu(sql.FieldContainsFold(FieldIcon, v))
}
// HideMenuEQ applies the EQ predicate on the "hide_menu" field.
func HideMenuEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldHideMenu, v))
}
// HideMenuNEQ applies the NEQ predicate on the "hide_menu" field.
func HideMenuNEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldHideMenu, v))
}
// HideMenuIsNil applies the IsNil predicate on the "hide_menu" field.
func HideMenuIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldHideMenu))
}
// HideMenuNotNil applies the NotNil predicate on the "hide_menu" field.
func HideMenuNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldHideMenu))
}
// HideBreadcrumbEQ applies the EQ predicate on the "hide_breadcrumb" field.
func HideBreadcrumbEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldHideBreadcrumb, v))
}
// HideBreadcrumbNEQ applies the NEQ predicate on the "hide_breadcrumb" field.
func HideBreadcrumbNEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldHideBreadcrumb, v))
}
// HideBreadcrumbIsNil applies the IsNil predicate on the "hide_breadcrumb" field.
func HideBreadcrumbIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldHideBreadcrumb))
}
// HideBreadcrumbNotNil applies the NotNil predicate on the "hide_breadcrumb" field.
func HideBreadcrumbNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldHideBreadcrumb))
}
// IgnoreKeepAliveEQ applies the EQ predicate on the "ignore_keep_alive" field.
func IgnoreKeepAliveEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldIgnoreKeepAlive, v))
}
// IgnoreKeepAliveNEQ applies the NEQ predicate on the "ignore_keep_alive" field.
func IgnoreKeepAliveNEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldIgnoreKeepAlive, v))
}
// IgnoreKeepAliveIsNil applies the IsNil predicate on the "ignore_keep_alive" field.
func IgnoreKeepAliveIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldIgnoreKeepAlive))
}
// IgnoreKeepAliveNotNil applies the NotNil predicate on the "ignore_keep_alive" field.
func IgnoreKeepAliveNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldIgnoreKeepAlive))
}
// HideTabEQ applies the EQ predicate on the "hide_tab" field.
func HideTabEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldEQ(FieldHideTab, v))
}
// HideTabNEQ applies the NEQ predicate on the "hide_tab" field.
func HideTabNEQ(v bool) predicate.Menu {
return predicate.Menu(sql.FieldNEQ(FieldHideTab, v))
}
// HideTabIsNil applies the IsNil predicate on the "hide_tab" field.
func HideTabIsNil() predicate.Menu {
return predicate.Menu(sql.FieldIsNull(FieldHideTab))
}
// HideTabNotNil applies the NotNil predicate on the "hide_tab" field.
func HideTabNotNil() predicate.Menu {
return predicate.Menu(sql.FieldNotNull(FieldHideTab))