feat:多项功能优化
This commit is contained in:
@@ -79,6 +79,16 @@ func Status(v string) predicate.Station {
|
||||
return predicate.Station(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// IsBuiltin applies equality check predicate on the "isBuiltin" field. It's identical to IsBuiltinEQ.
|
||||
func IsBuiltin(v bool) predicate.Station {
|
||||
return predicate.Station(sql.FieldEQ(FieldIsBuiltin, v))
|
||||
}
|
||||
|
||||
// HasDock applies equality check predicate on the "hasDock" field. It's identical to HasDockEQ.
|
||||
func HasDock(v bool) predicate.Station {
|
||||
return predicate.Station(sql.FieldEQ(FieldHasDock, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.Station {
|
||||
return predicate.Station(sql.FieldEQ(FieldCreatedAt, v))
|
||||
@@ -369,6 +379,26 @@ func StatusContainsFold(v string) predicate.Station {
|
||||
return predicate.Station(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// IsBuiltinEQ applies the EQ predicate on the "isBuiltin" field.
|
||||
func IsBuiltinEQ(v bool) predicate.Station {
|
||||
return predicate.Station(sql.FieldEQ(FieldIsBuiltin, v))
|
||||
}
|
||||
|
||||
// IsBuiltinNEQ applies the NEQ predicate on the "isBuiltin" field.
|
||||
func IsBuiltinNEQ(v bool) predicate.Station {
|
||||
return predicate.Station(sql.FieldNEQ(FieldIsBuiltin, v))
|
||||
}
|
||||
|
||||
// HasDockEQ applies the EQ predicate on the "hasDock" field.
|
||||
func HasDockEQ(v bool) predicate.Station {
|
||||
return predicate.Station(sql.FieldEQ(FieldHasDock, v))
|
||||
}
|
||||
|
||||
// HasDockNEQ applies the NEQ predicate on the "hasDock" field.
|
||||
func HasDockNEQ(v bool) predicate.Station {
|
||||
return predicate.Station(sql.FieldNEQ(FieldHasDock, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.Station {
|
||||
return predicate.Station(sql.FieldEQ(FieldCreatedAt, v))
|
||||
|
||||
Reference in New Issue
Block a user