feat: 新增 AgvPoint 点位表及客户端,支持点位编码与接驳台绑定
This commit is contained in:
@@ -0,0 +1,340 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package agvpoint
|
||||
|
||||
import (
|
||||
"bj_power_mes/ent/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// PositionCode applies equality check predicate on the "position_code" field. It's identical to PositionCodeEQ.
|
||||
func PositionCode(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
||||
func Name(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// IsDock applies equality check predicate on the "is_dock" field. It's identical to IsDockEQ.
|
||||
func IsDock(v bool) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldIsDock, v))
|
||||
}
|
||||
|
||||
// DockID applies equality check predicate on the "dock_id" field. It's identical to DockIDEQ.
|
||||
func DockID(v int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldDockID, v))
|
||||
}
|
||||
|
||||
// Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.
|
||||
func Enabled(v bool) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldEnabled, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// PositionCodeEQ applies the EQ predicate on the "position_code" field.
|
||||
func PositionCodeEQ(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeNEQ applies the NEQ predicate on the "position_code" field.
|
||||
func PositionCodeNEQ(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNEQ(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeIn applies the In predicate on the "position_code" field.
|
||||
func PositionCodeIn(vs ...string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldIn(FieldPositionCode, vs...))
|
||||
}
|
||||
|
||||
// PositionCodeNotIn applies the NotIn predicate on the "position_code" field.
|
||||
func PositionCodeNotIn(vs ...string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNotIn(FieldPositionCode, vs...))
|
||||
}
|
||||
|
||||
// PositionCodeGT applies the GT predicate on the "position_code" field.
|
||||
func PositionCodeGT(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGT(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeGTE applies the GTE predicate on the "position_code" field.
|
||||
func PositionCodeGTE(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGTE(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeLT applies the LT predicate on the "position_code" field.
|
||||
func PositionCodeLT(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLT(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeLTE applies the LTE predicate on the "position_code" field.
|
||||
func PositionCodeLTE(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLTE(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeContains applies the Contains predicate on the "position_code" field.
|
||||
func PositionCodeContains(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldContains(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeHasPrefix applies the HasPrefix predicate on the "position_code" field.
|
||||
func PositionCodeHasPrefix(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldHasPrefix(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeHasSuffix applies the HasSuffix predicate on the "position_code" field.
|
||||
func PositionCodeHasSuffix(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldHasSuffix(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeEqualFold applies the EqualFold predicate on the "position_code" field.
|
||||
func PositionCodeEqualFold(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEqualFold(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// PositionCodeContainsFold applies the ContainsFold predicate on the "position_code" field.
|
||||
func PositionCodeContainsFold(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldContainsFold(FieldPositionCode, v))
|
||||
}
|
||||
|
||||
// NameEQ applies the EQ predicate on the "name" field.
|
||||
func NameEQ(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameNEQ applies the NEQ predicate on the "name" field.
|
||||
func NameNEQ(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameIn applies the In predicate on the "name" field.
|
||||
func NameIn(vs ...string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameNotIn applies the NotIn predicate on the "name" field.
|
||||
func NameNotIn(vs ...string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNotIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameGT applies the GT predicate on the "name" field.
|
||||
func NameGT(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameGTE applies the GTE predicate on the "name" field.
|
||||
func NameGTE(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLT applies the LT predicate on the "name" field.
|
||||
func NameLT(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLTE applies the LTE predicate on the "name" field.
|
||||
func NameLTE(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContains applies the Contains predicate on the "name" field.
|
||||
func NameContains(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldContains(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
||||
func NameHasPrefix(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldHasPrefix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
||||
func NameHasSuffix(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldHasSuffix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
||||
func NameEqualFold(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEqualFold(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
||||
func NameContainsFold(v string) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldContainsFold(FieldName, v))
|
||||
}
|
||||
|
||||
// IsDockEQ applies the EQ predicate on the "is_dock" field.
|
||||
func IsDockEQ(v bool) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldIsDock, v))
|
||||
}
|
||||
|
||||
// IsDockNEQ applies the NEQ predicate on the "is_dock" field.
|
||||
func IsDockNEQ(v bool) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNEQ(FieldIsDock, v))
|
||||
}
|
||||
|
||||
// DockIDEQ applies the EQ predicate on the "dock_id" field.
|
||||
func DockIDEQ(v int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldDockID, v))
|
||||
}
|
||||
|
||||
// DockIDNEQ applies the NEQ predicate on the "dock_id" field.
|
||||
func DockIDNEQ(v int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNEQ(FieldDockID, v))
|
||||
}
|
||||
|
||||
// DockIDIn applies the In predicate on the "dock_id" field.
|
||||
func DockIDIn(vs ...int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldIn(FieldDockID, vs...))
|
||||
}
|
||||
|
||||
// DockIDNotIn applies the NotIn predicate on the "dock_id" field.
|
||||
func DockIDNotIn(vs ...int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNotIn(FieldDockID, vs...))
|
||||
}
|
||||
|
||||
// DockIDGT applies the GT predicate on the "dock_id" field.
|
||||
func DockIDGT(v int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGT(FieldDockID, v))
|
||||
}
|
||||
|
||||
// DockIDGTE applies the GTE predicate on the "dock_id" field.
|
||||
func DockIDGTE(v int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGTE(FieldDockID, v))
|
||||
}
|
||||
|
||||
// DockIDLT applies the LT predicate on the "dock_id" field.
|
||||
func DockIDLT(v int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLT(FieldDockID, v))
|
||||
}
|
||||
|
||||
// DockIDLTE applies the LTE predicate on the "dock_id" field.
|
||||
func DockIDLTE(v int) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLTE(FieldDockID, v))
|
||||
}
|
||||
|
||||
// DockIDIsNil applies the IsNil predicate on the "dock_id" field.
|
||||
func DockIDIsNil() predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldIsNull(FieldDockID))
|
||||
}
|
||||
|
||||
// DockIDNotNil applies the NotNil predicate on the "dock_id" field.
|
||||
func DockIDNotNil() predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNotNull(FieldDockID))
|
||||
}
|
||||
|
||||
// EnabledEQ applies the EQ predicate on the "enabled" field.
|
||||
func EnabledEQ(v bool) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldEnabled, v))
|
||||
}
|
||||
|
||||
// EnabledNEQ applies the NEQ predicate on the "enabled" field.
|
||||
func EnabledNEQ(v bool) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNEQ(FieldEnabled, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v time.Time) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v time.Time) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.AgvPoint) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.AgvPoint) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.AgvPoint) predicate.AgvPoint {
|
||||
return predicate.AgvPoint(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user