feat: 完成MES工位终端系统全量功能迭代
本次提交包含以下核心变更: 1. 新增按钮级权限控制框架与前端权限校验 2. 新增工位管理、工艺流程、巡检终端等核心业务模块 3. 完善用户体系,支持工位终端专属登录权限 4. 新增文件上传下载、报表查询等配套功能 5. 修复多系统兼容性与交互体验问题 6. 完成所有文档与配置项的规范化更新
This commit is contained in:
@@ -0,0 +1,122 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package processflow
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the processflow type in the database.
|
||||
Label = "process_flow"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldName holds the string denoting the name field in the database.
|
||||
FieldName = "name"
|
||||
// FieldProcessCode holds the string denoting the processcode field in the database.
|
||||
FieldProcessCode = "process_code"
|
||||
// FieldPdfFile holds the string denoting the pdffile field in the database.
|
||||
FieldPdfFile = "pdf_file"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// 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"
|
||||
// FieldUpdatedAt holds the string denoting the updatedat field in the database.
|
||||
FieldUpdatedAt = "updated_at"
|
||||
// Table holds the table name of the processflow in the database.
|
||||
Table = "process_flow"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for processflow fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldName,
|
||||
FieldProcessCode,
|
||||
FieldPdfFile,
|
||||
FieldStatus,
|
||||
FieldRemark,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
}
|
||||
|
||||
// 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 (
|
||||
// NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
NameValidator func(string) error
|
||||
// DefaultPdfFile holds the default value on creation for the "pdfFile" field.
|
||||
DefaultPdfFile string
|
||||
// PdfFileValidator is a validator for the "pdfFile" field. It is called by the builders before save.
|
||||
PdfFileValidator func(string) error
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
StatusValidator func(string) error
|
||||
// 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
|
||||
// DefaultUpdatedAt holds the default value on creation for the "updatedAt" field.
|
||||
DefaultUpdatedAt func() time.Time
|
||||
// UpdateDefaultUpdatedAt holds the default value on update for the "updatedAt" field.
|
||||
UpdateDefaultUpdatedAt 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 ProcessFlow 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()
|
||||
}
|
||||
|
||||
// ByName orders the results by the name field.
|
||||
func ByName(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldName, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByProcessCode orders the results by the processCode field.
|
||||
func ByProcessCode(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldProcessCode, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByPdfFile orders the results by the pdfFile field.
|
||||
func ByPdfFile(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldPdfFile, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, 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()
|
||||
}
|
||||
|
||||
// ByUpdatedAt orders the results by the updatedAt field.
|
||||
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
|
||||
}
|
||||
@@ -0,0 +1,495 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package processflow
|
||||
|
||||
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.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
||||
func Name(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// ProcessCode applies equality check predicate on the "processCode" field. It's identical to ProcessCodeEQ.
|
||||
func ProcessCode(v int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// PdfFile applies equality check predicate on the "pdfFile" field. It's identical to PdfFileEQ.
|
||||
func PdfFile(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
||||
func Status(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
|
||||
func Remark(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
||||
func UpdatedAt(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// NameEQ applies the EQ predicate on the "name" field.
|
||||
func NameEQ(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameNEQ applies the NEQ predicate on the "name" field.
|
||||
func NameNEQ(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNEQ(FieldName, v))
|
||||
}
|
||||
|
||||
// NameIn applies the In predicate on the "name" field.
|
||||
func NameIn(vs ...string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameNotIn applies the NotIn predicate on the "name" field.
|
||||
func NameNotIn(vs ...string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNotIn(FieldName, vs...))
|
||||
}
|
||||
|
||||
// NameGT applies the GT predicate on the "name" field.
|
||||
func NameGT(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameGTE applies the GTE predicate on the "name" field.
|
||||
func NameGTE(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLT applies the LT predicate on the "name" field.
|
||||
func NameLT(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLT(FieldName, v))
|
||||
}
|
||||
|
||||
// NameLTE applies the LTE predicate on the "name" field.
|
||||
func NameLTE(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLTE(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContains applies the Contains predicate on the "name" field.
|
||||
func NameContains(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldContains(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
||||
func NameHasPrefix(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldHasPrefix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
||||
func NameHasSuffix(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldHasSuffix(FieldName, v))
|
||||
}
|
||||
|
||||
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
||||
func NameEqualFold(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEqualFold(FieldName, v))
|
||||
}
|
||||
|
||||
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
||||
func NameContainsFold(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldContainsFold(FieldName, v))
|
||||
}
|
||||
|
||||
// ProcessCodeEQ applies the EQ predicate on the "processCode" field.
|
||||
func ProcessCodeEQ(v int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeNEQ applies the NEQ predicate on the "processCode" field.
|
||||
func ProcessCodeNEQ(v int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNEQ(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeIn applies the In predicate on the "processCode" field.
|
||||
func ProcessCodeIn(vs ...int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldIn(FieldProcessCode, vs...))
|
||||
}
|
||||
|
||||
// ProcessCodeNotIn applies the NotIn predicate on the "processCode" field.
|
||||
func ProcessCodeNotIn(vs ...int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNotIn(FieldProcessCode, vs...))
|
||||
}
|
||||
|
||||
// ProcessCodeGT applies the GT predicate on the "processCode" field.
|
||||
func ProcessCodeGT(v int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGT(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeGTE applies the GTE predicate on the "processCode" field.
|
||||
func ProcessCodeGTE(v int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGTE(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeLT applies the LT predicate on the "processCode" field.
|
||||
func ProcessCodeLT(v int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLT(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// ProcessCodeLTE applies the LTE predicate on the "processCode" field.
|
||||
func ProcessCodeLTE(v int) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLTE(FieldProcessCode, v))
|
||||
}
|
||||
|
||||
// PdfFileEQ applies the EQ predicate on the "pdfFile" field.
|
||||
func PdfFileEQ(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileNEQ applies the NEQ predicate on the "pdfFile" field.
|
||||
func PdfFileNEQ(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNEQ(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileIn applies the In predicate on the "pdfFile" field.
|
||||
func PdfFileIn(vs ...string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldIn(FieldPdfFile, vs...))
|
||||
}
|
||||
|
||||
// PdfFileNotIn applies the NotIn predicate on the "pdfFile" field.
|
||||
func PdfFileNotIn(vs ...string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNotIn(FieldPdfFile, vs...))
|
||||
}
|
||||
|
||||
// PdfFileGT applies the GT predicate on the "pdfFile" field.
|
||||
func PdfFileGT(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGT(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileGTE applies the GTE predicate on the "pdfFile" field.
|
||||
func PdfFileGTE(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGTE(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileLT applies the LT predicate on the "pdfFile" field.
|
||||
func PdfFileLT(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLT(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileLTE applies the LTE predicate on the "pdfFile" field.
|
||||
func PdfFileLTE(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLTE(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileContains applies the Contains predicate on the "pdfFile" field.
|
||||
func PdfFileContains(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldContains(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileHasPrefix applies the HasPrefix predicate on the "pdfFile" field.
|
||||
func PdfFileHasPrefix(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldHasPrefix(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileHasSuffix applies the HasSuffix predicate on the "pdfFile" field.
|
||||
func PdfFileHasSuffix(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldHasSuffix(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileEqualFold applies the EqualFold predicate on the "pdfFile" field.
|
||||
func PdfFileEqualFold(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEqualFold(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// PdfFileContainsFold applies the ContainsFold predicate on the "pdfFile" field.
|
||||
func PdfFileContainsFold(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldContainsFold(FieldPdfFile, v))
|
||||
}
|
||||
|
||||
// StatusEQ applies the EQ predicate on the "status" field.
|
||||
func StatusEQ(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusNEQ applies the NEQ predicate on the "status" field.
|
||||
func StatusNEQ(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNEQ(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusIn applies the In predicate on the "status" field.
|
||||
func StatusIn(vs ...string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusNotIn applies the NotIn predicate on the "status" field.
|
||||
func StatusNotIn(vs ...string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNotIn(FieldStatus, vs...))
|
||||
}
|
||||
|
||||
// StatusGT applies the GT predicate on the "status" field.
|
||||
func StatusGT(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusGTE applies the GTE predicate on the "status" field.
|
||||
func StatusGTE(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLT applies the LT predicate on the "status" field.
|
||||
func StatusLT(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLT(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusLTE applies the LTE predicate on the "status" field.
|
||||
func StatusLTE(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLTE(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContains applies the Contains predicate on the "status" field.
|
||||
func StatusContains(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldContains(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
||||
func StatusHasPrefix(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldHasPrefix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
||||
func StatusHasSuffix(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldHasSuffix(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
||||
func StatusEqualFold(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEqualFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
||||
func StatusContainsFold(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldContainsFold(FieldStatus, v))
|
||||
}
|
||||
|
||||
// RemarkEQ applies the EQ predicate on the "remark" field.
|
||||
func RemarkEQ(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkNEQ applies the NEQ predicate on the "remark" field.
|
||||
func RemarkNEQ(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNEQ(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkIn applies the In predicate on the "remark" field.
|
||||
func RemarkIn(vs ...string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkNotIn applies the NotIn predicate on the "remark" field.
|
||||
func RemarkNotIn(vs ...string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNotIn(FieldRemark, vs...))
|
||||
}
|
||||
|
||||
// RemarkGT applies the GT predicate on the "remark" field.
|
||||
func RemarkGT(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkGTE applies the GTE predicate on the "remark" field.
|
||||
func RemarkGTE(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLT applies the LT predicate on the "remark" field.
|
||||
func RemarkLT(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLT(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkLTE applies the LTE predicate on the "remark" field.
|
||||
func RemarkLTE(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLTE(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContains applies the Contains predicate on the "remark" field.
|
||||
func RemarkContains(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldContains(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
|
||||
func RemarkHasPrefix(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldHasPrefix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
|
||||
func RemarkHasSuffix(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldHasSuffix(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkEqualFold applies the EqualFold predicate on the "remark" field.
|
||||
func RemarkEqualFold(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEqualFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
|
||||
func RemarkContainsFold(v string) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldContainsFold(FieldRemark, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
||||
func CreatedAtEQ(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
||||
func CreatedAtNEQ(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
||||
func CreatedAtIn(vs ...time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
||||
func CreatedAtNotIn(vs ...time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
||||
func CreatedAtGT(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
||||
func CreatedAtGTE(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
||||
func CreatedAtLT(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
||||
func CreatedAtLTE(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtEQ(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
||||
func UpdatedAtNEQ(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNEQ(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
||||
func UpdatedAtIn(vs ...time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
||||
func UpdatedAtNotIn(vs ...time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
||||
}
|
||||
|
||||
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
||||
func UpdatedAtGT(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtGTE(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldGTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
||||
func UpdatedAtLT(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLT(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
||||
func UpdatedAtLTE(v time.Time) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldLTE(FieldUpdatedAt, v))
|
||||
}
|
||||
|
||||
// UpdatedAtIsNil applies the IsNil predicate on the "updatedAt" field.
|
||||
func UpdatedAtIsNil() predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldIsNull(FieldUpdatedAt))
|
||||
}
|
||||
|
||||
// UpdatedAtNotNil applies the NotNil predicate on the "updatedAt" field.
|
||||
func UpdatedAtNotNil() predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.FieldNotNull(FieldUpdatedAt))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.ProcessFlow) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.ProcessFlow) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.ProcessFlow) predicate.ProcessFlow {
|
||||
return predicate.ProcessFlow(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user