dictdata

package
v0.0.0-...-544bbf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2023 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"

Columns holds all SQL columns for dictdata fields.

Functions

func And

func And(predicates ...predicate.DictData) predicate.DictData

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.DictData

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.DictData

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.DictData

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.DictData

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.DictData

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.DictData

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.DictData

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.DictData

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.DictData

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int64) predicate.DictData

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int64) predicate.DictData

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int64) predicate.DictData

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int64) predicate.DictData

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int64) predicate.DictData

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int64) predicate.DictData

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int64) predicate.DictData

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.DictData

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int64) predicate.DictData

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func DictTypeID

func DictTypeID(v int64) predicate.DictData

DictTypeID applies equality check predicate on the "dict_type_id" field. It's identical to DictTypeIDEQ.

func DictTypeIDEQ

func DictTypeIDEQ(v int64) predicate.DictData

DictTypeIDEQ applies the EQ predicate on the "dict_type_id" field.

func DictTypeIDGT

func DictTypeIDGT(v int64) predicate.DictData

DictTypeIDGT applies the GT predicate on the "dict_type_id" field.

func DictTypeIDGTE

func DictTypeIDGTE(v int64) predicate.DictData

DictTypeIDGTE applies the GTE predicate on the "dict_type_id" field.

func DictTypeIDIn

func DictTypeIDIn(vs ...int64) predicate.DictData

DictTypeIDIn applies the In predicate on the "dict_type_id" field.

func DictTypeIDLT

func DictTypeIDLT(v int64) predicate.DictData

DictTypeIDLT applies the LT predicate on the "dict_type_id" field.

func DictTypeIDLTE

func DictTypeIDLTE(v int64) predicate.DictData

DictTypeIDLTE applies the LTE predicate on the "dict_type_id" field.

func DictTypeIDNEQ

func DictTypeIDNEQ(v int64) predicate.DictData

DictTypeIDNEQ applies the NEQ predicate on the "dict_type_id" field.

func DictTypeIDNotIn

func DictTypeIDNotIn(vs ...int64) predicate.DictData

DictTypeIDNotIn applies the NotIn predicate on the "dict_type_id" field.

func ID

func ID(id int64) predicate.DictData

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.DictData

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.DictData

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.DictData

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.DictData

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.DictData

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.DictData

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.DictData

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.DictData

IDNotIn applies the NotIn predicate on the ID field.

func IsDefault

func IsDefault(v int8) predicate.DictData

IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.

func IsDefaultEQ

func IsDefaultEQ(v int8) predicate.DictData

IsDefaultEQ applies the EQ predicate on the "is_default" field.

func IsDefaultGT

func IsDefaultGT(v int8) predicate.DictData

IsDefaultGT applies the GT predicate on the "is_default" field.

func IsDefaultGTE

func IsDefaultGTE(v int8) predicate.DictData

IsDefaultGTE applies the GTE predicate on the "is_default" field.

func IsDefaultIn

func IsDefaultIn(vs ...int8) predicate.DictData

IsDefaultIn applies the In predicate on the "is_default" field.

func IsDefaultLT

func IsDefaultLT(v int8) predicate.DictData

IsDefaultLT applies the LT predicate on the "is_default" field.

func IsDefaultLTE

func IsDefaultLTE(v int8) predicate.DictData

IsDefaultLTE applies the LTE predicate on the "is_default" field.

func IsDefaultNEQ

func IsDefaultNEQ(v int8) predicate.DictData

IsDefaultNEQ applies the NEQ predicate on the "is_default" field.

func IsDefaultNotIn

func IsDefaultNotIn(vs ...int8) predicate.DictData

IsDefaultNotIn applies the NotIn predicate on the "is_default" field.

func LabelContains

func LabelContains(v string) predicate.DictData

LabelContains applies the Contains predicate on the "label" field.

func LabelContainsFold

func LabelContainsFold(v string) predicate.DictData

LabelContainsFold applies the ContainsFold predicate on the "label" field.

func LabelEQ

func LabelEQ(v string) predicate.DictData

LabelEQ applies the EQ predicate on the "label" field.

func LabelEqualFold

func LabelEqualFold(v string) predicate.DictData

LabelEqualFold applies the EqualFold predicate on the "label" field.

func LabelGT

func LabelGT(v string) predicate.DictData

LabelGT applies the GT predicate on the "label" field.

func LabelGTE

func LabelGTE(v string) predicate.DictData

LabelGTE applies the GTE predicate on the "label" field.

func LabelHasPrefix

func LabelHasPrefix(v string) predicate.DictData

LabelHasPrefix applies the HasPrefix predicate on the "label" field.

func LabelHasSuffix

func LabelHasSuffix(v string) predicate.DictData

LabelHasSuffix applies the HasSuffix predicate on the "label" field.

func LabelIn

func LabelIn(vs ...string) predicate.DictData

LabelIn applies the In predicate on the "label" field.

func LabelLT

func LabelLT(v string) predicate.DictData

LabelLT applies the LT predicate on the "label" field.

func LabelLTE

func LabelLTE(v string) predicate.DictData

LabelLTE applies the LTE predicate on the "label" field.

func LabelNEQ

func LabelNEQ(v string) predicate.DictData

LabelNEQ applies the NEQ predicate on the "label" field.

func LabelNotIn

func LabelNotIn(vs ...string) predicate.DictData

LabelNotIn applies the NotIn predicate on the "label" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.DictData) predicate.DictData

Or groups predicates with the OR operator between them.

func Remark

func Remark(v string) predicate.DictData

Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.

func RemarkContains

func RemarkContains(v string) predicate.DictData

RemarkContains applies the Contains predicate on the "remark" field.

func RemarkContainsFold

func RemarkContainsFold(v string) predicate.DictData

RemarkContainsFold applies the ContainsFold predicate on the "remark" field.

func RemarkEQ

func RemarkEQ(v string) predicate.DictData

RemarkEQ applies the EQ predicate on the "remark" field.

func RemarkEqualFold

func RemarkEqualFold(v string) predicate.DictData

RemarkEqualFold applies the EqualFold predicate on the "remark" field.

func RemarkGT

func RemarkGT(v string) predicate.DictData

RemarkGT applies the GT predicate on the "remark" field.

func RemarkGTE

func RemarkGTE(v string) predicate.DictData

RemarkGTE applies the GTE predicate on the "remark" field.

func RemarkHasPrefix

func RemarkHasPrefix(v string) predicate.DictData

RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.

func RemarkHasSuffix

func RemarkHasSuffix(v string) predicate.DictData

RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.

func RemarkIn

func RemarkIn(vs ...string) predicate.DictData

RemarkIn applies the In predicate on the "remark" field.

func RemarkLT

func RemarkLT(v string) predicate.DictData

RemarkLT applies the LT predicate on the "remark" field.

func RemarkLTE

func RemarkLTE(v string) predicate.DictData

RemarkLTE applies the LTE predicate on the "remark" field.

func RemarkNEQ

func RemarkNEQ(v string) predicate.DictData

RemarkNEQ applies the NEQ predicate on the "remark" field.

func RemarkNotIn

func RemarkNotIn(vs ...string) predicate.DictData

RemarkNotIn applies the NotIn predicate on the "remark" field.

func Sort

func Sort(v int8) predicate.DictData

Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.

func SortEQ

func SortEQ(v int8) predicate.DictData

SortEQ applies the EQ predicate on the "sort" field.

func SortGT

func SortGT(v int8) predicate.DictData

SortGT applies the GT predicate on the "sort" field.

func SortGTE

func SortGTE(v int8) predicate.DictData

SortGTE applies the GTE predicate on the "sort" field.

func SortIn

func SortIn(vs ...int8) predicate.DictData

SortIn applies the In predicate on the "sort" field.

func SortLT

func SortLT(v int8) predicate.DictData

SortLT applies the LT predicate on the "sort" field.

func SortLTE

func SortLTE(v int8) predicate.DictData

SortLTE applies the LTE predicate on the "sort" field.

func SortNEQ

func SortNEQ(v int8) predicate.DictData

SortNEQ applies the NEQ predicate on the "sort" field.

func SortNotIn

func SortNotIn(vs ...int8) predicate.DictData

SortNotIn applies the NotIn predicate on the "sort" field.

func Status

func Status(v int8) predicate.DictData

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v int8) predicate.DictData

StatusEQ applies the EQ predicate on the "status" field.

func StatusGT

func StatusGT(v int8) predicate.DictData

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v int8) predicate.DictData

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...int8) predicate.DictData

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v int8) predicate.DictData

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v int8) predicate.DictData

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v int8) predicate.DictData

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...int8) predicate.DictData

StatusNotIn applies the NotIn predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.DictData

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.DictData

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.DictData

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.DictData

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.DictData

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.DictData

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.DictData

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.DictData

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.DictData

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int64) predicate.DictData

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.DictData

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int64) predicate.DictData

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.DictData

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int64) predicate.DictData

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int64) predicate.DictData

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.DictData

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.DictData

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int64) predicate.DictData

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Value

func Value(v string) predicate.DictData

Value applies equality check predicate on the "value" field. It's identical to ValueEQ.

func ValueContains

func ValueContains(v string) predicate.DictData

ValueContains applies the Contains predicate on the "value" field.

func ValueContainsFold

func ValueContainsFold(v string) predicate.DictData

ValueContainsFold applies the ContainsFold predicate on the "value" field.

func ValueEQ

func ValueEQ(v string) predicate.DictData

ValueEQ applies the EQ predicate on the "value" field.

func ValueEqualFold

func ValueEqualFold(v string) predicate.DictData

ValueEqualFold applies the EqualFold predicate on the "value" field.

func ValueGT

func ValueGT(v string) predicate.DictData

ValueGT applies the GT predicate on the "value" field.

func ValueGTE

func ValueGTE(v string) predicate.DictData

ValueGTE applies the GTE predicate on the "value" field.

func ValueHasPrefix

func ValueHasPrefix(v string) predicate.DictData

ValueHasPrefix applies the HasPrefix predicate on the "value" field.

func ValueHasSuffix

func ValueHasSuffix(v string) predicate.DictData

ValueHasSuffix applies the HasSuffix predicate on the "value" field.

func ValueIn

func ValueIn(vs ...string) predicate.DictData

ValueIn applies the In predicate on the "value" field.

func ValueLT

func ValueLT(v string) predicate.DictData

ValueLT applies the LT predicate on the "value" field.

func ValueLTE

func ValueLTE(v string) predicate.DictData

ValueLTE applies the LTE predicate on the "value" field.

func ValueNEQ

func ValueNEQ(v string) predicate.DictData

ValueNEQ applies the NEQ predicate on the "value" field.

func ValueNotIn

func ValueNotIn(vs ...string) predicate.DictData

ValueNotIn applies the NotIn predicate on the "value" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL