feat: 五项目业务实现并对接完成
- MES(B): 工单/BOM/备料/工序字典/PLC下发/拧紧/扫码报工/半成品/AGV/追溯逻辑,WMS与海康RCS客户端,看板Redis缓存API(概览/设备/进度/报警/趋势)+SSE - WMS(C): JWT滑动续签、Excel导入、盘点、内部API、种子数据、独立Postgres配置 - WMS客户端(E): Go网关8891反向代理+内嵌Vue3十页 - 工位终端(D): SQLite本地缓存+模拟拧紧源+内嵌Vue3页面 - Dashboard(A): 看板数据改接MES内部缓存API,SSE实时刷新+vite代理 - 清理各项目球形磨遗留代码,新增部署手册.md
This commit is contained in:
@@ -0,0 +1,459 @@
|
||||
// Code generated by ent, DO NOT EDIT.
|
||||
|
||||
package inbounddetail
|
||||
|
||||
import (
|
||||
"bj_power_wms/ent/predicate"
|
||||
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
func ID(id int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDEQ applies the EQ predicate on the ID field.
|
||||
func IDEQ(id int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDNEQ applies the NEQ predicate on the ID field.
|
||||
func IDNEQ(id int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNEQ(FieldID, id))
|
||||
}
|
||||
|
||||
// IDIn applies the In predicate on the ID field.
|
||||
func IDIn(ids ...int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDNotIn applies the NotIn predicate on the ID field.
|
||||
func IDNotIn(ids ...int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNotIn(FieldID, ids...))
|
||||
}
|
||||
|
||||
// IDGT applies the GT predicate on the ID field.
|
||||
func IDGT(id int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDGTE applies the GTE predicate on the ID field.
|
||||
func IDGTE(id int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGTE(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLT applies the LT predicate on the ID field.
|
||||
func IDLT(id int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLT(FieldID, id))
|
||||
}
|
||||
|
||||
// IDLTE applies the LTE predicate on the ID field.
|
||||
func IDLTE(id int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLTE(FieldID, id))
|
||||
}
|
||||
|
||||
// InboundNo applies equality check predicate on the "inbound_no" field. It's identical to InboundNoEQ.
|
||||
func InboundNo(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// SnCode applies equality check predicate on the "sn_code" field. It's identical to SnCodeEQ.
|
||||
func SnCode(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// BatchNo applies equality check predicate on the "batch_no" field. It's identical to BatchNoEQ.
|
||||
func BatchNo(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// MaterialCode applies equality check predicate on the "material_code" field. It's identical to MaterialCodeEQ.
|
||||
func MaterialCode(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
|
||||
func Quantity(v int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
|
||||
func CreatedAt(v int64) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// InboundNoEQ applies the EQ predicate on the "inbound_no" field.
|
||||
func InboundNoEQ(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoNEQ applies the NEQ predicate on the "inbound_no" field.
|
||||
func InboundNoNEQ(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNEQ(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoIn applies the In predicate on the "inbound_no" field.
|
||||
func InboundNoIn(vs ...string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldIn(FieldInboundNo, vs...))
|
||||
}
|
||||
|
||||
// InboundNoNotIn applies the NotIn predicate on the "inbound_no" field.
|
||||
func InboundNoNotIn(vs ...string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNotIn(FieldInboundNo, vs...))
|
||||
}
|
||||
|
||||
// InboundNoGT applies the GT predicate on the "inbound_no" field.
|
||||
func InboundNoGT(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGT(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoGTE applies the GTE predicate on the "inbound_no" field.
|
||||
func InboundNoGTE(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGTE(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoLT applies the LT predicate on the "inbound_no" field.
|
||||
func InboundNoLT(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLT(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoLTE applies the LTE predicate on the "inbound_no" field.
|
||||
func InboundNoLTE(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLTE(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoContains applies the Contains predicate on the "inbound_no" field.
|
||||
func InboundNoContains(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldContains(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoHasPrefix applies the HasPrefix predicate on the "inbound_no" field.
|
||||
func InboundNoHasPrefix(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldHasPrefix(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoHasSuffix applies the HasSuffix predicate on the "inbound_no" field.
|
||||
func InboundNoHasSuffix(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldHasSuffix(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoEqualFold applies the EqualFold predicate on the "inbound_no" field.
|
||||
func InboundNoEqualFold(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEqualFold(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// InboundNoContainsFold applies the ContainsFold predicate on the "inbound_no" field.
|
||||
func InboundNoContainsFold(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldContainsFold(FieldInboundNo, v))
|
||||
}
|
||||
|
||||
// SnCodeEQ applies the EQ predicate on the "sn_code" field.
|
||||
func SnCodeEQ(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeNEQ applies the NEQ predicate on the "sn_code" field.
|
||||
func SnCodeNEQ(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNEQ(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeIn applies the In predicate on the "sn_code" field.
|
||||
func SnCodeIn(vs ...string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldIn(FieldSnCode, vs...))
|
||||
}
|
||||
|
||||
// SnCodeNotIn applies the NotIn predicate on the "sn_code" field.
|
||||
func SnCodeNotIn(vs ...string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNotIn(FieldSnCode, vs...))
|
||||
}
|
||||
|
||||
// SnCodeGT applies the GT predicate on the "sn_code" field.
|
||||
func SnCodeGT(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGT(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeGTE applies the GTE predicate on the "sn_code" field.
|
||||
func SnCodeGTE(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGTE(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeLT applies the LT predicate on the "sn_code" field.
|
||||
func SnCodeLT(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLT(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeLTE applies the LTE predicate on the "sn_code" field.
|
||||
func SnCodeLTE(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLTE(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeContains applies the Contains predicate on the "sn_code" field.
|
||||
func SnCodeContains(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldContains(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeHasPrefix applies the HasPrefix predicate on the "sn_code" field.
|
||||
func SnCodeHasPrefix(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldHasPrefix(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeHasSuffix applies the HasSuffix predicate on the "sn_code" field.
|
||||
func SnCodeHasSuffix(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldHasSuffix(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeIsNil applies the IsNil predicate on the "sn_code" field.
|
||||
func SnCodeIsNil() predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldIsNull(FieldSnCode))
|
||||
}
|
||||
|
||||
// SnCodeNotNil applies the NotNil predicate on the "sn_code" field.
|
||||
func SnCodeNotNil() predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNotNull(FieldSnCode))
|
||||
}
|
||||
|
||||
// SnCodeEqualFold applies the EqualFold predicate on the "sn_code" field.
|
||||
func SnCodeEqualFold(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEqualFold(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// SnCodeContainsFold applies the ContainsFold predicate on the "sn_code" field.
|
||||
func SnCodeContainsFold(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldContainsFold(FieldSnCode, v))
|
||||
}
|
||||
|
||||
// BatchNoEQ applies the EQ predicate on the "batch_no" field.
|
||||
func BatchNoEQ(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoNEQ applies the NEQ predicate on the "batch_no" field.
|
||||
func BatchNoNEQ(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNEQ(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoIn applies the In predicate on the "batch_no" field.
|
||||
func BatchNoIn(vs ...string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldIn(FieldBatchNo, vs...))
|
||||
}
|
||||
|
||||
// BatchNoNotIn applies the NotIn predicate on the "batch_no" field.
|
||||
func BatchNoNotIn(vs ...string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNotIn(FieldBatchNo, vs...))
|
||||
}
|
||||
|
||||
// BatchNoGT applies the GT predicate on the "batch_no" field.
|
||||
func BatchNoGT(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGT(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoGTE applies the GTE predicate on the "batch_no" field.
|
||||
func BatchNoGTE(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGTE(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoLT applies the LT predicate on the "batch_no" field.
|
||||
func BatchNoLT(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLT(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoLTE applies the LTE predicate on the "batch_no" field.
|
||||
func BatchNoLTE(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLTE(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoContains applies the Contains predicate on the "batch_no" field.
|
||||
func BatchNoContains(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldContains(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoHasPrefix applies the HasPrefix predicate on the "batch_no" field.
|
||||
func BatchNoHasPrefix(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldHasPrefix(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoHasSuffix applies the HasSuffix predicate on the "batch_no" field.
|
||||
func BatchNoHasSuffix(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldHasSuffix(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoIsNil applies the IsNil predicate on the "batch_no" field.
|
||||
func BatchNoIsNil() predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldIsNull(FieldBatchNo))
|
||||
}
|
||||
|
||||
// BatchNoNotNil applies the NotNil predicate on the "batch_no" field.
|
||||
func BatchNoNotNil() predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNotNull(FieldBatchNo))
|
||||
}
|
||||
|
||||
// BatchNoEqualFold applies the EqualFold predicate on the "batch_no" field.
|
||||
func BatchNoEqualFold(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEqualFold(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// BatchNoContainsFold applies the ContainsFold predicate on the "batch_no" field.
|
||||
func BatchNoContainsFold(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldContainsFold(FieldBatchNo, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEQ applies the EQ predicate on the "material_code" field.
|
||||
func MaterialCodeEQ(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeNEQ applies the NEQ predicate on the "material_code" field.
|
||||
func MaterialCodeNEQ(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNEQ(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeIn applies the In predicate on the "material_code" field.
|
||||
func MaterialCodeIn(vs ...string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeNotIn applies the NotIn predicate on the "material_code" field.
|
||||
func MaterialCodeNotIn(vs ...string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNotIn(FieldMaterialCode, vs...))
|
||||
}
|
||||
|
||||
// MaterialCodeGT applies the GT predicate on the "material_code" field.
|
||||
func MaterialCodeGT(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeGTE applies the GTE predicate on the "material_code" field.
|
||||
func MaterialCodeGTE(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLT applies the LT predicate on the "material_code" field.
|
||||
func MaterialCodeLT(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLT(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeLTE applies the LTE predicate on the "material_code" field.
|
||||
func MaterialCodeLTE(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLTE(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContains applies the Contains predicate on the "material_code" field.
|
||||
func MaterialCodeContains(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldContains(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasPrefix applies the HasPrefix predicate on the "material_code" field.
|
||||
func MaterialCodeHasPrefix(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldHasPrefix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeHasSuffix applies the HasSuffix predicate on the "material_code" field.
|
||||
func MaterialCodeHasSuffix(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldHasSuffix(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeEqualFold applies the EqualFold predicate on the "material_code" field.
|
||||
func MaterialCodeEqualFold(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEqualFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// MaterialCodeContainsFold applies the ContainsFold predicate on the "material_code" field.
|
||||
func MaterialCodeContainsFold(v string) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldContainsFold(FieldMaterialCode, v))
|
||||
}
|
||||
|
||||
// QuantityEQ applies the EQ predicate on the "quantity" field.
|
||||
func QuantityEQ(v int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityNEQ applies the NEQ predicate on the "quantity" field.
|
||||
func QuantityNEQ(v int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNEQ(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityIn applies the In predicate on the "quantity" field.
|
||||
func QuantityIn(vs ...int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldIn(FieldQuantity, vs...))
|
||||
}
|
||||
|
||||
// QuantityNotIn applies the NotIn predicate on the "quantity" field.
|
||||
func QuantityNotIn(vs ...int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNotIn(FieldQuantity, vs...))
|
||||
}
|
||||
|
||||
// QuantityGT applies the GT predicate on the "quantity" field.
|
||||
func QuantityGT(v int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGT(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityGTE applies the GTE predicate on the "quantity" field.
|
||||
func QuantityGTE(v int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGTE(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityLT applies the LT predicate on the "quantity" field.
|
||||
func QuantityLT(v int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLT(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// QuantityLTE applies the LTE predicate on the "quantity" field.
|
||||
func QuantityLTE(v int) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLTE(FieldQuantity, v))
|
||||
}
|
||||
|
||||
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
|
||||
func CreatedAtEQ(v int64) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
|
||||
func CreatedAtNEQ(v int64) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtIn applies the In predicate on the "created_at" field.
|
||||
func CreatedAtIn(vs ...int64) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
|
||||
func CreatedAtNotIn(vs ...int64) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldNotIn(FieldCreatedAt, vs...))
|
||||
}
|
||||
|
||||
// CreatedAtGT applies the GT predicate on the "created_at" field.
|
||||
func CreatedAtGT(v int64) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
|
||||
func CreatedAtGTE(v int64) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldGTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLT applies the LT predicate on the "created_at" field.
|
||||
func CreatedAtLT(v int64) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLT(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
|
||||
func CreatedAtLTE(v int64) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.InboundDetail) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.AndPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Or groups predicates with the OR operator between them.
|
||||
func Or(predicates ...predicate.InboundDetail) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.OrPredicates(predicates...))
|
||||
}
|
||||
|
||||
// Not applies the not operator on the given predicate.
|
||||
func Not(p predicate.InboundDetail) predicate.InboundDetail {
|
||||
return predicate.InboundDetail(sql.NotPredicates(p))
|
||||
}
|
||||
Reference in New Issue
Block a user