Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.DictData) predicate.DictData
- func CreatedAt(v time.Time) predicate.DictData
- func CreatedAtEQ(v time.Time) predicate.DictData
- func CreatedAtGT(v time.Time) predicate.DictData
- func CreatedAtGTE(v time.Time) predicate.DictData
- func CreatedAtIn(vs ...time.Time) predicate.DictData
- func CreatedAtLT(v time.Time) predicate.DictData
- func CreatedAtLTE(v time.Time) predicate.DictData
- func CreatedAtNEQ(v time.Time) predicate.DictData
- func CreatedAtNotIn(vs ...time.Time) predicate.DictData
- func CreatedBy(v int64) predicate.DictData
- func CreatedByEQ(v int64) predicate.DictData
- func CreatedByGT(v int64) predicate.DictData
- func CreatedByGTE(v int64) predicate.DictData
- func CreatedByIn(vs ...int64) predicate.DictData
- func CreatedByLT(v int64) predicate.DictData
- func CreatedByLTE(v int64) predicate.DictData
- func CreatedByNEQ(v int64) predicate.DictData
- func CreatedByNotIn(vs ...int64) predicate.DictData
- func DictTypeID(v int64) predicate.DictData
- func DictTypeIDEQ(v int64) predicate.DictData
- func DictTypeIDGT(v int64) predicate.DictData
- func DictTypeIDGTE(v int64) predicate.DictData
- func DictTypeIDIn(vs ...int64) predicate.DictData
- func DictTypeIDLT(v int64) predicate.DictData
- func DictTypeIDLTE(v int64) predicate.DictData
- func DictTypeIDNEQ(v int64) predicate.DictData
- func DictTypeIDNotIn(vs ...int64) predicate.DictData
- func ID(id int64) predicate.DictData
- func IDEQ(id int64) predicate.DictData
- func IDGT(id int64) predicate.DictData
- func IDGTE(id int64) predicate.DictData
- func IDIn(ids ...int64) predicate.DictData
- func IDLT(id int64) predicate.DictData
- func IDLTE(id int64) predicate.DictData
- func IDNEQ(id int64) predicate.DictData
- func IDNotIn(ids ...int64) predicate.DictData
- func IsDefault(v int8) predicate.DictData
- func IsDefaultEQ(v int8) predicate.DictData
- func IsDefaultGT(v int8) predicate.DictData
- func IsDefaultGTE(v int8) predicate.DictData
- func IsDefaultIn(vs ...int8) predicate.DictData
- func IsDefaultLT(v int8) predicate.DictData
- func IsDefaultLTE(v int8) predicate.DictData
- func IsDefaultNEQ(v int8) predicate.DictData
- func IsDefaultNotIn(vs ...int8) predicate.DictData
- func LabelContains(v string) predicate.DictData
- func LabelContainsFold(v string) predicate.DictData
- func LabelEQ(v string) predicate.DictData
- func LabelEqualFold(v string) predicate.DictData
- func LabelGT(v string) predicate.DictData
- func LabelGTE(v string) predicate.DictData
- func LabelHasPrefix(v string) predicate.DictData
- func LabelHasSuffix(v string) predicate.DictData
- func LabelIn(vs ...string) predicate.DictData
- func LabelLT(v string) predicate.DictData
- func LabelLTE(v string) predicate.DictData
- func LabelNEQ(v string) predicate.DictData
- func LabelNotIn(vs ...string) predicate.DictData
- func Not(p predicate.DictData) predicate.DictData
- func Or(predicates ...predicate.DictData) predicate.DictData
- func Remark(v string) predicate.DictData
- func RemarkContains(v string) predicate.DictData
- func RemarkContainsFold(v string) predicate.DictData
- func RemarkEQ(v string) predicate.DictData
- func RemarkEqualFold(v string) predicate.DictData
- func RemarkGT(v string) predicate.DictData
- func RemarkGTE(v string) predicate.DictData
- func RemarkHasPrefix(v string) predicate.DictData
- func RemarkHasSuffix(v string) predicate.DictData
- func RemarkIn(vs ...string) predicate.DictData
- func RemarkLT(v string) predicate.DictData
- func RemarkLTE(v string) predicate.DictData
- func RemarkNEQ(v string) predicate.DictData
- func RemarkNotIn(vs ...string) predicate.DictData
- func Sort(v int8) predicate.DictData
- func SortEQ(v int8) predicate.DictData
- func SortGT(v int8) predicate.DictData
- func SortGTE(v int8) predicate.DictData
- func SortIn(vs ...int8) predicate.DictData
- func SortLT(v int8) predicate.DictData
- func SortLTE(v int8) predicate.DictData
- func SortNEQ(v int8) predicate.DictData
- func SortNotIn(vs ...int8) predicate.DictData
- func Status(v int8) predicate.DictData
- func StatusEQ(v int8) predicate.DictData
- func StatusGT(v int8) predicate.DictData
- func StatusGTE(v int8) predicate.DictData
- func StatusIn(vs ...int8) predicate.DictData
- func StatusLT(v int8) predicate.DictData
- func StatusLTE(v int8) predicate.DictData
- func StatusNEQ(v int8) predicate.DictData
- func StatusNotIn(vs ...int8) predicate.DictData
- func UpdatedAt(v time.Time) predicate.DictData
- func UpdatedAtEQ(v time.Time) predicate.DictData
- func UpdatedAtGT(v time.Time) predicate.DictData
- func UpdatedAtGTE(v time.Time) predicate.DictData
- func UpdatedAtIn(vs ...time.Time) predicate.DictData
- func UpdatedAtLT(v time.Time) predicate.DictData
- func UpdatedAtLTE(v time.Time) predicate.DictData
- func UpdatedAtNEQ(v time.Time) predicate.DictData
- func UpdatedAtNotIn(vs ...time.Time) predicate.DictData
- func UpdatedBy(v int64) predicate.DictData
- func UpdatedByEQ(v int64) predicate.DictData
- func UpdatedByGT(v int64) predicate.DictData
- func UpdatedByGTE(v int64) predicate.DictData
- func UpdatedByIn(vs ...int64) predicate.DictData
- func UpdatedByLT(v int64) predicate.DictData
- func UpdatedByLTE(v int64) predicate.DictData
- func UpdatedByNEQ(v int64) predicate.DictData
- func UpdatedByNotIn(vs ...int64) predicate.DictData
- func ValidColumn(column string) bool
- func Value(v string) predicate.DictData
- func ValueContains(v string) predicate.DictData
- func ValueContainsFold(v string) predicate.DictData
- func ValueEQ(v string) predicate.DictData
- func ValueEqualFold(v string) predicate.DictData
- func ValueGT(v string) predicate.DictData
- func ValueGTE(v string) predicate.DictData
- func ValueHasPrefix(v string) predicate.DictData
- func ValueHasSuffix(v string) predicate.DictData
- func ValueIn(vs ...string) predicate.DictData
- func ValueLT(v string) predicate.DictData
- func ValueLTE(v string) predicate.DictData
- func ValueNEQ(v string) predicate.DictData
- func ValueNotIn(vs ...string) predicate.DictData
Constants ¶
const ( // Label holds the string label denoting the dictdata type in the database. Label = "dict_data" // 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" // FieldDictTypeID holds the string denoting the dict_type_id field in the database. FieldDictTypeID = "dict_type_id" // FieldLabel holds the string denoting the label field in the database. FieldLabel = "label" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // 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" // FieldIsDefault holds the string denoting the is_default field in the database. FieldIsDefault = "is_default" // Table holds the table name of the dictdata in the database. Table = "sys_dict_data" )
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 // DefaultDictTypeID holds the default value on creation for the "dict_type_id" field. DefaultDictTypeID int64 // DefaultLabel holds the default value on creation for the "label" field. DefaultLabel string // DefaultValue holds the default value on creation for the "value" field. DefaultValue 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 // DefaultIsDefault holds the default value on creation for the "is_default" field. DefaultIsDefault int8 )
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, FieldDictTypeID, FieldLabel, FieldValue, FieldSort, FieldStatus, FieldRemark, FieldIsDefault, }
Columns holds all SQL columns for dictdata 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 DictTypeID ¶
DictTypeID applies equality check predicate on the "dict_type_id" field. It's identical to DictTypeIDEQ.
func DictTypeIDEQ ¶
DictTypeIDEQ applies the EQ predicate on the "dict_type_id" field.
func DictTypeIDGT ¶
DictTypeIDGT applies the GT predicate on the "dict_type_id" field.
func DictTypeIDGTE ¶
DictTypeIDGTE applies the GTE predicate on the "dict_type_id" field.
func DictTypeIDIn ¶
DictTypeIDIn applies the In predicate on the "dict_type_id" field.
func DictTypeIDLT ¶
DictTypeIDLT applies the LT predicate on the "dict_type_id" field.
func DictTypeIDLTE ¶
DictTypeIDLTE applies the LTE predicate on the "dict_type_id" field.
func DictTypeIDNEQ ¶
DictTypeIDNEQ applies the NEQ predicate on the "dict_type_id" field.
func DictTypeIDNotIn ¶
DictTypeIDNotIn applies the NotIn predicate on the "dict_type_id" field.
func IsDefault ¶
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultGT ¶
IsDefaultGT applies the GT predicate on the "is_default" field.
func IsDefaultGTE ¶
IsDefaultGTE applies the GTE predicate on the "is_default" field.
func IsDefaultIn ¶
IsDefaultIn applies the In predicate on the "is_default" field.
func IsDefaultLT ¶
IsDefaultLT applies the LT predicate on the "is_default" field.
func IsDefaultLTE ¶
IsDefaultLTE applies the LTE predicate on the "is_default" field.
func IsDefaultNEQ ¶
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func IsDefaultNotIn ¶
IsDefaultNotIn applies the NotIn predicate on the "is_default" field.
func LabelContains ¶
LabelContains applies the Contains predicate on the "label" field.
func LabelContainsFold ¶
LabelContainsFold applies the ContainsFold predicate on the "label" field.
func LabelEqualFold ¶
LabelEqualFold applies the EqualFold predicate on the "label" field.
func LabelHasPrefix ¶
LabelHasPrefix applies the HasPrefix predicate on the "label" field.
func LabelHasSuffix ¶
LabelHasSuffix applies the HasSuffix predicate on the "label" field.
func LabelNotIn ¶
LabelNotIn applies the NotIn predicate on the "label" 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).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
This section is empty.