feat: 新增预警与附件模块,优化工位派工功能
1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑 2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能 3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工 4. 新增上传文件获取原文件名与大小的工具方法 5. 在系统管理菜单新增预警中心与附件中心入口
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package processstep
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the processstep type in the database.
|
||||
Label = "process_step"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldFlowId holds the string denoting the flowid field in the database.
|
||||
FieldFlowId = "flow_id"
|
||||
// FieldSeq holds the string denoting the seq field in the database.
|
||||
FieldSeq = "seq"
|
||||
// FieldName holds the string denoting the name field in the database.
|
||||
FieldName = "name"
|
||||
// FieldCollectType holds the string denoting the collecttype field in the database.
|
||||
FieldCollectType = "collect_type"
|
||||
// FieldIsTorque holds the string denoting the istorque field in the database.
|
||||
FieldIsTorque = "is_torque"
|
||||
// FieldNeedCheck holds the string denoting the needcheck field in the database.
|
||||
FieldNeedCheck = "need_check"
|
||||
// FieldRemark holds the string denoting the remark field in the database.
|
||||
FieldRemark = "remark"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
FieldCreatedAt = "created_at"
|
||||
// Table holds the table name of the processstep in the database.
|
||||
Table = "process_step"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for processstep fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldFlowId,
|
||||
FieldSeq,
|
||||
FieldName,
|
||||
FieldCollectType,
|
||||
FieldIsTorque,
|
||||
FieldNeedCheck,
|
||||
FieldRemark,
|
||||
FieldCreatedAt,
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
func ValidColumn(column string) bool {
|
||||
for i := range Columns {
|
||||
if column == Columns[i] {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
var (
|
||||
// DefaultSeq holds the default value on creation for the "seq" field.
|
||||
DefaultSeq int
|
||||
// NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
NameValidator func(string) error
|
||||
// DefaultCollectType holds the default value on creation for the "collectType" field.
|
||||
DefaultCollectType string
|
||||
// CollectTypeValidator is a validator for the "collectType" field. It is called by the builders before save.
|
||||
CollectTypeValidator func(string) error
|
||||
// DefaultIsTorque holds the default value on creation for the "isTorque" field.
|
||||
DefaultIsTorque bool
|
||||
// DefaultNeedCheck holds the default value on creation for the "needCheck" field.
|
||||
DefaultNeedCheck bool
|
||||
// DefaultRemark holds the default value on creation for the "remark" field.
|
||||
DefaultRemark string
|
||||
// RemarkValidator is a validator for the "remark" field. It is called by the builders before save.
|
||||
RemarkValidator func(string) error
|
||||
// DefaultCreatedAt holds the default value on creation for the "createdAt" field.
|
||||
DefaultCreatedAt func() time.Time
|
||||
// IDValidator is a validator for the "id" field. It is called by the builders before save.
|
||||
IDValidator func(int) error
|
||||
)
|
||||
|
||||
// OrderOption defines the ordering options for the ProcessStep queries.
|
||||
type OrderOption func(*sql.Selector)
|
||||
|
||||
// ByID orders the results by the id field.
|
||||
func ByID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByFlowId orders the results by the flowId field.
|
||||
func ByFlowId(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldFlowId, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// BySeq orders the results by the seq field.
|
||||
func BySeq(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldSeq, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCollectType orders the results by the collectType field.
|
||||
func ByCollectType(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCollectType, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByIsTorque orders the results by the isTorque field.
|
||||
func ByIsTorque(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldIsTorque, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByNeedCheck orders the results by the needCheck field.
|
||||
func ByNeedCheck(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldNeedCheck, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRemark orders the results by the remark field.
|
||||
func ByRemark(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRemark, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCreatedAt orders the results by the createdAt field.
|
||||
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,455 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package processstep
|
||||
|
||||
import (
|
||||
"bj_power_mes/predicate"
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// FlowId applies equality check predicate on the "flowId" field. It's identical to FlowIdEQ.
|
||||
func FlowId(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// Seq applies equality check predicate on the "seq" field. It's identical to SeqEQ.
|
||||
func Seq(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldSeq, v))
|
||||
}
|
||||
|
||||
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
||||
func Name(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// CollectType applies equality check predicate on the "collectType" field. It's identical to CollectTypeEQ.
|
||||
func CollectType(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// IsTorque applies equality check predicate on the "isTorque" field. It's identical to IsTorqueEQ.
|
||||
func IsTorque(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldIsTorque, v))
|
||||
}
|
||||
|
||||
// NeedCheck applies equality check predicate on the "needCheck" field. It's identical to NeedCheckEQ.
|
||||
func NeedCheck(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldNeedCheck, v))
|
||||
}
|
||||
|
||||
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
||||
func Remark(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// FlowIdEQ applies the EQ predicate on the "flowId" field.
|
||||
func FlowIdEQ(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdNEQ applies the NEQ predicate on the "flowId" field.
|
||||
func FlowIdNEQ(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdIn applies the In predicate on the "flowId" field.
|
||||
func FlowIdIn(vs ...int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIn(FieldFlowId, vs...))
|
||||
}
|
||||
|
||||
// FlowIdNotIn applies the NotIn predicate on the "flowId" field.
|
||||
func FlowIdNotIn(vs ...int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotIn(FieldFlowId, vs...))
|
||||
}
|
||||
|
||||
// FlowIdGT applies the GT predicate on the "flowId" field.
|
||||
func FlowIdGT(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGT(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdGTE applies the GTE predicate on the "flowId" field.
|
||||
func FlowIdGTE(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGTE(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdLT applies the LT predicate on the "flowId" field.
|
||||
func FlowIdLT(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLT(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdLTE applies the LTE predicate on the "flowId" field.
|
||||
func FlowIdLTE(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLTE(FieldFlowId, v))
|
||||
}
|
||||
|
||||
// FlowIdIsNil applies the IsNil predicate on the "flowId" field.
|
||||
func FlowIdIsNil() predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIsNull(FieldFlowId))
|
||||
}
|
||||
|
||||
// FlowIdNotNil applies the NotNil predicate on the "flowId" field.
|
||||
func FlowIdNotNil() predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotNull(FieldFlowId))
|
||||
}
|
||||
|
||||
// SeqEQ applies the EQ predicate on the "seq" field.
|
||||
func SeqEQ(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqNEQ applies the NEQ predicate on the "seq" field.
|
||||
func SeqNEQ(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqIn applies the In predicate on the "seq" field.
|
||||
func SeqIn(vs ...int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIn(FieldSeq, vs...))
|
||||
}
|
||||
|
||||
// SeqNotIn applies the NotIn predicate on the "seq" field.
|
||||
func SeqNotIn(vs ...int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotIn(FieldSeq, vs...))
|
||||
}
|
||||
|
||||
// SeqGT applies the GT predicate on the "seq" field.
|
||||
func SeqGT(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGT(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqGTE applies the GTE predicate on the "seq" field.
|
||||
func SeqGTE(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGTE(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqLT applies the LT predicate on the "seq" field.
|
||||
func SeqLT(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLT(FieldSeq, v))
|
||||
}
|
||||
|
||||
// SeqLTE applies the LTE predicate on the "seq" field.
|
||||
func SeqLTE(v int) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLTE(FieldSeq, v))
|
||||
}
|
||||
|
||||
// NameEQ applies the EQ predicate on the "name" field.
|
||||
func NameEQ(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameNEQ applies the NEQ predicate on the "name" field.
|
||||
func NameNEQ(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameIn applies the In predicate on the "name" field.
|
||||
func NameIn(vs ...string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameNotIn applies the NotIn predicate on the "name" field.
|
||||
func NameNotIn(vs ...string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameGT applies the GT predicate on the "name" field.
|
||||
func NameGT(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameGTE applies the GTE predicate on the "name" field.
|
||||
func NameGTE(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLT applies the LT predicate on the "name" field.
|
||||
func NameLT(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLTE applies the LTE predicate on the "name" field.
|
||||
func NameLTE(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContains applies the Contains predicate on the "name" field.
|
||||
func NameContains(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldContains(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
||||
func NameHasPrefix(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldHasPrefix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
||||
func NameHasSuffix(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldHasSuffix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
||||
func NameEqualFold(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEqualFold(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
||||
func NameContainsFold(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldContainsFold(FieldName, v))
|
||||
}
|
||||
|
||||
// CollectTypeEQ applies the EQ predicate on the "collectType" field.
|
||||
func CollectTypeEQ(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeNEQ applies the NEQ predicate on the "collectType" field.
|
||||
func CollectTypeNEQ(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeIn applies the In predicate on the "collectType" field.
|
||||
func CollectTypeIn(vs ...string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIn(FieldCollectType, vs...))
|
||||
}
|
||||
|
||||
// CollectTypeNotIn applies the NotIn predicate on the "collectType" field.
|
||||
func CollectTypeNotIn(vs ...string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotIn(FieldCollectType, vs...))
|
||||
}
|
||||
|
||||
// CollectTypeGT applies the GT predicate on the "collectType" field.
|
||||
func CollectTypeGT(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGT(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeGTE applies the GTE predicate on the "collectType" field.
|
||||
func CollectTypeGTE(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGTE(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeLT applies the LT predicate on the "collectType" field.
|
||||
func CollectTypeLT(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLT(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeLTE applies the LTE predicate on the "collectType" field.
|
||||
func CollectTypeLTE(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLTE(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeContains applies the Contains predicate on the "collectType" field.
|
||||
func CollectTypeContains(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldContains(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeHasPrefix applies the HasPrefix predicate on the "collectType" field.
|
||||
func CollectTypeHasPrefix(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldHasPrefix(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeHasSuffix applies the HasSuffix predicate on the "collectType" field.
|
||||
func CollectTypeHasSuffix(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldHasSuffix(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeEqualFold applies the EqualFold predicate on the "collectType" field.
|
||||
func CollectTypeEqualFold(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEqualFold(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// CollectTypeContainsFold applies the ContainsFold predicate on the "collectType" field.
|
||||
func CollectTypeContainsFold(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldContainsFold(FieldCollectType, v))
|
||||
}
|
||||
|
||||
// IsTorqueEQ applies the EQ predicate on the "isTorque" field.
|
||||
func IsTorqueEQ(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldIsTorque, v))
|
||||
}
|
||||
|
||||
// IsTorqueNEQ applies the NEQ predicate on the "isTorque" field.
|
||||
func IsTorqueNEQ(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldIsTorque, v))
|
||||
}
|
||||
|
||||
// NeedCheckEQ applies the EQ predicate on the "needCheck" field.
|
||||
func NeedCheckEQ(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldNeedCheck, v))
|
||||
}
|
||||
|
||||
// NeedCheckNEQ applies the NEQ predicate on the "needCheck" field.
|
||||
func NeedCheckNEQ(v bool) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldNeedCheck, v))
|
||||
}
|
||||
|
||||
// RemarkEQ applies the EQ predicate on the "remark" field.
|
||||
func RemarkEQ(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
||||
func RemarkNEQ(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkIn applies the In predicate on the "remark" field.
|
||||
func RemarkIn(vs ...string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
||||
func RemarkNotIn(vs ...string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkGT applies the GT predicate on the "remark" field.
|
||||
func RemarkGT(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkGTE applies the GTE predicate on the "remark" field.
|
||||
func RemarkGTE(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLT applies the LT predicate on the "remark" field.
|
||||
func RemarkLT(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLTE applies the LTE predicate on the "remark" field.
|
||||
func RemarkLTE(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContains applies the Contains predicate on the "remark" field.
|
||||
func RemarkContains(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldContains(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
||||
func RemarkHasPrefix(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldHasPrefix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
||||
func RemarkHasSuffix(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldHasSuffix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
||||
func RemarkEqualFold(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEqualFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
||||
func RemarkContainsFold(v string) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldContainsFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.ProcessStep) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.ProcessStep) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.ProcessStep) predicate.ProcessStep {
|
||||
return predicate.ProcessStep(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user