1. 新增预警规则、预警消息、业务附件数据库表与CRUD逻辑 2. 为拧紧记录添加审核人、审核时间字段及审核留痕功能 3. 优化产线点位类型与编号描述,更新工位组合下发菜单名称为工艺路线派工 4. 新增上传文件获取原文件名与大小的工具方法 5. 在系统管理菜单新增预警中心与附件中心入口
656 lines
23 KiB
Go
656 lines
23 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package user
|
|
|
|
import (
|
|
"bj_power_mes/predicate"
|
|
"time"
|
|
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// ID filters vertices based on their ID field.
|
|
func ID(id int) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDEQ applies the EQ predicate on the ID field.
|
|
func IDEQ(id int) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldID, id))
|
|
}
|
|
|
|
// IDNEQ applies the NEQ predicate on the ID field.
|
|
func IDNEQ(id int) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldID, id))
|
|
}
|
|
|
|
// IDIn applies the In predicate on the ID field.
|
|
func IDIn(ids ...int) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDNotIn applies the NotIn predicate on the ID field.
|
|
func IDNotIn(ids ...int) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldID, ids...))
|
|
}
|
|
|
|
// IDGT applies the GT predicate on the ID field.
|
|
func IDGT(id int) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldID, id))
|
|
}
|
|
|
|
// IDGTE applies the GTE predicate on the ID field.
|
|
func IDGTE(id int) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldID, id))
|
|
}
|
|
|
|
// IDLT applies the LT predicate on the ID field.
|
|
func IDLT(id int) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldID, id))
|
|
}
|
|
|
|
// IDLTE applies the LTE predicate on the ID field.
|
|
func IDLTE(id int) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldID, id))
|
|
}
|
|
|
|
// Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
|
|
func Username(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldUsername, v))
|
|
}
|
|
|
|
// Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
|
|
func Password(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldPassword, v))
|
|
}
|
|
|
|
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
|
|
func Name(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// RoleId applies equality check predicate on the "roleId" field. It's identical to RoleIdEQ.
|
|
func RoleId(v int) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldRoleId, v))
|
|
}
|
|
|
|
// CanLoginWorkstation applies equality check predicate on the "canLoginWorkstation" field. It's identical to CanLoginWorkstationEQ.
|
|
func CanLoginWorkstation(v bool) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldCanLoginWorkstation, v))
|
|
}
|
|
|
|
// WorkstationPassword applies equality check predicate on the "workstationPassword" field. It's identical to WorkstationPasswordEQ.
|
|
func WorkstationPassword(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
|
|
func Status(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// LastLoginAt applies equality check predicate on the "lastLoginAt" field. It's identical to LastLoginAtEQ.
|
|
func LastLoginAt(v int64) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldLastLoginAt, v))
|
|
}
|
|
|
|
// CreatedAt applies equality check predicate on the "createdAt" field. It's identical to CreatedAtEQ.
|
|
func CreatedAt(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAt applies equality check predicate on the "updatedAt" field. It's identical to UpdatedAtEQ.
|
|
func UpdatedAt(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UsernameEQ applies the EQ predicate on the "username" field.
|
|
func UsernameEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameNEQ applies the NEQ predicate on the "username" field.
|
|
func UsernameNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameIn applies the In predicate on the "username" field.
|
|
func UsernameIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldUsername, vs...))
|
|
}
|
|
|
|
// UsernameNotIn applies the NotIn predicate on the "username" field.
|
|
func UsernameNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldUsername, vs...))
|
|
}
|
|
|
|
// UsernameGT applies the GT predicate on the "username" field.
|
|
func UsernameGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameGTE applies the GTE predicate on the "username" field.
|
|
func UsernameGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameLT applies the LT predicate on the "username" field.
|
|
func UsernameLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameLTE applies the LTE predicate on the "username" field.
|
|
func UsernameLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameContains applies the Contains predicate on the "username" field.
|
|
func UsernameContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
|
|
func UsernameHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
|
|
func UsernameHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameEqualFold applies the EqualFold predicate on the "username" field.
|
|
func UsernameEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldUsername, v))
|
|
}
|
|
|
|
// UsernameContainsFold applies the ContainsFold predicate on the "username" field.
|
|
func UsernameContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldUsername, v))
|
|
}
|
|
|
|
// PasswordEQ applies the EQ predicate on the "password" field.
|
|
func PasswordEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordNEQ applies the NEQ predicate on the "password" field.
|
|
func PasswordNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordIn applies the In predicate on the "password" field.
|
|
func PasswordIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldPassword, vs...))
|
|
}
|
|
|
|
// PasswordNotIn applies the NotIn predicate on the "password" field.
|
|
func PasswordNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldPassword, vs...))
|
|
}
|
|
|
|
// PasswordGT applies the GT predicate on the "password" field.
|
|
func PasswordGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordGTE applies the GTE predicate on the "password" field.
|
|
func PasswordGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordLT applies the LT predicate on the "password" field.
|
|
func PasswordLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordLTE applies the LTE predicate on the "password" field.
|
|
func PasswordLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordContains applies the Contains predicate on the "password" field.
|
|
func PasswordContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
|
|
func PasswordHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
|
|
func PasswordHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordEqualFold applies the EqualFold predicate on the "password" field.
|
|
func PasswordEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldPassword, v))
|
|
}
|
|
|
|
// PasswordContainsFold applies the ContainsFold predicate on the "password" field.
|
|
func PasswordContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldPassword, v))
|
|
}
|
|
|
|
// NameEQ applies the EQ predicate on the "name" field.
|
|
func NameEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldName, v))
|
|
}
|
|
|
|
// NameNEQ applies the NEQ predicate on the "name" field.
|
|
func NameNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldName, v))
|
|
}
|
|
|
|
// NameIn applies the In predicate on the "name" field.
|
|
func NameIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameNotIn applies the NotIn predicate on the "name" field.
|
|
func NameNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldName, vs...))
|
|
}
|
|
|
|
// NameGT applies the GT predicate on the "name" field.
|
|
func NameGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldName, v))
|
|
}
|
|
|
|
// NameGTE applies the GTE predicate on the "name" field.
|
|
func NameGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldName, v))
|
|
}
|
|
|
|
// NameLT applies the LT predicate on the "name" field.
|
|
func NameLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldName, v))
|
|
}
|
|
|
|
// NameLTE applies the LTE predicate on the "name" field.
|
|
func NameLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldName, v))
|
|
}
|
|
|
|
// NameContains applies the Contains predicate on the "name" field.
|
|
func NameContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldName, v))
|
|
}
|
|
|
|
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
|
|
func NameHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldName, v))
|
|
}
|
|
|
|
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
|
|
func NameHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldName, v))
|
|
}
|
|
|
|
// NameEqualFold applies the EqualFold predicate on the "name" field.
|
|
func NameEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldName, v))
|
|
}
|
|
|
|
// NameContainsFold applies the ContainsFold predicate on the "name" field.
|
|
func NameContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldName, v))
|
|
}
|
|
|
|
// RoleIdEQ applies the EQ predicate on the "roleId" field.
|
|
func RoleIdEQ(v int) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldRoleId, v))
|
|
}
|
|
|
|
// RoleIdNEQ applies the NEQ predicate on the "roleId" field.
|
|
func RoleIdNEQ(v int) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldRoleId, v))
|
|
}
|
|
|
|
// RoleIdIn applies the In predicate on the "roleId" field.
|
|
func RoleIdIn(vs ...int) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldRoleId, vs...))
|
|
}
|
|
|
|
// RoleIdNotIn applies the NotIn predicate on the "roleId" field.
|
|
func RoleIdNotIn(vs ...int) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldRoleId, vs...))
|
|
}
|
|
|
|
// RoleIdGT applies the GT predicate on the "roleId" field.
|
|
func RoleIdGT(v int) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldRoleId, v))
|
|
}
|
|
|
|
// RoleIdGTE applies the GTE predicate on the "roleId" field.
|
|
func RoleIdGTE(v int) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldRoleId, v))
|
|
}
|
|
|
|
// RoleIdLT applies the LT predicate on the "roleId" field.
|
|
func RoleIdLT(v int) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldRoleId, v))
|
|
}
|
|
|
|
// RoleIdLTE applies the LTE predicate on the "roleId" field.
|
|
func RoleIdLTE(v int) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldRoleId, v))
|
|
}
|
|
|
|
// RoleIdIsNil applies the IsNil predicate on the "roleId" field.
|
|
func RoleIdIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldRoleId))
|
|
}
|
|
|
|
// RoleIdNotNil applies the NotNil predicate on the "roleId" field.
|
|
func RoleIdNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldRoleId))
|
|
}
|
|
|
|
// CanLoginWorkstationEQ applies the EQ predicate on the "canLoginWorkstation" field.
|
|
func CanLoginWorkstationEQ(v bool) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldCanLoginWorkstation, v))
|
|
}
|
|
|
|
// CanLoginWorkstationNEQ applies the NEQ predicate on the "canLoginWorkstation" field.
|
|
func CanLoginWorkstationNEQ(v bool) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldCanLoginWorkstation, v))
|
|
}
|
|
|
|
// WorkstationPasswordEQ applies the EQ predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordNEQ applies the NEQ predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordIn applies the In predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldWorkstationPassword, vs...))
|
|
}
|
|
|
|
// WorkstationPasswordNotIn applies the NotIn predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldWorkstationPassword, vs...))
|
|
}
|
|
|
|
// WorkstationPasswordGT applies the GT predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordGTE applies the GTE predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordLT applies the LT predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordLTE applies the LTE predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordContains applies the Contains predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordHasPrefix applies the HasPrefix predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordHasSuffix applies the HasSuffix predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordIsNil applies the IsNil predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldWorkstationPassword))
|
|
}
|
|
|
|
// WorkstationPasswordNotNil applies the NotNil predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldWorkstationPassword))
|
|
}
|
|
|
|
// WorkstationPasswordEqualFold applies the EqualFold predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// WorkstationPasswordContainsFold applies the ContainsFold predicate on the "workstationPassword" field.
|
|
func WorkstationPasswordContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldWorkstationPassword, v))
|
|
}
|
|
|
|
// StatusEQ applies the EQ predicate on the "status" field.
|
|
func StatusEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusNEQ applies the NEQ predicate on the "status" field.
|
|
func StatusNEQ(v string) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldStatus, v))
|
|
}
|
|
|
|
// StatusIn applies the In predicate on the "status" field.
|
|
func StatusIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusNotIn applies the NotIn predicate on the "status" field.
|
|
func StatusNotIn(vs ...string) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldStatus, vs...))
|
|
}
|
|
|
|
// StatusGT applies the GT predicate on the "status" field.
|
|
func StatusGT(v string) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusGTE applies the GTE predicate on the "status" field.
|
|
func StatusGTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLT applies the LT predicate on the "status" field.
|
|
func StatusLT(v string) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldStatus, v))
|
|
}
|
|
|
|
// StatusLTE applies the LTE predicate on the "status" field.
|
|
func StatusLTE(v string) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldStatus, v))
|
|
}
|
|
|
|
// StatusContains applies the Contains predicate on the "status" field.
|
|
func StatusContains(v string) predicate.User {
|
|
return predicate.User(sql.FieldContains(FieldStatus, v))
|
|
}
|
|
|
|
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
|
|
func StatusHasPrefix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasPrefix(FieldStatus, v))
|
|
}
|
|
|
|
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
|
|
func StatusHasSuffix(v string) predicate.User {
|
|
return predicate.User(sql.FieldHasSuffix(FieldStatus, v))
|
|
}
|
|
|
|
// StatusEqualFold applies the EqualFold predicate on the "status" field.
|
|
func StatusEqualFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldEqualFold(FieldStatus, v))
|
|
}
|
|
|
|
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
|
|
func StatusContainsFold(v string) predicate.User {
|
|
return predicate.User(sql.FieldContainsFold(FieldStatus, v))
|
|
}
|
|
|
|
// LastLoginAtEQ applies the EQ predicate on the "lastLoginAt" field.
|
|
func LastLoginAtEQ(v int64) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldLastLoginAt, v))
|
|
}
|
|
|
|
// LastLoginAtNEQ applies the NEQ predicate on the "lastLoginAt" field.
|
|
func LastLoginAtNEQ(v int64) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldLastLoginAt, v))
|
|
}
|
|
|
|
// LastLoginAtIn applies the In predicate on the "lastLoginAt" field.
|
|
func LastLoginAtIn(vs ...int64) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldLastLoginAt, vs...))
|
|
}
|
|
|
|
// LastLoginAtNotIn applies the NotIn predicate on the "lastLoginAt" field.
|
|
func LastLoginAtNotIn(vs ...int64) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldLastLoginAt, vs...))
|
|
}
|
|
|
|
// LastLoginAtGT applies the GT predicate on the "lastLoginAt" field.
|
|
func LastLoginAtGT(v int64) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldLastLoginAt, v))
|
|
}
|
|
|
|
// LastLoginAtGTE applies the GTE predicate on the "lastLoginAt" field.
|
|
func LastLoginAtGTE(v int64) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldLastLoginAt, v))
|
|
}
|
|
|
|
// LastLoginAtLT applies the LT predicate on the "lastLoginAt" field.
|
|
func LastLoginAtLT(v int64) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldLastLoginAt, v))
|
|
}
|
|
|
|
// LastLoginAtLTE applies the LTE predicate on the "lastLoginAt" field.
|
|
func LastLoginAtLTE(v int64) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldLastLoginAt, v))
|
|
}
|
|
|
|
// LastLoginAtIsNil applies the IsNil predicate on the "lastLoginAt" field.
|
|
func LastLoginAtIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldLastLoginAt))
|
|
}
|
|
|
|
// LastLoginAtNotNil applies the NotNil predicate on the "lastLoginAt" field.
|
|
func LastLoginAtNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldLastLoginAt))
|
|
}
|
|
|
|
// CreatedAtEQ applies the EQ predicate on the "createdAt" field.
|
|
func CreatedAtEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtNEQ applies the NEQ predicate on the "createdAt" field.
|
|
func CreatedAtNEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtIn applies the In predicate on the "createdAt" field.
|
|
func CreatedAtIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtNotIn applies the NotIn predicate on the "createdAt" field.
|
|
func CreatedAtNotIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldCreatedAt, vs...))
|
|
}
|
|
|
|
// CreatedAtGT applies the GT predicate on the "createdAt" field.
|
|
func CreatedAtGT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtGTE applies the GTE predicate on the "createdAt" field.
|
|
func CreatedAtGTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLT applies the LT predicate on the "createdAt" field.
|
|
func CreatedAtLT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldCreatedAt, v))
|
|
}
|
|
|
|
// CreatedAtLTE applies the LTE predicate on the "createdAt" field.
|
|
func CreatedAtLTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldCreatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtEQ applies the EQ predicate on the "updatedAt" field.
|
|
func UpdatedAtEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtNEQ applies the NEQ predicate on the "updatedAt" field.
|
|
func UpdatedAtNEQ(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNEQ(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIn applies the In predicate on the "updatedAt" field.
|
|
func UpdatedAtIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.
|
|
func UpdatedAtNotIn(vs ...time.Time) predicate.User {
|
|
return predicate.User(sql.FieldNotIn(FieldUpdatedAt, vs...))
|
|
}
|
|
|
|
// UpdatedAtGT applies the GT predicate on the "updatedAt" field.
|
|
func UpdatedAtGT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtGTE applies the GTE predicate on the "updatedAt" field.
|
|
func UpdatedAtGTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldGTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLT applies the LT predicate on the "updatedAt" field.
|
|
func UpdatedAtLT(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLT(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtLTE applies the LTE predicate on the "updatedAt" field.
|
|
func UpdatedAtLTE(v time.Time) predicate.User {
|
|
return predicate.User(sql.FieldLTE(FieldUpdatedAt, v))
|
|
}
|
|
|
|
// UpdatedAtIsNil applies the IsNil predicate on the "updatedAt" field.
|
|
func UpdatedAtIsNil() predicate.User {
|
|
return predicate.User(sql.FieldIsNull(FieldUpdatedAt))
|
|
}
|
|
|
|
// UpdatedAtNotNil applies the NotNil predicate on the "updatedAt" field.
|
|
func UpdatedAtNotNil() predicate.User {
|
|
return predicate.User(sql.FieldNotNull(FieldUpdatedAt))
|
|
}
|
|
|
|
// And groups predicates with the AND operator between them.
|
|
func And(predicates ...predicate.User) predicate.User {
|
|
return predicate.User(sql.AndPredicates(predicates...))
|
|
}
|
|
|
|
// Or groups predicates with the OR operator between them.
|
|
func Or(predicates ...predicate.User) predicate.User {
|
|
return predicate.User(sql.OrPredicates(predicates...))
|
|
}
|
|
|
|
// Not applies the not operator on the given predicate.
|
|
func Not(p predicate.User) predicate.User {
|
|
return predicate.User(sql.NotPredicates(p))
|
|
}
|