dicttype

package
v0.0.0-...-9bd63dd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the dicttype type in the database.
	Label = "dict_type"
	// 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"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// 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 dicttype in the database.
	Table = "sys_dict_type"
)

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
	// DefaultName holds the default value on creation for the "name" field.
	DefaultName string
	// DefaultType holds the default value on creation for the "type" field.
	DefaultType string
	// 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"

Columns holds all SQL columns for dicttype fields.

Functions

func And

func And(predicates ...predicate.DictType) predicate.DictType

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.DictType

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.DictType

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.DictType

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.DictType

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.DictType

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.DictType

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.DictType

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int64) predicate.DictType

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

func CreatedByEQ

func CreatedByEQ(v int64) predicate.DictType

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

func CreatedByGT

func CreatedByGT(v int64) predicate.DictType

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

func CreatedByGTE

func CreatedByGTE(v int64) predicate.DictType

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

func CreatedByIn

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

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

func CreatedByLT

func CreatedByLT(v int64) predicate.DictType

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

func CreatedByLTE

func CreatedByLTE(v int64) predicate.DictType

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

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.DictType

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

func CreatedByNotIn

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

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

func ID

func ID(id int64) predicate.DictType

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.DictType

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.DictType

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.DictType

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.DictType

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.DictType

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.DictType

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.DictType

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.DictType

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.DictType

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.DictType

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.DictType

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.DictType

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.DictType

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.DictType

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.DictType

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.DictType

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.DictType

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.DictType

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.DictType

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.DictType

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.DictType) predicate.DictType

Or groups predicates with the OR operator between them.

func Remark

func Remark(v string) predicate.DictType

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

func RemarkContains

func RemarkContains(v string) predicate.DictType

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

func RemarkContainsFold

func RemarkContainsFold(v string) predicate.DictType

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

func RemarkEQ

func RemarkEQ(v string) predicate.DictType

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

func RemarkEqualFold

func RemarkEqualFold(v string) predicate.DictType

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

func RemarkGT

func RemarkGT(v string) predicate.DictType

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

func RemarkGTE

func RemarkGTE(v string) predicate.DictType

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

func RemarkHasPrefix

func RemarkHasPrefix(v string) predicate.DictType

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

func RemarkHasSuffix

func RemarkHasSuffix(v string) predicate.DictType

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

func RemarkIn

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

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

func RemarkLT

func RemarkLT(v string) predicate.DictType

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

func RemarkLTE

func RemarkLTE(v string) predicate.DictType

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

func RemarkNEQ

func RemarkNEQ(v string) predicate.DictType

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

func RemarkNotIn

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

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

func Status

func Status(v int8) predicate.DictType

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

func StatusEQ

func StatusEQ(v int8) predicate.DictType

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

func StatusGT

func StatusGT(v int8) predicate.DictType

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

func StatusGTE

func StatusGTE(v int8) predicate.DictType

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

func StatusIn

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

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

func StatusLT

func StatusLT(v int8) predicate.DictType

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

func StatusLTE

func StatusLTE(v int8) predicate.DictType

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

func StatusNEQ

func StatusNEQ(v int8) predicate.DictType

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

func StatusNotIn

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

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

func Type

func Type(v string) predicate.DictType

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.DictType

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.DictType

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.DictType

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.DictType

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.DictType

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.DictType

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.DictType

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.DictType

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.DictType

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.DictType

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.DictType

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.DictType

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.DictType

TypeNotIn applies the NotIn predicate on the "type" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.DictType

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.DictType

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.DictType

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.DictType

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.DictType

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.DictType

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.DictType

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v int64) predicate.DictType

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

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.DictType

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

func UpdatedByGT

func UpdatedByGT(v int64) predicate.DictType

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

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.DictType

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

func UpdatedByIn

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

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

func UpdatedByLT

func UpdatedByLT(v int64) predicate.DictType

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

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.DictType

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

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.DictType

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

func UpdatedByNotIn

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

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).

Types

This section is empty.

Jump to

Keyboard shortcuts

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