Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Role) predicate.Role
- func CreatedAt(v time.Time) predicate.Role
- func CreatedAtEQ(v time.Time) predicate.Role
- func CreatedAtGT(v time.Time) predicate.Role
- func CreatedAtGTE(v time.Time) predicate.Role
- func CreatedAtIn(vs ...time.Time) predicate.Role
- func CreatedAtLT(v time.Time) predicate.Role
- func CreatedAtLTE(v time.Time) predicate.Role
- func CreatedAtNEQ(v time.Time) predicate.Role
- func CreatedAtNotIn(vs ...time.Time) predicate.Role
- func CreatedBy(v int64) predicate.Role
- func CreatedByEQ(v int64) predicate.Role
- func CreatedByGT(v int64) predicate.Role
- func CreatedByGTE(v int64) predicate.Role
- func CreatedByIn(vs ...int64) predicate.Role
- func CreatedByLT(v int64) predicate.Role
- func CreatedByLTE(v int64) predicate.Role
- func CreatedByNEQ(v int64) predicate.Role
- func CreatedByNotIn(vs ...int64) predicate.Role
- func ID(id int64) predicate.Role
- func IDEQ(id int64) predicate.Role
- func IDGT(id int64) predicate.Role
- func IDGTE(id int64) predicate.Role
- func IDIn(ids ...int64) predicate.Role
- func IDLT(id int64) predicate.Role
- func IDLTE(id int64) predicate.Role
- func IDNEQ(id int64) predicate.Role
- func IDNotIn(ids ...int64) predicate.Role
- func Name(v string) predicate.Role
- func NameContains(v string) predicate.Role
- func NameContainsFold(v string) predicate.Role
- func NameEQ(v string) predicate.Role
- func NameEqualFold(v string) predicate.Role
- func NameGT(v string) predicate.Role
- func NameGTE(v string) predicate.Role
- func NameHasPrefix(v string) predicate.Role
- func NameHasSuffix(v string) predicate.Role
- func NameIn(vs ...string) predicate.Role
- func NameLT(v string) predicate.Role
- func NameLTE(v string) predicate.Role
- func NameNEQ(v string) predicate.Role
- func NameNotIn(vs ...string) predicate.Role
- func Not(p predicate.Role) predicate.Role
- func Or(predicates ...predicate.Role) predicate.Role
- func Remark(v string) predicate.Role
- func RemarkContains(v string) predicate.Role
- func RemarkContainsFold(v string) predicate.Role
- func RemarkEQ(v string) predicate.Role
- func RemarkEqualFold(v string) predicate.Role
- func RemarkGT(v string) predicate.Role
- func RemarkGTE(v string) predicate.Role
- func RemarkHasPrefix(v string) predicate.Role
- func RemarkHasSuffix(v string) predicate.Role
- func RemarkIn(vs ...string) predicate.Role
- func RemarkLT(v string) predicate.Role
- func RemarkLTE(v string) predicate.Role
- func RemarkNEQ(v string) predicate.Role
- func RemarkNotIn(vs ...string) predicate.Role
- func Sort(v int8) predicate.Role
- func SortEQ(v int8) predicate.Role
- func SortGT(v int8) predicate.Role
- func SortGTE(v int8) predicate.Role
- func SortIn(vs ...int8) predicate.Role
- func SortLT(v int8) predicate.Role
- func SortLTE(v int8) predicate.Role
- func SortNEQ(v int8) predicate.Role
- func SortNotIn(vs ...int8) predicate.Role
- func Status(v int8) predicate.Role
- func StatusEQ(v int8) predicate.Role
- func StatusGT(v int8) predicate.Role
- func StatusGTE(v int8) predicate.Role
- func StatusIn(vs ...int8) predicate.Role
- func StatusLT(v int8) predicate.Role
- func StatusLTE(v int8) predicate.Role
- func StatusNEQ(v int8) predicate.Role
- func StatusNotIn(vs ...int8) predicate.Role
- func UpdatedAt(v time.Time) predicate.Role
- func UpdatedAtEQ(v time.Time) predicate.Role
- func UpdatedAtGT(v time.Time) predicate.Role
- func UpdatedAtGTE(v time.Time) predicate.Role
- func UpdatedAtIn(vs ...time.Time) predicate.Role
- func UpdatedAtLT(v time.Time) predicate.Role
- func UpdatedAtLTE(v time.Time) predicate.Role
- func UpdatedAtNEQ(v time.Time) predicate.Role
- func UpdatedAtNotIn(vs ...time.Time) predicate.Role
- func UpdatedBy(v int64) predicate.Role
- func UpdatedByEQ(v int64) predicate.Role
- func UpdatedByGT(v int64) predicate.Role
- func UpdatedByGTE(v int64) predicate.Role
- func UpdatedByIn(vs ...int64) predicate.Role
- func UpdatedByLT(v int64) predicate.Role
- func UpdatedByLTE(v int64) predicate.Role
- func UpdatedByNEQ(v int64) predicate.Role
- func UpdatedByNotIn(vs ...int64) predicate.Role
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the role type in the database. Label = "role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // 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" // Table holds the table name of the role in the database. Table = "sys_role" )
Variables ¶
var ( Hooks [1]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultCreatedBy holds the default value on creation for the "created_by" field. DefaultCreatedBy int64 // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultUpdatedBy holds the default value on creation for the "updated_by" field. DefaultUpdatedBy int64 // DefaultName holds the default value on creation for the "name" field. DefaultName string // DefaultSort holds the default value on creation for the "sort" field. DefaultSort int8 // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus int8 // DefaultRemark holds the default value on creation for the "remark" field. DefaultRemark string )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/lalifeier/vvgo-mall/app/shop/admin/internal/data/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldCreatedBy, FieldUpdatedAt, FieldUpdatedBy, FieldName, FieldSort, FieldStatus, FieldRemark, }
Columns holds all SQL columns for role fields.
var ForeignKeys = []string{
"user_roles",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "sys_role" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Remark ¶
Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func RemarkContains ¶
RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContainsFold ¶
RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkEqualFold ¶
RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkHasPrefix ¶
RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasSuffix ¶
RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkNotIn ¶
RemarkNotIn applies the NotIn predicate on the "remark" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.