1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑 2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能 3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工 4. 新增上传文件获取原文件名与大小的工具方法 5. 在系统管理菜单新增预警中心与附件中心入口
581 lines
22 KiB
Go
581 lines
22 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package torqueauditlog
|
|
|
|
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.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// TorqueRecordId applies equality check predicate on the "torqueRecordId" field. It's identical to TorqueRecordIdEQ.
|
|
func TorqueRecordId(v int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldTorqueRecordId, v))
|
|
}
|
|
|
|
// Action applies equality check predicate on the "action" field. It's identical to ActionEQ.
|
|
func Action(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldAction, v))
|
|
}
|
|
|
|
// FieldName applies equality check predicate on the "fieldName" field. It's identical to FieldNameEQ.
|
|
func FieldName(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldFieldName, v))
|
|
}
|
|
|
|
// OldVal applies equality check predicate on the "oldVal" field. It's identical to OldValEQ.
|
|
func OldVal(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldOldVal, v))
|
|
}
|
|
|
|
// NewVal applies equality check predicate on the "newVal" field. It's identical to NewValEQ.
|
|
func NewVal(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldNewVal, v))
|
|
}
|
|
|
|
// Operator applies equality check predicate on the "operator" field. It's identical to OperatorEQ.
|
|
func Operator(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldOperator, v))
|
|
}
|
|
|
|
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
|
func Remark(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldRemark, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// TorqueRecordIdEQ applies the EQ predicate on the "torqueRecordId" field.
|
|
func TorqueRecordIdEQ(v int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldTorqueRecordId, v))
|
|
}
|
|
|
|
// TorqueRecordIdNEQ applies the NEQ predicate on the "torqueRecordId" field.
|
|
func TorqueRecordIdNEQ(v int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNEQ(FieldTorqueRecordId, v))
|
|
}
|
|
|
|
// TorqueRecordIdIn applies the In predicate on the "torqueRecordId" field.
|
|
func TorqueRecordIdIn(vs ...int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldIn(FieldTorqueRecordId, vs...))
|
|
}
|
|
|
|
// TorqueRecordIdNotIn applies the NotIn predicate on the "torqueRecordId" field.
|
|
func TorqueRecordIdNotIn(vs ...int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNotIn(FieldTorqueRecordId, vs...))
|
|
}
|
|
|
|
// TorqueRecordIdGT applies the GT predicate on the "torqueRecordId" field.
|
|
func TorqueRecordIdGT(v int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGT(FieldTorqueRecordId, v))
|
|
}
|
|
|
|
// TorqueRecordIdGTE applies the GTE predicate on the "torqueRecordId" field.
|
|
func TorqueRecordIdGTE(v int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGTE(FieldTorqueRecordId, v))
|
|
}
|
|
|
|
// TorqueRecordIdLT applies the LT predicate on the "torqueRecordId" field.
|
|
func TorqueRecordIdLT(v int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLT(FieldTorqueRecordId, v))
|
|
}
|
|
|
|
// TorqueRecordIdLTE applies the LTE predicate on the "torqueRecordId" field.
|
|
func TorqueRecordIdLTE(v int) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLTE(FieldTorqueRecordId, v))
|
|
}
|
|
|
|
// ActionEQ applies the EQ predicate on the "action" field.
|
|
func ActionEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldAction, v))
|
|
}
|
|
|
|
// ActionNEQ applies the NEQ predicate on the "action" field.
|
|
func ActionNEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNEQ(FieldAction, v))
|
|
}
|
|
|
|
// ActionIn applies the In predicate on the "action" field.
|
|
func ActionIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldIn(FieldAction, vs...))
|
|
}
|
|
|
|
// ActionNotIn applies the NotIn predicate on the "action" field.
|
|
func ActionNotIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNotIn(FieldAction, vs...))
|
|
}
|
|
|
|
// ActionGT applies the GT predicate on the "action" field.
|
|
func ActionGT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGT(FieldAction, v))
|
|
}
|
|
|
|
// ActionGTE applies the GTE predicate on the "action" field.
|
|
func ActionGTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGTE(FieldAction, v))
|
|
}
|
|
|
|
// ActionLT applies the LT predicate on the "action" field.
|
|
func ActionLT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLT(FieldAction, v))
|
|
}
|
|
|
|
// ActionLTE applies the LTE predicate on the "action" field.
|
|
func ActionLTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLTE(FieldAction, v))
|
|
}
|
|
|
|
// ActionContains applies the Contains predicate on the "action" field.
|
|
func ActionContains(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContains(FieldAction, v))
|
|
}
|
|
|
|
// ActionHasPrefix applies the HasPrefix predicate on the "action" field.
|
|
func ActionHasPrefix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasPrefix(FieldAction, v))
|
|
}
|
|
|
|
// ActionHasSuffix applies the HasSuffix predicate on the "action" field.
|
|
func ActionHasSuffix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasSuffix(FieldAction, v))
|
|
}
|
|
|
|
// ActionEqualFold applies the EqualFold predicate on the "action" field.
|
|
func ActionEqualFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEqualFold(FieldAction, v))
|
|
}
|
|
|
|
// ActionContainsFold applies the ContainsFold predicate on the "action" field.
|
|
func ActionContainsFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContainsFold(FieldAction, v))
|
|
}
|
|
|
|
// FieldNameEQ applies the EQ predicate on the "fieldName" field.
|
|
func FieldNameEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameNEQ applies the NEQ predicate on the "fieldName" field.
|
|
func FieldNameNEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNEQ(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameIn applies the In predicate on the "fieldName" field.
|
|
func FieldNameIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldIn(FieldFieldName, vs...))
|
|
}
|
|
|
|
// FieldNameNotIn applies the NotIn predicate on the "fieldName" field.
|
|
func FieldNameNotIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNotIn(FieldFieldName, vs...))
|
|
}
|
|
|
|
// FieldNameGT applies the GT predicate on the "fieldName" field.
|
|
func FieldNameGT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGT(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameGTE applies the GTE predicate on the "fieldName" field.
|
|
func FieldNameGTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGTE(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameLT applies the LT predicate on the "fieldName" field.
|
|
func FieldNameLT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLT(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameLTE applies the LTE predicate on the "fieldName" field.
|
|
func FieldNameLTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLTE(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameContains applies the Contains predicate on the "fieldName" field.
|
|
func FieldNameContains(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContains(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameHasPrefix applies the HasPrefix predicate on the "fieldName" field.
|
|
func FieldNameHasPrefix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasPrefix(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameHasSuffix applies the HasSuffix predicate on the "fieldName" field.
|
|
func FieldNameHasSuffix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasSuffix(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameEqualFold applies the EqualFold predicate on the "fieldName" field.
|
|
func FieldNameEqualFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEqualFold(FieldFieldName, v))
|
|
}
|
|
|
|
// FieldNameContainsFold applies the ContainsFold predicate on the "fieldName" field.
|
|
func FieldNameContainsFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContainsFold(FieldFieldName, v))
|
|
}
|
|
|
|
// OldValEQ applies the EQ predicate on the "oldVal" field.
|
|
func OldValEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValNEQ applies the NEQ predicate on the "oldVal" field.
|
|
func OldValNEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNEQ(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValIn applies the In predicate on the "oldVal" field.
|
|
func OldValIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldIn(FieldOldVal, vs...))
|
|
}
|
|
|
|
// OldValNotIn applies the NotIn predicate on the "oldVal" field.
|
|
func OldValNotIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNotIn(FieldOldVal, vs...))
|
|
}
|
|
|
|
// OldValGT applies the GT predicate on the "oldVal" field.
|
|
func OldValGT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGT(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValGTE applies the GTE predicate on the "oldVal" field.
|
|
func OldValGTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGTE(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValLT applies the LT predicate on the "oldVal" field.
|
|
func OldValLT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLT(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValLTE applies the LTE predicate on the "oldVal" field.
|
|
func OldValLTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLTE(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValContains applies the Contains predicate on the "oldVal" field.
|
|
func OldValContains(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContains(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValHasPrefix applies the HasPrefix predicate on the "oldVal" field.
|
|
func OldValHasPrefix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasPrefix(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValHasSuffix applies the HasSuffix predicate on the "oldVal" field.
|
|
func OldValHasSuffix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasSuffix(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValEqualFold applies the EqualFold predicate on the "oldVal" field.
|
|
func OldValEqualFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEqualFold(FieldOldVal, v))
|
|
}
|
|
|
|
// OldValContainsFold applies the ContainsFold predicate on the "oldVal" field.
|
|
func OldValContainsFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContainsFold(FieldOldVal, v))
|
|
}
|
|
|
|
// NewValEQ applies the EQ predicate on the "newVal" field.
|
|
func NewValEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValNEQ applies the NEQ predicate on the "newVal" field.
|
|
func NewValNEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNEQ(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValIn applies the In predicate on the "newVal" field.
|
|
func NewValIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldIn(FieldNewVal, vs...))
|
|
}
|
|
|
|
// NewValNotIn applies the NotIn predicate on the "newVal" field.
|
|
func NewValNotIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNotIn(FieldNewVal, vs...))
|
|
}
|
|
|
|
// NewValGT applies the GT predicate on the "newVal" field.
|
|
func NewValGT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGT(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValGTE applies the GTE predicate on the "newVal" field.
|
|
func NewValGTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGTE(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValLT applies the LT predicate on the "newVal" field.
|
|
func NewValLT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLT(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValLTE applies the LTE predicate on the "newVal" field.
|
|
func NewValLTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLTE(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValContains applies the Contains predicate on the "newVal" field.
|
|
func NewValContains(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContains(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValHasPrefix applies the HasPrefix predicate on the "newVal" field.
|
|
func NewValHasPrefix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasPrefix(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValHasSuffix applies the HasSuffix predicate on the "newVal" field.
|
|
func NewValHasSuffix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasSuffix(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValEqualFold applies the EqualFold predicate on the "newVal" field.
|
|
func NewValEqualFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEqualFold(FieldNewVal, v))
|
|
}
|
|
|
|
// NewValContainsFold applies the ContainsFold predicate on the "newVal" field.
|
|
func NewValContainsFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContainsFold(FieldNewVal, v))
|
|
}
|
|
|
|
// OperatorEQ applies the EQ predicate on the "operator" field.
|
|
func OperatorEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorNEQ applies the NEQ predicate on the "operator" field.
|
|
func OperatorNEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNEQ(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorIn applies the In predicate on the "operator" field.
|
|
func OperatorIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldIn(FieldOperator, vs...))
|
|
}
|
|
|
|
// OperatorNotIn applies the NotIn predicate on the "operator" field.
|
|
func OperatorNotIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNotIn(FieldOperator, vs...))
|
|
}
|
|
|
|
// OperatorGT applies the GT predicate on the "operator" field.
|
|
func OperatorGT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGT(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorGTE applies the GTE predicate on the "operator" field.
|
|
func OperatorGTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGTE(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorLT applies the LT predicate on the "operator" field.
|
|
func OperatorLT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLT(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorLTE applies the LTE predicate on the "operator" field.
|
|
func OperatorLTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLTE(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorContains applies the Contains predicate on the "operator" field.
|
|
func OperatorContains(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContains(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorHasPrefix applies the HasPrefix predicate on the "operator" field.
|
|
func OperatorHasPrefix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasPrefix(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorHasSuffix applies the HasSuffix predicate on the "operator" field.
|
|
func OperatorHasSuffix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasSuffix(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorEqualFold applies the EqualFold predicate on the "operator" field.
|
|
func OperatorEqualFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEqualFold(FieldOperator, v))
|
|
}
|
|
|
|
// OperatorContainsFold applies the ContainsFold predicate on the "operator" field.
|
|
func OperatorContainsFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContainsFold(FieldOperator, v))
|
|
}
|
|
|
|
// RemarkEQ applies the EQ predicate on the "remark" field.
|
|
func RemarkEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
|
func RemarkNEQ(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNEQ(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkIn applies the In predicate on the "remark" field.
|
|
func RemarkIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldIn(FieldRemark, vs...))
|
|
}
|
|
|
|
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
|
func RemarkNotIn(vs ...string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNotIn(FieldRemark, vs...))
|
|
}
|
|
|
|
// RemarkGT applies the GT predicate on the "remark" field.
|
|
func RemarkGT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGT(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkGTE applies the GTE predicate on the "remark" field.
|
|
func RemarkGTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGTE(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkLT applies the LT predicate on the "remark" field.
|
|
func RemarkLT(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLT(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkLTE applies the LTE predicate on the "remark" field.
|
|
func RemarkLTE(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLTE(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkContains applies the Contains predicate on the "remark" field.
|
|
func RemarkContains(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContains(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
|
func RemarkHasPrefix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasPrefix(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
|
func RemarkHasSuffix(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldHasSuffix(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
|
func RemarkEqualFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEqualFold(FieldRemark, v))
|
|
}
|
|
|
|
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
|
func RemarkContainsFold(v string) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldContainsFold(FieldRemark, v))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
|
func CreatedAtEQ(v time.Time) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
|
func CreatedAtGT(v time.Time) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
|
func CreatedAtGTE(v time.Time) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
|
func CreatedAtLT(v time.Time) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
|
func CreatedAtLTE(v time.Time) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.TorqueAuditLog) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.TorqueAuditLog) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.TorqueAuditLog) predicate.TorqueAuditLog {
|
|
return predicate.TorqueAuditLog(sql.NotPredicates(p))
|
|
}
|