1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑 2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能 3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工 4. 新增上传文件获取原文件名与大小的工具方法 5. 在系统管理菜单新增预警中心与附件中心入口
566 lines
20 KiB
Go
566 lines
20 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package scanrecord
|
|
|
|
import (
|
|
"bj_power_mes/predicate"
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Station applies equality check predicate on the "station" field. It's identical to StationEQ.
|
|
func Station(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldStation, v))
|
|
}
|
|
|
|
// Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.
|
|
func Sn(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldSn, v))
|
|
}
|
|
|
|
// OrderNo applies equality check predicate on the "orderNo" field. It's identical to OrderNoEQ.
|
|
func OrderNo(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldOrderNo, v))
|
|
}
|
|
|
|
// Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
|
|
func Type(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldType, v))
|
|
}
|
|
|
|
// ProcessCode applies equality check predicate on the "processCode" field. It's identical to ProcessCodeEQ.
|
|
func ProcessCode(v int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldProcessCode, v))
|
|
}
|
|
|
|
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
|
func Operator(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldOperator, v))
|
|
}
|
|
|
|
// Time applies equality check predicate on the "time" field. It's identical to TimeEQ.
|
|
func Time(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldTime, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// StationEQ applies the EQ predicate on the "station" field.
|
|
func StationEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldStation, v))
|
|
}
|
|
|
|
// StationNEQ applies the NEQ predicate on the "station" field.
|
|
func StationNEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNEQ(FieldStation, v))
|
|
}
|
|
|
|
// StationIn applies the In predicate on the "station" field.
|
|
func StationIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIn(FieldStation, vs...))
|
|
}
|
|
|
|
// StationNotIn applies the NotIn predicate on the "station" field.
|
|
func StationNotIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotIn(FieldStation, vs...))
|
|
}
|
|
|
|
// StationGT applies the GT predicate on the "station" field.
|
|
func StationGT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGT(FieldStation, v))
|
|
}
|
|
|
|
// StationGTE applies the GTE predicate on the "station" field.
|
|
func StationGTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGTE(FieldStation, v))
|
|
}
|
|
|
|
// StationLT applies the LT predicate on the "station" field.
|
|
func StationLT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLT(FieldStation, v))
|
|
}
|
|
|
|
// StationLTE applies the LTE predicate on the "station" field.
|
|
func StationLTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLTE(FieldStation, v))
|
|
}
|
|
|
|
// StationContains applies the Contains predicate on the "station" field.
|
|
func StationContains(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContains(FieldStation, v))
|
|
}
|
|
|
|
// StationHasPrefix applies the HasPrefix predicate on the "station" field.
|
|
func StationHasPrefix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasPrefix(FieldStation, v))
|
|
}
|
|
|
|
// StationHasSuffix applies the HasSuffix predicate on the "station" field.
|
|
func StationHasSuffix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasSuffix(FieldStation, v))
|
|
}
|
|
|
|
// StationEqualFold applies the EqualFold predicate on the "station" field.
|
|
func StationEqualFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEqualFold(FieldStation, v))
|
|
}
|
|
|
|
// StationContainsFold applies the ContainsFold predicate on the "station" field.
|
|
func StationContainsFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContainsFold(FieldStation, v))
|
|
}
|
|
|
|
// SnEQ applies the EQ predicate on the "sn" field.
|
|
func SnEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldSn, v))
|
|
}
|
|
|
|
// SnNEQ applies the NEQ predicate on the "sn" field.
|
|
func SnNEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNEQ(FieldSn, v))
|
|
}
|
|
|
|
// SnIn applies the In predicate on the "sn" field.
|
|
func SnIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIn(FieldSn, vs...))
|
|
}
|
|
|
|
// SnNotIn applies the NotIn predicate on the "sn" field.
|
|
func SnNotIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotIn(FieldSn, vs...))
|
|
}
|
|
|
|
// SnGT applies the GT predicate on the "sn" field.
|
|
func SnGT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGT(FieldSn, v))
|
|
}
|
|
|
|
// SnGTE applies the GTE predicate on the "sn" field.
|
|
func SnGTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGTE(FieldSn, v))
|
|
}
|
|
|
|
// SnLT applies the LT predicate on the "sn" field.
|
|
func SnLT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLT(FieldSn, v))
|
|
}
|
|
|
|
// SnLTE applies the LTE predicate on the "sn" field.
|
|
func SnLTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLTE(FieldSn, v))
|
|
}
|
|
|
|
// SnContains applies the Contains predicate on the "sn" field.
|
|
func SnContains(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContains(FieldSn, v))
|
|
}
|
|
|
|
// SnHasPrefix applies the HasPrefix predicate on the "sn" field.
|
|
func SnHasPrefix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasPrefix(FieldSn, v))
|
|
}
|
|
|
|
// SnHasSuffix applies the HasSuffix predicate on the "sn" field.
|
|
func SnHasSuffix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasSuffix(FieldSn, v))
|
|
}
|
|
|
|
// SnEqualFold applies the EqualFold predicate on the "sn" field.
|
|
func SnEqualFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEqualFold(FieldSn, v))
|
|
}
|
|
|
|
// SnContainsFold applies the ContainsFold predicate on the "sn" field.
|
|
func SnContainsFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContainsFold(FieldSn, v))
|
|
}
|
|
|
|
// OrderNoEQ applies the EQ predicate on the "orderNo" field.
|
|
func OrderNoEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoNEQ applies the NEQ predicate on the "orderNo" field.
|
|
func OrderNoNEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNEQ(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoIn applies the In predicate on the "orderNo" field.
|
|
func OrderNoIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIn(FieldOrderNo, vs...))
|
|
}
|
|
|
|
// OrderNoNotIn applies the NotIn predicate on the "orderNo" field.
|
|
func OrderNoNotIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotIn(FieldOrderNo, vs...))
|
|
}
|
|
|
|
// OrderNoGT applies the GT predicate on the "orderNo" field.
|
|
func OrderNoGT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGT(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoGTE applies the GTE predicate on the "orderNo" field.
|
|
func OrderNoGTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGTE(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoLT applies the LT predicate on the "orderNo" field.
|
|
func OrderNoLT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLT(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoLTE applies the LTE predicate on the "orderNo" field.
|
|
func OrderNoLTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLTE(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoContains applies the Contains predicate on the "orderNo" field.
|
|
func OrderNoContains(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContains(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoHasPrefix applies the HasPrefix predicate on the "orderNo" field.
|
|
func OrderNoHasPrefix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasPrefix(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoHasSuffix applies the HasSuffix predicate on the "orderNo" field.
|
|
func OrderNoHasSuffix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasSuffix(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoEqualFold applies the EqualFold predicate on the "orderNo" field.
|
|
func OrderNoEqualFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEqualFold(FieldOrderNo, v))
|
|
}
|
|
|
|
// OrderNoContainsFold applies the ContainsFold predicate on the "orderNo" field.
|
|
func OrderNoContainsFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContainsFold(FieldOrderNo, v))
|
|
}
|
|
|
|
// TypeEQ applies the EQ predicate on the "type" field.
|
|
func TypeEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldType, v))
|
|
}
|
|
|
|
// TypeNEQ applies the NEQ predicate on the "type" field.
|
|
func TypeNEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNEQ(FieldType, v))
|
|
}
|
|
|
|
// TypeIn applies the In predicate on the "type" field.
|
|
func TypeIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIn(FieldType, vs...))
|
|
}
|
|
|
|
// TypeNotIn applies the NotIn predicate on the "type" field.
|
|
func TypeNotIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotIn(FieldType, vs...))
|
|
}
|
|
|
|
// TypeGT applies the GT predicate on the "type" field.
|
|
func TypeGT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGT(FieldType, v))
|
|
}
|
|
|
|
// TypeGTE applies the GTE predicate on the "type" field.
|
|
func TypeGTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGTE(FieldType, v))
|
|
}
|
|
|
|
// TypeLT applies the LT predicate on the "type" field.
|
|
func TypeLT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLT(FieldType, v))
|
|
}
|
|
|
|
// TypeLTE applies the LTE predicate on the "type" field.
|
|
func TypeLTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLTE(FieldType, v))
|
|
}
|
|
|
|
// TypeContains applies the Contains predicate on the "type" field.
|
|
func TypeContains(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContains(FieldType, v))
|
|
}
|
|
|
|
// TypeHasPrefix applies the HasPrefix predicate on the "type" field.
|
|
func TypeHasPrefix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasPrefix(FieldType, v))
|
|
}
|
|
|
|
// TypeHasSuffix applies the HasSuffix predicate on the "type" field.
|
|
func TypeHasSuffix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasSuffix(FieldType, v))
|
|
}
|
|
|
|
// TypeEqualFold applies the EqualFold predicate on the "type" field.
|
|
func TypeEqualFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEqualFold(FieldType, v))
|
|
}
|
|
|
|
// TypeContainsFold applies the ContainsFold predicate on the "type" field.
|
|
func TypeContainsFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContainsFold(FieldType, v))
|
|
}
|
|
|
|
// ProcessCodeEQ applies the EQ predicate on the "processCode" field.
|
|
func ProcessCodeEQ(v int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeNEQ applies the NEQ predicate on the "processCode" field.
|
|
func ProcessCodeNEQ(v int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNEQ(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeIn applies the In predicate on the "processCode" field.
|
|
func ProcessCodeIn(vs ...int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIn(FieldProcessCode, vs...))
|
|
}
|
|
|
|
// ProcessCodeNotIn applies the NotIn predicate on the "processCode" field.
|
|
func ProcessCodeNotIn(vs ...int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotIn(FieldProcessCode, vs...))
|
|
}
|
|
|
|
// ProcessCodeGT applies the GT predicate on the "processCode" field.
|
|
func ProcessCodeGT(v int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGT(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeGTE applies the GTE predicate on the "processCode" field.
|
|
func ProcessCodeGTE(v int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGTE(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeLT applies the LT predicate on the "processCode" field.
|
|
func ProcessCodeLT(v int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLT(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeLTE applies the LTE predicate on the "processCode" field.
|
|
func ProcessCodeLTE(v int) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLTE(FieldProcessCode, v))
|
|
}
|
|
|
|
// ProcessCodeIsNil applies the IsNil predicate on the "processCode" field.
|
|
func ProcessCodeIsNil() predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIsNull(FieldProcessCode))
|
|
}
|
|
|
|
// ProcessCodeNotNil applies the NotNil predicate on the "processCode" field.
|
|
func ProcessCodeNotNil() predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotNull(FieldProcessCode))
|
|
}
|
|
|
|
// OperatorEQ applies the EQ predicate on the "operator" field.
|
|
func OperatorEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
|
func OperatorNEQ(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNEQ(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorIn applies the In predicate on the "operator" field.
|
|
func OperatorIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIn(FieldOperator, vs...))
|
|
}
|
|
|
|
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
|
func OperatorNotIn(vs ...string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotIn(FieldOperator, vs...))
|
|
}
|
|
|
|
// OperatorGT applies the GT predicate on the "operator" field.
|
|
func OperatorGT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGT(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorGTE applies the GTE predicate on the "operator" field.
|
|
func OperatorGTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGTE(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorLT applies the LT predicate on the "operator" field.
|
|
func OperatorLT(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLT(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorLTE applies the LTE predicate on the "operator" field.
|
|
func OperatorLTE(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLTE(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorContains applies the Contains predicate on the "operator" field.
|
|
func OperatorContains(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContains(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
|
func OperatorHasPrefix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasPrefix(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
|
func OperatorHasSuffix(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldHasSuffix(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
|
func OperatorEqualFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEqualFold(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
|
func OperatorContainsFold(v string) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldContainsFold(FieldOperator, v))
|
|
}
|
|
|
|
// TimeEQ applies the EQ predicate on the "time" field.
|
|
func TimeEQ(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldTime, v))
|
|
}
|
|
|
|
// TimeNEQ applies the NEQ predicate on the "time" field.
|
|
func TimeNEQ(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNEQ(FieldTime, v))
|
|
}
|
|
|
|
// TimeIn applies the In predicate on the "time" field.
|
|
func TimeIn(vs ...time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIn(FieldTime, vs...))
|
|
}
|
|
|
|
// TimeNotIn applies the NotIn predicate on the "time" field.
|
|
func TimeNotIn(vs ...time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotIn(FieldTime, vs...))
|
|
}
|
|
|
|
// TimeGT applies the GT predicate on the "time" field.
|
|
func TimeGT(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGT(FieldTime, v))
|
|
}
|
|
|
|
// TimeGTE applies the GTE predicate on the "time" field.
|
|
func TimeGTE(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGTE(FieldTime, v))
|
|
}
|
|
|
|
// TimeLT applies the LT predicate on the "time" field.
|
|
func TimeLT(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLT(FieldTime, v))
|
|
}
|
|
|
|
// TimeLTE applies the LTE predicate on the "time" field.
|
|
func TimeLTE(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLTE(FieldTime, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
|
func CreatedAtEQ(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
|
func CreatedAtGT(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
|
func CreatedAtGTE(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
|
func CreatedAtLT(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
|
func CreatedAtLTE(v time.Time) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.ScanRecord) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.ScanRecord) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.ScanRecord) predicate.ScanRecord {
|
|
return predicate.ScanRecord(sql.NotPredicates(p))
|
|
}
|