2 Star 0 Fork 0

广东宇凌网络科技有限公司/simple-iot-basic-rpc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
where.go 30.39 KB
一键复制 编辑 原始数据 按行查看 历史
HienGee 提交于 2024-04-26 11:19 +08:00 . init
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
// Code generated by ent, DO NOT EDIT.
package productevent
import (
"time"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"gitee.com/yuLingNet/simple-iot-basic-rpc/ent/predicate"
)
// ID filters vertices based on their ID field.
func ID(id uint64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id uint64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id uint64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...uint64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...uint64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id uint64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id uint64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id uint64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id uint64) predicate.ProductEvent {
return predicate.ProductEvent(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.ProductEvent {
return predicate.ProductEvent(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.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldUpdatedAt, v))
}
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v uint8) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldStatus, v))
}
// Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.
func Sort(v uint32) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldSort, v))
}
// ProductKey applies equality check predicate on the "productKey" field. It's identical to ProductKeyEQ.
func ProductKey(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldProductKey, v))
}
// CreateTs applies equality check predicate on the "createTs" field. It's identical to CreateTsEQ.
func CreateTs(v int64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldCreateTs, v))
}
// Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func Version(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldVersion, v))
}
// Identifier applies equality check predicate on the "identifier" field. It's identical to IdentifierEQ.
func Identifier(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldIdentifier, v))
}
// EventName applies equality check predicate on the "eventName" field. It's identical to EventNameEQ.
func EventName(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldEventName, v))
}
// EventType applies equality check predicate on the "eventType" field. It's identical to EventTypeEQ.
func EventType(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldEventType, v))
}
// OutputData applies equality check predicate on the "outputData" field. It's identical to OutputDataEQ.
func OutputData(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldOutputData, v))
}
// Custom applies equality check predicate on the "custom" field. It's identical to CustomEQ.
func Custom(v bool) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldCustom, v))
}
// Required applies equality check predicate on the "required" field. It's identical to RequiredEQ.
func Required(v bool) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldRequired, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldUpdatedAt, v))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v uint8) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v uint8) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...uint8) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...uint8) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldStatus, vs...))
}
// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v uint8) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldStatus, v))
}
// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v uint8) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldStatus, v))
}
// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v uint8) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldStatus, v))
}
// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v uint8) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldStatus, v))
}
// StatusIsNil applies the IsNil predicate on the "status" field.
func StatusIsNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIsNull(FieldStatus))
}
// StatusNotNil applies the NotNil predicate on the "status" field.
func StatusNotNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotNull(FieldStatus))
}
// SortEQ applies the EQ predicate on the "sort" field.
func SortEQ(v uint32) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldSort, v))
}
// SortNEQ applies the NEQ predicate on the "sort" field.
func SortNEQ(v uint32) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldSort, v))
}
// SortIn applies the In predicate on the "sort" field.
func SortIn(vs ...uint32) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldSort, vs...))
}
// SortNotIn applies the NotIn predicate on the "sort" field.
func SortNotIn(vs ...uint32) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldSort, vs...))
}
// SortGT applies the GT predicate on the "sort" field.
func SortGT(v uint32) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldSort, v))
}
// SortGTE applies the GTE predicate on the "sort" field.
func SortGTE(v uint32) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldSort, v))
}
// SortLT applies the LT predicate on the "sort" field.
func SortLT(v uint32) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldSort, v))
}
// SortLTE applies the LTE predicate on the "sort" field.
func SortLTE(v uint32) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldSort, v))
}
// ProductKeyEQ applies the EQ predicate on the "productKey" field.
func ProductKeyEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldProductKey, v))
}
// ProductKeyNEQ applies the NEQ predicate on the "productKey" field.
func ProductKeyNEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldProductKey, v))
}
// ProductKeyIn applies the In predicate on the "productKey" field.
func ProductKeyIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldProductKey, vs...))
}
// ProductKeyNotIn applies the NotIn predicate on the "productKey" field.
func ProductKeyNotIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldProductKey, vs...))
}
// ProductKeyGT applies the GT predicate on the "productKey" field.
func ProductKeyGT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldProductKey, v))
}
// ProductKeyGTE applies the GTE predicate on the "productKey" field.
func ProductKeyGTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldProductKey, v))
}
// ProductKeyLT applies the LT predicate on the "productKey" field.
func ProductKeyLT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldProductKey, v))
}
// ProductKeyLTE applies the LTE predicate on the "productKey" field.
func ProductKeyLTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldProductKey, v))
}
// ProductKeyContains applies the Contains predicate on the "productKey" field.
func ProductKeyContains(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContains(FieldProductKey, v))
}
// ProductKeyHasPrefix applies the HasPrefix predicate on the "productKey" field.
func ProductKeyHasPrefix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasPrefix(FieldProductKey, v))
}
// ProductKeyHasSuffix applies the HasSuffix predicate on the "productKey" field.
func ProductKeyHasSuffix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasSuffix(FieldProductKey, v))
}
// ProductKeyEqualFold applies the EqualFold predicate on the "productKey" field.
func ProductKeyEqualFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEqualFold(FieldProductKey, v))
}
// ProductKeyContainsFold applies the ContainsFold predicate on the "productKey" field.
func ProductKeyContainsFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContainsFold(FieldProductKey, v))
}
// CreateTsEQ applies the EQ predicate on the "createTs" field.
func CreateTsEQ(v int64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldCreateTs, v))
}
// CreateTsNEQ applies the NEQ predicate on the "createTs" field.
func CreateTsNEQ(v int64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldCreateTs, v))
}
// CreateTsIn applies the In predicate on the "createTs" field.
func CreateTsIn(vs ...int64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldCreateTs, vs...))
}
// CreateTsNotIn applies the NotIn predicate on the "createTs" field.
func CreateTsNotIn(vs ...int64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldCreateTs, vs...))
}
// CreateTsGT applies the GT predicate on the "createTs" field.
func CreateTsGT(v int64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldCreateTs, v))
}
// CreateTsGTE applies the GTE predicate on the "createTs" field.
func CreateTsGTE(v int64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldCreateTs, v))
}
// CreateTsLT applies the LT predicate on the "createTs" field.
func CreateTsLT(v int64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldCreateTs, v))
}
// CreateTsLTE applies the LTE predicate on the "createTs" field.
func CreateTsLTE(v int64) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldCreateTs, v))
}
// CreateTsIsNil applies the IsNil predicate on the "createTs" field.
func CreateTsIsNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIsNull(FieldCreateTs))
}
// CreateTsNotNil applies the NotNil predicate on the "createTs" field.
func CreateTsNotNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotNull(FieldCreateTs))
}
// VersionEQ applies the EQ predicate on the "version" field.
func VersionEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldVersion, v))
}
// VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldVersion, v))
}
// VersionIn applies the In predicate on the "version" field.
func VersionIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldVersion, vs...))
}
// VersionNotIn applies the NotIn predicate on the "version" field.
func VersionNotIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldVersion, vs...))
}
// VersionGT applies the GT predicate on the "version" field.
func VersionGT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldVersion, v))
}
// VersionGTE applies the GTE predicate on the "version" field.
func VersionGTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldVersion, v))
}
// VersionLT applies the LT predicate on the "version" field.
func VersionLT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldVersion, v))
}
// VersionLTE applies the LTE predicate on the "version" field.
func VersionLTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldVersion, v))
}
// VersionContains applies the Contains predicate on the "version" field.
func VersionContains(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContains(FieldVersion, v))
}
// VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasPrefix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasPrefix(FieldVersion, v))
}
// VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionHasSuffix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasSuffix(FieldVersion, v))
}
// VersionIsNil applies the IsNil predicate on the "version" field.
func VersionIsNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIsNull(FieldVersion))
}
// VersionNotNil applies the NotNil predicate on the "version" field.
func VersionNotNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotNull(FieldVersion))
}
// VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionEqualFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEqualFold(FieldVersion, v))
}
// VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionContainsFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContainsFold(FieldVersion, v))
}
// IdentifierEQ applies the EQ predicate on the "identifier" field.
func IdentifierEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldIdentifier, v))
}
// IdentifierNEQ applies the NEQ predicate on the "identifier" field.
func IdentifierNEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldIdentifier, v))
}
// IdentifierIn applies the In predicate on the "identifier" field.
func IdentifierIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldIdentifier, vs...))
}
// IdentifierNotIn applies the NotIn predicate on the "identifier" field.
func IdentifierNotIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldIdentifier, vs...))
}
// IdentifierGT applies the GT predicate on the "identifier" field.
func IdentifierGT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldIdentifier, v))
}
// IdentifierGTE applies the GTE predicate on the "identifier" field.
func IdentifierGTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldIdentifier, v))
}
// IdentifierLT applies the LT predicate on the "identifier" field.
func IdentifierLT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldIdentifier, v))
}
// IdentifierLTE applies the LTE predicate on the "identifier" field.
func IdentifierLTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldIdentifier, v))
}
// IdentifierContains applies the Contains predicate on the "identifier" field.
func IdentifierContains(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContains(FieldIdentifier, v))
}
// IdentifierHasPrefix applies the HasPrefix predicate on the "identifier" field.
func IdentifierHasPrefix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasPrefix(FieldIdentifier, v))
}
// IdentifierHasSuffix applies the HasSuffix predicate on the "identifier" field.
func IdentifierHasSuffix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasSuffix(FieldIdentifier, v))
}
// IdentifierEqualFold applies the EqualFold predicate on the "identifier" field.
func IdentifierEqualFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEqualFold(FieldIdentifier, v))
}
// IdentifierContainsFold applies the ContainsFold predicate on the "identifier" field.
func IdentifierContainsFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContainsFold(FieldIdentifier, v))
}
// EventNameEQ applies the EQ predicate on the "eventName" field.
func EventNameEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldEventName, v))
}
// EventNameNEQ applies the NEQ predicate on the "eventName" field.
func EventNameNEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldEventName, v))
}
// EventNameIn applies the In predicate on the "eventName" field.
func EventNameIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldEventName, vs...))
}
// EventNameNotIn applies the NotIn predicate on the "eventName" field.
func EventNameNotIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldEventName, vs...))
}
// EventNameGT applies the GT predicate on the "eventName" field.
func EventNameGT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldEventName, v))
}
// EventNameGTE applies the GTE predicate on the "eventName" field.
func EventNameGTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldEventName, v))
}
// EventNameLT applies the LT predicate on the "eventName" field.
func EventNameLT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldEventName, v))
}
// EventNameLTE applies the LTE predicate on the "eventName" field.
func EventNameLTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldEventName, v))
}
// EventNameContains applies the Contains predicate on the "eventName" field.
func EventNameContains(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContains(FieldEventName, v))
}
// EventNameHasPrefix applies the HasPrefix predicate on the "eventName" field.
func EventNameHasPrefix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasPrefix(FieldEventName, v))
}
// EventNameHasSuffix applies the HasSuffix predicate on the "eventName" field.
func EventNameHasSuffix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasSuffix(FieldEventName, v))
}
// EventNameEqualFold applies the EqualFold predicate on the "eventName" field.
func EventNameEqualFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEqualFold(FieldEventName, v))
}
// EventNameContainsFold applies the ContainsFold predicate on the "eventName" field.
func EventNameContainsFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContainsFold(FieldEventName, v))
}
// EventTypeEQ applies the EQ predicate on the "eventType" field.
func EventTypeEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldEventType, v))
}
// EventTypeNEQ applies the NEQ predicate on the "eventType" field.
func EventTypeNEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldEventType, v))
}
// EventTypeIn applies the In predicate on the "eventType" field.
func EventTypeIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldEventType, vs...))
}
// EventTypeNotIn applies the NotIn predicate on the "eventType" field.
func EventTypeNotIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldEventType, vs...))
}
// EventTypeGT applies the GT predicate on the "eventType" field.
func EventTypeGT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldEventType, v))
}
// EventTypeGTE applies the GTE predicate on the "eventType" field.
func EventTypeGTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldEventType, v))
}
// EventTypeLT applies the LT predicate on the "eventType" field.
func EventTypeLT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldEventType, v))
}
// EventTypeLTE applies the LTE predicate on the "eventType" field.
func EventTypeLTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldEventType, v))
}
// EventTypeContains applies the Contains predicate on the "eventType" field.
func EventTypeContains(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContains(FieldEventType, v))
}
// EventTypeHasPrefix applies the HasPrefix predicate on the "eventType" field.
func EventTypeHasPrefix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasPrefix(FieldEventType, v))
}
// EventTypeHasSuffix applies the HasSuffix predicate on the "eventType" field.
func EventTypeHasSuffix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasSuffix(FieldEventType, v))
}
// EventTypeIsNil applies the IsNil predicate on the "eventType" field.
func EventTypeIsNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIsNull(FieldEventType))
}
// EventTypeNotNil applies the NotNil predicate on the "eventType" field.
func EventTypeNotNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotNull(FieldEventType))
}
// EventTypeEqualFold applies the EqualFold predicate on the "eventType" field.
func EventTypeEqualFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEqualFold(FieldEventType, v))
}
// EventTypeContainsFold applies the ContainsFold predicate on the "eventType" field.
func EventTypeContainsFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContainsFold(FieldEventType, v))
}
// OutputDataEQ applies the EQ predicate on the "outputData" field.
func OutputDataEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldOutputData, v))
}
// OutputDataNEQ applies the NEQ predicate on the "outputData" field.
func OutputDataNEQ(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldOutputData, v))
}
// OutputDataIn applies the In predicate on the "outputData" field.
func OutputDataIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIn(FieldOutputData, vs...))
}
// OutputDataNotIn applies the NotIn predicate on the "outputData" field.
func OutputDataNotIn(vs ...string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotIn(FieldOutputData, vs...))
}
// OutputDataGT applies the GT predicate on the "outputData" field.
func OutputDataGT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGT(FieldOutputData, v))
}
// OutputDataGTE applies the GTE predicate on the "outputData" field.
func OutputDataGTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldGTE(FieldOutputData, v))
}
// OutputDataLT applies the LT predicate on the "outputData" field.
func OutputDataLT(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLT(FieldOutputData, v))
}
// OutputDataLTE applies the LTE predicate on the "outputData" field.
func OutputDataLTE(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldLTE(FieldOutputData, v))
}
// OutputDataContains applies the Contains predicate on the "outputData" field.
func OutputDataContains(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContains(FieldOutputData, v))
}
// OutputDataHasPrefix applies the HasPrefix predicate on the "outputData" field.
func OutputDataHasPrefix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasPrefix(FieldOutputData, v))
}
// OutputDataHasSuffix applies the HasSuffix predicate on the "outputData" field.
func OutputDataHasSuffix(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldHasSuffix(FieldOutputData, v))
}
// OutputDataIsNil applies the IsNil predicate on the "outputData" field.
func OutputDataIsNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldIsNull(FieldOutputData))
}
// OutputDataNotNil applies the NotNil predicate on the "outputData" field.
func OutputDataNotNil() predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNotNull(FieldOutputData))
}
// OutputDataEqualFold applies the EqualFold predicate on the "outputData" field.
func OutputDataEqualFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEqualFold(FieldOutputData, v))
}
// OutputDataContainsFold applies the ContainsFold predicate on the "outputData" field.
func OutputDataContainsFold(v string) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldContainsFold(FieldOutputData, v))
}
// CustomEQ applies the EQ predicate on the "custom" field.
func CustomEQ(v bool) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldCustom, v))
}
// CustomNEQ applies the NEQ predicate on the "custom" field.
func CustomNEQ(v bool) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldCustom, v))
}
// RequiredEQ applies the EQ predicate on the "required" field.
func RequiredEQ(v bool) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldEQ(FieldRequired, v))
}
// RequiredNEQ applies the NEQ predicate on the "required" field.
func RequiredNEQ(v bool) predicate.ProductEvent {
return predicate.ProductEvent(sql.FieldNEQ(FieldRequired, v))
}
// HasProduct applies the HasEdge predicate on the "product" edge.
func HasProduct() predicate.ProductEvent {
return predicate.ProductEvent(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, ProductTable, ProductColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasProductWith applies the HasEdge predicate on the "product" edge with a given conditions (other predicates).
func HasProductWith(preds ...predicate.Product) predicate.ProductEvent {
return predicate.ProductEvent(func(s *sql.Selector) {
step := newProductStep()
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
for _, p := range preds {
p(s)
}
})
})
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.ProductEvent) predicate.ProductEvent {
return predicate.ProductEvent(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.ProductEvent) predicate.ProductEvent {
return predicate.ProductEvent(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.ProductEvent) predicate.ProductEvent {
return predicate.ProductEvent(sql.NotPredicates(p))
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/yuLingNet/simple-iot-basic-rpc.git
git@gitee.com:yuLingNet/simple-iot-basic-rpc.git
yuLingNet
simple-iot-basic-rpc
simple-iot-basic-rpc
ca5a4cf0cee7

搜索帮助