320 lines
13 KiB
Go
320 lines
13 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|||
|
|
|
||
|
|
package stationterminalstate
|
||
|
|
|
||
|
|
import (
|
||
|
|
"bj_power_mes/ent/predicate"
|
||
|
|
|
||
|
|
"entgo.io/ent/dialect/sql"
|
||
|
|
)
|
||
|
|
|
||
|
|
// ID filters vertices based on their ID field.
|
||
|
|
func ID(id int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDEQ applies the EQ predicate on the ID field.
|
||
|
|
func IDEQ(id int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
||
|
|
func IDNEQ(id int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNEQ(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDIn applies the In predicate on the ID field.
|
||
|
|
func IDIn(ids ...int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldIn(FieldID, ids...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
||
|
|
func IDNotIn(ids ...int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNotIn(FieldID, ids...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDGT applies the GT predicate on the ID field.
|
||
|
|
func IDGT(id int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGT(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDGTE applies the GTE predicate on the ID field.
|
||
|
|
func IDGTE(id int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGTE(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDLT applies the LT predicate on the ID field.
|
||
|
|
func IDLT(id int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLT(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// IDLTE applies the LTE predicate on the ID field.
|
||
|
|
func IDLTE(id int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLTE(FieldID, id))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNo applies equality check predicate on the "stationNo" field. It's identical to StationNoEQ.
|
||
|
|
func StationNo(v int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Powered applies equality check predicate on the "powered" field. It's identical to PoweredEQ.
|
||
|
|
func Powered(v bool) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldPowered, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LoggedIn applies equality check predicate on the "loggedIn" field. It's identical to LoggedInEQ.
|
||
|
|
func LoggedIn(v bool) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldLoggedIn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
||
|
|
func Operator(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Paused applies equality check predicate on the "paused" field. It's identical to PausedEQ.
|
||
|
|
func Paused(v bool) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldPaused, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LastHeartbeatAt applies equality check predicate on the "lastHeartbeatAt" field. It's identical to LastHeartbeatAtEQ.
|
||
|
|
func LastHeartbeatAt(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldLastHeartbeatAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
||
|
|
func UpdatedAt(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoEQ applies the EQ predicate on the "stationNo" field.
|
||
|
|
func StationNoEQ(v int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoNEQ applies the NEQ predicate on the "stationNo" field.
|
||
|
|
func StationNoNEQ(v int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNEQ(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoIn applies the In predicate on the "stationNo" field.
|
||
|
|
func StationNoIn(vs ...int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldIn(FieldStationNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoNotIn applies the NotIn predicate on the "stationNo" field.
|
||
|
|
func StationNoNotIn(vs ...int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNotIn(FieldStationNo, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoGT applies the GT predicate on the "stationNo" field.
|
||
|
|
func StationNoGT(v int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGT(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoGTE applies the GTE predicate on the "stationNo" field.
|
||
|
|
func StationNoGTE(v int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGTE(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoLT applies the LT predicate on the "stationNo" field.
|
||
|
|
func StationNoLT(v int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLT(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// StationNoLTE applies the LTE predicate on the "stationNo" field.
|
||
|
|
func StationNoLTE(v int) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLTE(FieldStationNo, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PoweredEQ applies the EQ predicate on the "powered" field.
|
||
|
|
func PoweredEQ(v bool) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldPowered, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PoweredNEQ applies the NEQ predicate on the "powered" field.
|
||
|
|
func PoweredNEQ(v bool) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNEQ(FieldPowered, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LoggedInEQ applies the EQ predicate on the "loggedIn" field.
|
||
|
|
func LoggedInEQ(v bool) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldLoggedIn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LoggedInNEQ applies the NEQ predicate on the "loggedIn" field.
|
||
|
|
func LoggedInNEQ(v bool) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNEQ(FieldLoggedIn, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorEQ applies the EQ predicate on the "operator" field.
|
||
|
|
func OperatorEQ(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
||
|
|
func OperatorNEQ(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNEQ(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorIn applies the In predicate on the "operator" field.
|
||
|
|
func OperatorIn(vs ...string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldIn(FieldOperator, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
||
|
|
func OperatorNotIn(vs ...string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNotIn(FieldOperator, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorGT applies the GT predicate on the "operator" field.
|
||
|
|
func OperatorGT(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGT(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorGTE applies the GTE predicate on the "operator" field.
|
||
|
|
func OperatorGTE(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGTE(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorLT applies the LT predicate on the "operator" field.
|
||
|
|
func OperatorLT(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLT(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorLTE applies the LTE predicate on the "operator" field.
|
||
|
|
func OperatorLTE(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLTE(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorContains applies the Contains predicate on the "operator" field.
|
||
|
|
func OperatorContains(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldContains(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
||
|
|
func OperatorHasPrefix(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldHasPrefix(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
||
|
|
func OperatorHasSuffix(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldHasSuffix(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
||
|
|
func OperatorEqualFold(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEqualFold(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
||
|
|
func OperatorContainsFold(v string) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldContainsFold(FieldOperator, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PausedEQ applies the EQ predicate on the "paused" field.
|
||
|
|
func PausedEQ(v bool) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldPaused, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// PausedNEQ applies the NEQ predicate on the "paused" field.
|
||
|
|
func PausedNEQ(v bool) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNEQ(FieldPaused, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LastHeartbeatAtEQ applies the EQ predicate on the "lastHeartbeatAt" field.
|
||
|
|
func LastHeartbeatAtEQ(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldLastHeartbeatAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LastHeartbeatAtNEQ applies the NEQ predicate on the "lastHeartbeatAt" field.
|
||
|
|
func LastHeartbeatAtNEQ(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNEQ(FieldLastHeartbeatAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LastHeartbeatAtIn applies the In predicate on the "lastHeartbeatAt" field.
|
||
|
|
func LastHeartbeatAtIn(vs ...int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldIn(FieldLastHeartbeatAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LastHeartbeatAtNotIn applies the NotIn predicate on the "lastHeartbeatAt" field.
|
||
|
|
func LastHeartbeatAtNotIn(vs ...int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNotIn(FieldLastHeartbeatAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LastHeartbeatAtGT applies the GT predicate on the "lastHeartbeatAt" field.
|
||
|
|
func LastHeartbeatAtGT(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGT(FieldLastHeartbeatAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LastHeartbeatAtGTE applies the GTE predicate on the "lastHeartbeatAt" field.
|
||
|
|
func LastHeartbeatAtGTE(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGTE(FieldLastHeartbeatAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LastHeartbeatAtLT applies the LT predicate on the "lastHeartbeatAt" field.
|
||
|
|
func LastHeartbeatAtLT(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLT(FieldLastHeartbeatAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// LastHeartbeatAtLTE applies the LTE predicate on the "lastHeartbeatAt" field.
|
||
|
|
func LastHeartbeatAtLTE(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLTE(FieldLastHeartbeatAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtEQ(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldEQ(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtNEQ(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNEQ(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtIn(vs ...int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldIn(FieldUpdatedAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtNotIn(vs ...int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtGT(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGT(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtGTE(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldGTE(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtLT(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLT(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
||
|
|
func UpdatedAtLTE(v int64) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.FieldLTE(FieldUpdatedAt, v))
|
||
|
|
}
|
||
|
|
|
||
|
|
// And groups predicates with the AND operator between them.
|
||
|
|
func And(predicates ...predicate.StationTerminalState) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.AndPredicates(predicates...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Or groups predicates with the OR operator between them.
|
||
|
|
func Or(predicates ...predicate.StationTerminalState) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.OrPredicates(predicates...))
|
||
|
|
}
|
||
|
|
|
||
|
|
// Not applies the not operator on the given predicate.
|
||
|
|
func Not(p predicate.StationTerminalState) predicate.StationTerminalState {
|
||
|
|
return predicate.StationTerminalState(sql.NotPredicates(p))
|
||
|
|
}
|