Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Api) predicate.Api
- func CreatedAt(v time.Time) predicate.Api
- func CreatedAtEQ(v time.Time) predicate.Api
- func CreatedAtGT(v time.Time) predicate.Api
- func CreatedAtGTE(v time.Time) predicate.Api
- func CreatedAtIn(vs ...time.Time) predicate.Api
- func CreatedAtLT(v time.Time) predicate.Api
- func CreatedAtLTE(v time.Time) predicate.Api
- func CreatedAtNEQ(v time.Time) predicate.Api
- func CreatedAtNotIn(vs ...time.Time) predicate.Api
- func CreatedBy(v int64) predicate.Api
- func CreatedByEQ(v int64) predicate.Api
- func CreatedByGT(v int64) predicate.Api
- func CreatedByGTE(v int64) predicate.Api
- func CreatedByIn(vs ...int64) predicate.Api
- func CreatedByLT(v int64) predicate.Api
- func CreatedByLTE(v int64) predicate.Api
- func CreatedByNEQ(v int64) predicate.Api
- func CreatedByNotIn(vs ...int64) predicate.Api
- func Desc(v string) predicate.Api
- func DescContains(v string) predicate.Api
- func DescContainsFold(v string) predicate.Api
- func DescEQ(v string) predicate.Api
- func DescEqualFold(v string) predicate.Api
- func DescGT(v string) predicate.Api
- func DescGTE(v string) predicate.Api
- func DescHasPrefix(v string) predicate.Api
- func DescHasSuffix(v string) predicate.Api
- func DescIn(vs ...string) predicate.Api
- func DescLT(v string) predicate.Api
- func DescLTE(v string) predicate.Api
- func DescNEQ(v string) predicate.Api
- func DescNotIn(vs ...string) predicate.Api
- func Group(v string) predicate.Api
- func GroupContains(v string) predicate.Api
- func GroupContainsFold(v string) predicate.Api
- func GroupEQ(v string) predicate.Api
- func GroupEqualFold(v string) predicate.Api
- func GroupGT(v string) predicate.Api
- func GroupGTE(v string) predicate.Api
- func GroupHasPrefix(v string) predicate.Api
- func GroupHasSuffix(v string) predicate.Api
- func GroupIn(vs ...string) predicate.Api
- func GroupLT(v string) predicate.Api
- func GroupLTE(v string) predicate.Api
- func GroupNEQ(v string) predicate.Api
- func GroupNotIn(vs ...string) predicate.Api
- func ID(id int64) predicate.Api
- func IDEQ(id int64) predicate.Api
- func IDGT(id int64) predicate.Api
- func IDGTE(id int64) predicate.Api
- func IDIn(ids ...int64) predicate.Api
- func IDLT(id int64) predicate.Api
- func IDLTE(id int64) predicate.Api
- func IDNEQ(id int64) predicate.Api
- func IDNotIn(ids ...int64) predicate.Api
- func Method(v string) predicate.Api
- func MethodContains(v string) predicate.Api
- func MethodContainsFold(v string) predicate.Api
- func MethodEQ(v string) predicate.Api
- func MethodEqualFold(v string) predicate.Api
- func MethodGT(v string) predicate.Api
- func MethodGTE(v string) predicate.Api
- func MethodHasPrefix(v string) predicate.Api
- func MethodHasSuffix(v string) predicate.Api
- func MethodIn(vs ...string) predicate.Api
- func MethodLT(v string) predicate.Api
- func MethodLTE(v string) predicate.Api
- func MethodNEQ(v string) predicate.Api
- func MethodNotIn(vs ...string) predicate.Api
- func Name(v string) predicate.Api
- func NameContains(v string) predicate.Api
- func NameContainsFold(v string) predicate.Api
- func NameEQ(v string) predicate.Api
- func NameEqualFold(v string) predicate.Api
- func NameGT(v string) predicate.Api
- func NameGTE(v string) predicate.Api
- func NameHasPrefix(v string) predicate.Api
- func NameHasSuffix(v string) predicate.Api
- func NameIn(vs ...string) predicate.Api
- func NameLT(v string) predicate.Api
- func NameLTE(v string) predicate.Api
- func NameNEQ(v string) predicate.Api
- func NameNotIn(vs ...string) predicate.Api
- func Not(p predicate.Api) predicate.Api
- func Or(predicates ...predicate.Api) predicate.Api
- func Path(v string) predicate.Api
- func PathContains(v string) predicate.Api
- func PathContainsFold(v string) predicate.Api
- func PathEQ(v string) predicate.Api
- func PathEqualFold(v string) predicate.Api
- func PathGT(v string) predicate.Api
- func PathGTE(v string) predicate.Api
- func PathHasPrefix(v string) predicate.Api
- func PathHasSuffix(v string) predicate.Api
- func PathIn(vs ...string) predicate.Api
- func PathLT(v string) predicate.Api
- func PathLTE(v string) predicate.Api
- func PathNEQ(v string) predicate.Api
- func PathNotIn(vs ...string) predicate.Api
- func Permission(v string) predicate.Api
- func PermissionContains(v string) predicate.Api
- func PermissionContainsFold(v string) predicate.Api
- func PermissionEQ(v string) predicate.Api
- func PermissionEqualFold(v string) predicate.Api
- func PermissionGT(v string) predicate.Api
- func PermissionGTE(v string) predicate.Api
- func PermissionHasPrefix(v string) predicate.Api
- func PermissionHasSuffix(v string) predicate.Api
- func PermissionIn(vs ...string) predicate.Api
- func PermissionLT(v string) predicate.Api
- func PermissionLTE(v string) predicate.Api
- func PermissionNEQ(v string) predicate.Api
- func PermissionNotIn(vs ...string) predicate.Api
- func Status(v uint8) predicate.Api
- func StatusEQ(v uint8) predicate.Api
- func StatusGT(v uint8) predicate.Api
- func StatusGTE(v uint8) predicate.Api
- func StatusIn(vs ...uint8) predicate.Api
- func StatusLT(v uint8) predicate.Api
- func StatusLTE(v uint8) predicate.Api
- func StatusNEQ(v uint8) predicate.Api
- func StatusNotIn(vs ...uint8) predicate.Api
- func UpdatedAt(v time.Time) predicate.Api
- func UpdatedAtEQ(v time.Time) predicate.Api
- func UpdatedAtGT(v time.Time) predicate.Api
- func UpdatedAtGTE(v time.Time) predicate.Api
- func UpdatedAtIn(vs ...time.Time) predicate.Api
- func UpdatedAtLT(v time.Time) predicate.Api
- func UpdatedAtLTE(v time.Time) predicate.Api
- func UpdatedAtNEQ(v time.Time) predicate.Api
- func UpdatedAtNotIn(vs ...time.Time) predicate.Api
- func UpdatedBy(v int64) predicate.Api
- func UpdatedByEQ(v int64) predicate.Api
- func UpdatedByGT(v int64) predicate.Api
- func UpdatedByGTE(v int64) predicate.Api
- func UpdatedByIn(vs ...int64) predicate.Api
- func UpdatedByLT(v int64) predicate.Api
- func UpdatedByLTE(v int64) predicate.Api
- func UpdatedByNEQ(v int64) predicate.Api
- func UpdatedByNotIn(vs ...int64) predicate.Api
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the api type in the database. Label = "api" // 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" // FieldGroup holds the string denoting the group field in the database. FieldGroup = "group" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldMethod holds the string denoting the method field in the database. FieldMethod = "method" // FieldDesc holds the string denoting the desc field in the database. FieldDesc = "desc" // FieldPermission holds the string denoting the permission field in the database. FieldPermission = "permission" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // Table holds the table name of the api in the database. Table = "sys_api" )
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 // DefaultGroup holds the default value on creation for the "group" field. DefaultGroup string // DefaultName holds the default value on creation for the "name" field. DefaultName string // DefaultPath holds the default value on creation for the "path" field. DefaultPath string // DefaultMethod holds the default value on creation for the "method" field. DefaultMethod string // DefaultDesc holds the default value on creation for the "desc" field. DefaultDesc string // DefaultPermission holds the default value on creation for the "permission" field. DefaultPermission string // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus uint8 )
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, FieldGroup, FieldName, FieldPath, FieldMethod, FieldDesc, FieldPermission, FieldStatus, }
Columns holds all SQL columns for api fields.
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 DescContains ¶
DescContains applies the Contains predicate on the "desc" field.
func DescContainsFold ¶
DescContainsFold applies the ContainsFold predicate on the "desc" field.
func DescEqualFold ¶
DescEqualFold applies the EqualFold predicate on the "desc" field.
func DescHasPrefix ¶
DescHasPrefix applies the HasPrefix predicate on the "desc" field.
func DescHasSuffix ¶
DescHasSuffix applies the HasSuffix predicate on the "desc" field.
func Group ¶
Group applies equality check predicate on the "group" field. It's identical to GroupEQ.
func GroupContains ¶
GroupContains applies the Contains predicate on the "group" field.
func GroupContainsFold ¶
GroupContainsFold applies the ContainsFold predicate on the "group" field.
func GroupEqualFold ¶
GroupEqualFold applies the EqualFold predicate on the "group" field.
func GroupHasPrefix ¶
GroupHasPrefix applies the HasPrefix predicate on the "group" field.
func GroupHasSuffix ¶
GroupHasSuffix applies the HasSuffix predicate on the "group" field.
func GroupNotIn ¶
GroupNotIn applies the NotIn predicate on the "group" field.
func Method ¶
Method applies equality check predicate on the "method" field. It's identical to MethodEQ.
func MethodContains ¶
MethodContains applies the Contains predicate on the "method" field.
func MethodContainsFold ¶
MethodContainsFold applies the ContainsFold predicate on the "method" field.
func MethodEqualFold ¶
MethodEqualFold applies the EqualFold predicate on the "method" field.
func MethodHasPrefix ¶
MethodHasPrefix applies the HasPrefix predicate on the "method" field.
func MethodHasSuffix ¶
MethodHasSuffix applies the HasSuffix predicate on the "method" field.
func MethodNotIn ¶
MethodNotIn applies the NotIn predicate on the "method" 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 PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func Permission ¶
Permission applies equality check predicate on the "permission" field. It's identical to PermissionEQ.
func PermissionContains ¶
PermissionContains applies the Contains predicate on the "permission" field.
func PermissionContainsFold ¶
PermissionContainsFold applies the ContainsFold predicate on the "permission" field.
func PermissionEQ ¶
PermissionEQ applies the EQ predicate on the "permission" field.
func PermissionEqualFold ¶
PermissionEqualFold applies the EqualFold predicate on the "permission" field.
func PermissionGT ¶
PermissionGT applies the GT predicate on the "permission" field.
func PermissionGTE ¶
PermissionGTE applies the GTE predicate on the "permission" field.
func PermissionHasPrefix ¶
PermissionHasPrefix applies the HasPrefix predicate on the "permission" field.
func PermissionHasSuffix ¶
PermissionHasSuffix applies the HasSuffix predicate on the "permission" field.
func PermissionIn ¶
PermissionIn applies the In predicate on the "permission" field.
func PermissionLT ¶
PermissionLT applies the LT predicate on the "permission" field.
func PermissionLTE ¶
PermissionLTE applies the LTE predicate on the "permission" field.
func PermissionNEQ ¶
PermissionNEQ applies the NEQ predicate on the "permission" field.
func PermissionNotIn ¶
PermissionNotIn applies the NotIn predicate on the "permission" 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.