feat: 完成附件存储重构与磁盘监控功能,同步物料档案与入库单规则更新
1. 新增跨平台磁盘空间监控能力,每日7点自动检测附件目录剩余空间,触发阈值告警 2. 重构附件存储方案为年/月/日/文件类型分层结构,统一MES与WMS的附件管理逻辑 3. 对齐物料档案与入库单的质量状态校验规则,仅合格品计入库存与出库 4. 实现入库单作废功能与区域库位的多级父子结构管理 5. 删除物料简称字段,补充规格型号与单位必填项,统一系统数据口径 6. 新增附件中心与磁盘状态查询接口,完善权限控制与操作日志
This commit is contained in:
@@ -89,6 +89,51 @@ func CreatedAt(v time.Time) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// FileType applies equality check predicate on the "fileType" field. It's identical to FileTypeEQ.
|
||||
func FileType(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileExt applies equality check predicate on the "fileExt" field. It's identical to FileExtEQ.
|
||||
func FileExt(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileMd5 applies equality check predicate on the "fileMd5" field. It's identical to FileMd5EQ.
|
||||
func FileMd5(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// MimeType applies equality check predicate on the "mimeType" field. It's identical to MimeTypeEQ.
|
||||
func MimeType(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// Archived applies equality check predicate on the "archived" field. It's identical to ArchivedEQ.
|
||||
func Archived(v bool) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldArchived, v))
|
||||
}
|
||||
|
||||
// ArchivedAt applies equality check predicate on the "archivedAt" field. It's identical to ArchivedAtEQ.
|
||||
func ArchivedAt(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldArchivedAt, v))
|
||||
}
|
||||
|
||||
// Deleted applies equality check predicate on the "deleted" field. It's identical to DeletedEQ.
|
||||
func Deleted(v bool) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedAt applies equality check predicate on the "deletedAt" field. It's identical to DeletedAtEQ.
|
||||
func DeletedAt(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldDeletedAt, v))
|
||||
}
|
||||
|
||||
// DeletedBy applies equality check predicate on the "deletedBy" field. It's identical to DeletedByEQ.
|
||||
func DeletedBy(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// BizTypeEQ applies the EQ predicate on the "bizType" field.
|
||||
func BizTypeEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldBizType, v))
|
||||
@@ -494,6 +539,431 @@ func CreatedAtLTE(v time.Time) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldCreatedAt, v))
|
||||
}
|
||||
|
||||
// FileTypeEQ applies the EQ predicate on the "fileType" field.
|
||||
func FileTypeEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeNEQ applies the NEQ predicate on the "fileType" field.
|
||||
func FileTypeNEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeIn applies the In predicate on the "fileType" field.
|
||||
func FileTypeIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldFileType, vs...))
|
||||
}
|
||||
|
||||
// FileTypeNotIn applies the NotIn predicate on the "fileType" field.
|
||||
func FileTypeNotIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldFileType, vs...))
|
||||
}
|
||||
|
||||
// FileTypeGT applies the GT predicate on the "fileType" field.
|
||||
func FileTypeGT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeGTE applies the GTE predicate on the "fileType" field.
|
||||
func FileTypeGTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeLT applies the LT predicate on the "fileType" field.
|
||||
func FileTypeLT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeLTE applies the LTE predicate on the "fileType" field.
|
||||
func FileTypeLTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeContains applies the Contains predicate on the "fileType" field.
|
||||
func FileTypeContains(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContains(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeHasPrefix applies the HasPrefix predicate on the "fileType" field.
|
||||
func FileTypeHasPrefix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasPrefix(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeHasSuffix applies the HasSuffix predicate on the "fileType" field.
|
||||
func FileTypeHasSuffix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasSuffix(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeEqualFold applies the EqualFold predicate on the "fileType" field.
|
||||
func FileTypeEqualFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEqualFold(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileTypeContainsFold applies the ContainsFold predicate on the "fileType" field.
|
||||
func FileTypeContainsFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContainsFold(FieldFileType, v))
|
||||
}
|
||||
|
||||
// FileExtEQ applies the EQ predicate on the "fileExt" field.
|
||||
func FileExtEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtNEQ applies the NEQ predicate on the "fileExt" field.
|
||||
func FileExtNEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtIn applies the In predicate on the "fileExt" field.
|
||||
func FileExtIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldFileExt, vs...))
|
||||
}
|
||||
|
||||
// FileExtNotIn applies the NotIn predicate on the "fileExt" field.
|
||||
func FileExtNotIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldFileExt, vs...))
|
||||
}
|
||||
|
||||
// FileExtGT applies the GT predicate on the "fileExt" field.
|
||||
func FileExtGT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtGTE applies the GTE predicate on the "fileExt" field.
|
||||
func FileExtGTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtLT applies the LT predicate on the "fileExt" field.
|
||||
func FileExtLT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtLTE applies the LTE predicate on the "fileExt" field.
|
||||
func FileExtLTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtContains applies the Contains predicate on the "fileExt" field.
|
||||
func FileExtContains(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContains(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtHasPrefix applies the HasPrefix predicate on the "fileExt" field.
|
||||
func FileExtHasPrefix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasPrefix(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtHasSuffix applies the HasSuffix predicate on the "fileExt" field.
|
||||
func FileExtHasSuffix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasSuffix(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtEqualFold applies the EqualFold predicate on the "fileExt" field.
|
||||
func FileExtEqualFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEqualFold(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileExtContainsFold applies the ContainsFold predicate on the "fileExt" field.
|
||||
func FileExtContainsFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContainsFold(FieldFileExt, v))
|
||||
}
|
||||
|
||||
// FileMd5EQ applies the EQ predicate on the "fileMd5" field.
|
||||
func FileMd5EQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5NEQ applies the NEQ predicate on the "fileMd5" field.
|
||||
func FileMd5NEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5In applies the In predicate on the "fileMd5" field.
|
||||
func FileMd5In(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldFileMd5, vs...))
|
||||
}
|
||||
|
||||
// FileMd5NotIn applies the NotIn predicate on the "fileMd5" field.
|
||||
func FileMd5NotIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldFileMd5, vs...))
|
||||
}
|
||||
|
||||
// FileMd5GT applies the GT predicate on the "fileMd5" field.
|
||||
func FileMd5GT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5GTE applies the GTE predicate on the "fileMd5" field.
|
||||
func FileMd5GTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5LT applies the LT predicate on the "fileMd5" field.
|
||||
func FileMd5LT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5LTE applies the LTE predicate on the "fileMd5" field.
|
||||
func FileMd5LTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5Contains applies the Contains predicate on the "fileMd5" field.
|
||||
func FileMd5Contains(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContains(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5HasPrefix applies the HasPrefix predicate on the "fileMd5" field.
|
||||
func FileMd5HasPrefix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasPrefix(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5HasSuffix applies the HasSuffix predicate on the "fileMd5" field.
|
||||
func FileMd5HasSuffix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasSuffix(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5EqualFold applies the EqualFold predicate on the "fileMd5" field.
|
||||
func FileMd5EqualFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEqualFold(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// FileMd5ContainsFold applies the ContainsFold predicate on the "fileMd5" field.
|
||||
func FileMd5ContainsFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContainsFold(FieldFileMd5, v))
|
||||
}
|
||||
|
||||
// MimeTypeEQ applies the EQ predicate on the "mimeType" field.
|
||||
func MimeTypeEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeNEQ applies the NEQ predicate on the "mimeType" field.
|
||||
func MimeTypeNEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeIn applies the In predicate on the "mimeType" field.
|
||||
func MimeTypeIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldMimeType, vs...))
|
||||
}
|
||||
|
||||
// MimeTypeNotIn applies the NotIn predicate on the "mimeType" field.
|
||||
func MimeTypeNotIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldMimeType, vs...))
|
||||
}
|
||||
|
||||
// MimeTypeGT applies the GT predicate on the "mimeType" field.
|
||||
func MimeTypeGT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeGTE applies the GTE predicate on the "mimeType" field.
|
||||
func MimeTypeGTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeLT applies the LT predicate on the "mimeType" field.
|
||||
func MimeTypeLT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeLTE applies the LTE predicate on the "mimeType" field.
|
||||
func MimeTypeLTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeContains applies the Contains predicate on the "mimeType" field.
|
||||
func MimeTypeContains(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContains(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeHasPrefix applies the HasPrefix predicate on the "mimeType" field.
|
||||
func MimeTypeHasPrefix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasPrefix(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeHasSuffix applies the HasSuffix predicate on the "mimeType" field.
|
||||
func MimeTypeHasSuffix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasSuffix(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeEqualFold applies the EqualFold predicate on the "mimeType" field.
|
||||
func MimeTypeEqualFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEqualFold(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// MimeTypeContainsFold applies the ContainsFold predicate on the "mimeType" field.
|
||||
func MimeTypeContainsFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContainsFold(FieldMimeType, v))
|
||||
}
|
||||
|
||||
// ArchivedEQ applies the EQ predicate on the "archived" field.
|
||||
func ArchivedEQ(v bool) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldArchived, v))
|
||||
}
|
||||
|
||||
// ArchivedNEQ applies the NEQ predicate on the "archived" field.
|
||||
func ArchivedNEQ(v bool) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldArchived, v))
|
||||
}
|
||||
|
||||
// ArchivedAtEQ applies the EQ predicate on the "archivedAt" field.
|
||||
func ArchivedAtEQ(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldArchivedAt, v))
|
||||
}
|
||||
|
||||
// ArchivedAtNEQ applies the NEQ predicate on the "archivedAt" field.
|
||||
func ArchivedAtNEQ(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldArchivedAt, v))
|
||||
}
|
||||
|
||||
// ArchivedAtIn applies the In predicate on the "archivedAt" field.
|
||||
func ArchivedAtIn(vs ...int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldArchivedAt, vs...))
|
||||
}
|
||||
|
||||
// ArchivedAtNotIn applies the NotIn predicate on the "archivedAt" field.
|
||||
func ArchivedAtNotIn(vs ...int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldArchivedAt, vs...))
|
||||
}
|
||||
|
||||
// ArchivedAtGT applies the GT predicate on the "archivedAt" field.
|
||||
func ArchivedAtGT(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldArchivedAt, v))
|
||||
}
|
||||
|
||||
// ArchivedAtGTE applies the GTE predicate on the "archivedAt" field.
|
||||
func ArchivedAtGTE(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldArchivedAt, v))
|
||||
}
|
||||
|
||||
// ArchivedAtLT applies the LT predicate on the "archivedAt" field.
|
||||
func ArchivedAtLT(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldArchivedAt, v))
|
||||
}
|
||||
|
||||
// ArchivedAtLTE applies the LTE predicate on the "archivedAt" field.
|
||||
func ArchivedAtLTE(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldArchivedAt, v))
|
||||
}
|
||||
|
||||
// DeletedEQ applies the EQ predicate on the "deleted" field.
|
||||
func DeletedEQ(v bool) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedNEQ applies the NEQ predicate on the "deleted" field.
|
||||
func DeletedNEQ(v bool) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldDeleted, v))
|
||||
}
|
||||
|
||||
// DeletedAtEQ applies the EQ predicate on the "deletedAt" field.
|
||||
func DeletedAtEQ(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldDeletedAt, v))
|
||||
}
|
||||
|
||||
// DeletedAtNEQ applies the NEQ predicate on the "deletedAt" field.
|
||||
func DeletedAtNEQ(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldDeletedAt, v))
|
||||
}
|
||||
|
||||
// DeletedAtIn applies the In predicate on the "deletedAt" field.
|
||||
func DeletedAtIn(vs ...int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldDeletedAt, vs...))
|
||||
}
|
||||
|
||||
// DeletedAtNotIn applies the NotIn predicate on the "deletedAt" field.
|
||||
func DeletedAtNotIn(vs ...int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldDeletedAt, vs...))
|
||||
}
|
||||
|
||||
// DeletedAtGT applies the GT predicate on the "deletedAt" field.
|
||||
func DeletedAtGT(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldDeletedAt, v))
|
||||
}
|
||||
|
||||
// DeletedAtGTE applies the GTE predicate on the "deletedAt" field.
|
||||
func DeletedAtGTE(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldDeletedAt, v))
|
||||
}
|
||||
|
||||
// DeletedAtLT applies the LT predicate on the "deletedAt" field.
|
||||
func DeletedAtLT(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldDeletedAt, v))
|
||||
}
|
||||
|
||||
// DeletedAtLTE applies the LTE predicate on the "deletedAt" field.
|
||||
func DeletedAtLTE(v int64) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldDeletedAt, v))
|
||||
}
|
||||
|
||||
// DeletedByEQ applies the EQ predicate on the "deletedBy" field.
|
||||
func DeletedByEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEQ(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByNEQ applies the NEQ predicate on the "deletedBy" field.
|
||||
func DeletedByNEQ(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNEQ(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByIn applies the In predicate on the "deletedBy" field.
|
||||
func DeletedByIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldIn(FieldDeletedBy, vs...))
|
||||
}
|
||||
|
||||
// DeletedByNotIn applies the NotIn predicate on the "deletedBy" field.
|
||||
func DeletedByNotIn(vs ...string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldNotIn(FieldDeletedBy, vs...))
|
||||
}
|
||||
|
||||
// DeletedByGT applies the GT predicate on the "deletedBy" field.
|
||||
func DeletedByGT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGT(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByGTE applies the GTE predicate on the "deletedBy" field.
|
||||
func DeletedByGTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldGTE(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByLT applies the LT predicate on the "deletedBy" field.
|
||||
func DeletedByLT(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLT(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByLTE applies the LTE predicate on the "deletedBy" field.
|
||||
func DeletedByLTE(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldLTE(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByContains applies the Contains predicate on the "deletedBy" field.
|
||||
func DeletedByContains(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContains(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByHasPrefix applies the HasPrefix predicate on the "deletedBy" field.
|
||||
func DeletedByHasPrefix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasPrefix(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByHasSuffix applies the HasSuffix predicate on the "deletedBy" field.
|
||||
func DeletedByHasSuffix(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldHasSuffix(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByEqualFold applies the EqualFold predicate on the "deletedBy" field.
|
||||
func DeletedByEqualFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldEqualFold(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// DeletedByContainsFold applies the ContainsFold predicate on the "deletedBy" field.
|
||||
func DeletedByContainsFold(v string) predicate.Attachment {
|
||||
return predicate.Attachment(sql.FieldContainsFold(FieldDeletedBy, v))
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.Attachment) predicate.Attachment {
|
||||
return predicate.Attachment(sql.AndPredicates(predicates...))
|
||||
|
||||
Reference in New Issue
Block a user