wechat

package
v0.0.0-...-a2c21a8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the wechat type in the database.
	Label = "wechat"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldOpenid holds the string denoting the openid field in the database.
	FieldOpenid = "openid"
	// FieldUnionId holds the string denoting the unionid field in the database.
	FieldUnionId = "union_id"
	// FieldAppType holds the string denoting the app_type field in the database.
	FieldAppType = "app_type"
	// FieldMetaData holds the string denoting the meta_data field in the database.
	FieldMetaData = "meta_data"
	// EdgeCustomers holds the string denoting the customers edge name in mutations.
	EdgeCustomers = "customers"
	// Table holds the table name of the wechat in the database.
	Table = "wechats"
	// CustomersTable is the table the holds the customers relation/edge.
	CustomersTable = "wechats"
	// CustomersInverseTable is the table name for the Customer entity.
	// It exists in this package in order to avoid circular dependency with the "customer" package.
	CustomersInverseTable = "customers"
	// CustomersColumn is the table column denoting the customers relation/edge.
	CustomersColumn = "customer_wechats"
)

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// OpenidValidator is a validator for the "openid" field. It is called by the builders before save.
	OpenidValidator func(string) error
	// UnionIdValidator is a validator for the "unionId" field. It is called by the builders before save.
	UnionIdValidator func(string) error
)

Columns holds all SQL columns for wechat fields.

View Source
var ForeignKeys = []string{
	"customer_wechats",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "wechats" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Wechat) predicate.Wechat

And groups predicates with the AND operator between them.

func AppTypeEQ

func AppTypeEQ(v AppType) predicate.Wechat

AppTypeEQ applies the EQ predicate on the "app_type" field.

func AppTypeIn

func AppTypeIn(vs ...AppType) predicate.Wechat

AppTypeIn applies the In predicate on the "app_type" field.

func AppTypeNEQ

func AppTypeNEQ(v AppType) predicate.Wechat

AppTypeNEQ applies the NEQ predicate on the "app_type" field.

func AppTypeNotIn

func AppTypeNotIn(vs ...AppType) predicate.Wechat

AppTypeNotIn applies the NotIn predicate on the "app_type" field.

func AppTypeValidator

func AppTypeValidator(at AppType) error

AppTypeValidator is a validator for the "app_type" field enum values. It is called by the builders before save.

func CreateTime

func CreateTime(v time.Time) predicate.Wechat

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Wechat

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Wechat

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Wechat

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Wechat

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Wechat

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Wechat

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Wechat

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Wechat

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func HasCustomers

func HasCustomers() predicate.Wechat

HasCustomers applies the HasEdge predicate on the "customers" edge.

func HasCustomersWith

func HasCustomersWith(preds ...predicate.Customer) predicate.Wechat

HasCustomersWith applies the HasEdge predicate on the "customers" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Wechat

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Wechat

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Wechat

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Wechat

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Wechat

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Wechat

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Wechat

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Wechat

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Wechat

IDNotIn applies the NotIn predicate on the ID field.

func MetaData

func MetaData(v []byte) predicate.Wechat

MetaData applies equality check predicate on the "meta_data" field. It's identical to MetaDataEQ.

func MetaDataEQ

func MetaDataEQ(v []byte) predicate.Wechat

MetaDataEQ applies the EQ predicate on the "meta_data" field.

func MetaDataGT

func MetaDataGT(v []byte) predicate.Wechat

MetaDataGT applies the GT predicate on the "meta_data" field.

func MetaDataGTE

func MetaDataGTE(v []byte) predicate.Wechat

MetaDataGTE applies the GTE predicate on the "meta_data" field.

func MetaDataIn

func MetaDataIn(vs ...[]byte) predicate.Wechat

MetaDataIn applies the In predicate on the "meta_data" field.

func MetaDataIsNil

func MetaDataIsNil() predicate.Wechat

MetaDataIsNil applies the IsNil predicate on the "meta_data" field.

func MetaDataLT

func MetaDataLT(v []byte) predicate.Wechat

MetaDataLT applies the LT predicate on the "meta_data" field.

func MetaDataLTE

func MetaDataLTE(v []byte) predicate.Wechat

MetaDataLTE applies the LTE predicate on the "meta_data" field.

func MetaDataNEQ

func MetaDataNEQ(v []byte) predicate.Wechat

MetaDataNEQ applies the NEQ predicate on the "meta_data" field.

func MetaDataNotIn

func MetaDataNotIn(vs ...[]byte) predicate.Wechat

MetaDataNotIn applies the NotIn predicate on the "meta_data" field.

func MetaDataNotNil

func MetaDataNotNil() predicate.Wechat

MetaDataNotNil applies the NotNil predicate on the "meta_data" field.

func Not

Not applies the not operator on the given predicate.

func Openid

func Openid(v string) predicate.Wechat

Openid applies equality check predicate on the "openid" field. It's identical to OpenidEQ.

func OpenidContains

func OpenidContains(v string) predicate.Wechat

OpenidContains applies the Contains predicate on the "openid" field.

func OpenidContainsFold

func OpenidContainsFold(v string) predicate.Wechat

OpenidContainsFold applies the ContainsFold predicate on the "openid" field.

func OpenidEQ

func OpenidEQ(v string) predicate.Wechat

OpenidEQ applies the EQ predicate on the "openid" field.

func OpenidEqualFold

func OpenidEqualFold(v string) predicate.Wechat

OpenidEqualFold applies the EqualFold predicate on the "openid" field.

func OpenidGT

func OpenidGT(v string) predicate.Wechat

OpenidGT applies the GT predicate on the "openid" field.

func OpenidGTE

func OpenidGTE(v string) predicate.Wechat

OpenidGTE applies the GTE predicate on the "openid" field.

func OpenidHasPrefix

func OpenidHasPrefix(v string) predicate.Wechat

OpenidHasPrefix applies the HasPrefix predicate on the "openid" field.

func OpenidHasSuffix

func OpenidHasSuffix(v string) predicate.Wechat

OpenidHasSuffix applies the HasSuffix predicate on the "openid" field.

func OpenidIn

func OpenidIn(vs ...string) predicate.Wechat

OpenidIn applies the In predicate on the "openid" field.

func OpenidLT

func OpenidLT(v string) predicate.Wechat

OpenidLT applies the LT predicate on the "openid" field.

func OpenidLTE

func OpenidLTE(v string) predicate.Wechat

OpenidLTE applies the LTE predicate on the "openid" field.

func OpenidNEQ

func OpenidNEQ(v string) predicate.Wechat

OpenidNEQ applies the NEQ predicate on the "openid" field.

func OpenidNotIn

func OpenidNotIn(vs ...string) predicate.Wechat

OpenidNotIn applies the NotIn predicate on the "openid" field.

func Or

func Or(predicates ...predicate.Wechat) predicate.Wechat

Or groups predicates with the OR operator between them.

func UnionId

func UnionId(v string) predicate.Wechat

UnionId applies equality check predicate on the "unionId" field. It's identical to UnionIdEQ.

func UnionIdContains

func UnionIdContains(v string) predicate.Wechat

UnionIdContains applies the Contains predicate on the "unionId" field.

func UnionIdContainsFold

func UnionIdContainsFold(v string) predicate.Wechat

UnionIdContainsFold applies the ContainsFold predicate on the "unionId" field.

func UnionIdEQ

func UnionIdEQ(v string) predicate.Wechat

UnionIdEQ applies the EQ predicate on the "unionId" field.

func UnionIdEqualFold

func UnionIdEqualFold(v string) predicate.Wechat

UnionIdEqualFold applies the EqualFold predicate on the "unionId" field.

func UnionIdGT

func UnionIdGT(v string) predicate.Wechat

UnionIdGT applies the GT predicate on the "unionId" field.

func UnionIdGTE

func UnionIdGTE(v string) predicate.Wechat

UnionIdGTE applies the GTE predicate on the "unionId" field.

func UnionIdHasPrefix

func UnionIdHasPrefix(v string) predicate.Wechat

UnionIdHasPrefix applies the HasPrefix predicate on the "unionId" field.

func UnionIdHasSuffix

func UnionIdHasSuffix(v string) predicate.Wechat

UnionIdHasSuffix applies the HasSuffix predicate on the "unionId" field.

func UnionIdIn

func UnionIdIn(vs ...string) predicate.Wechat

UnionIdIn applies the In predicate on the "unionId" field.

func UnionIdLT

func UnionIdLT(v string) predicate.Wechat

UnionIdLT applies the LT predicate on the "unionId" field.

func UnionIdLTE

func UnionIdLTE(v string) predicate.Wechat

UnionIdLTE applies the LTE predicate on the "unionId" field.

func UnionIdNEQ

func UnionIdNEQ(v string) predicate.Wechat

UnionIdNEQ applies the NEQ predicate on the "unionId" field.

func UnionIdNotIn

func UnionIdNotIn(vs ...string) predicate.Wechat

UnionIdNotIn applies the NotIn predicate on the "unionId" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Wechat

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Wechat

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Wechat

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Wechat

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Wechat

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Wechat

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Wechat

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Wechat

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Wechat

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type AppType

type AppType string

AppType defines the type for the "app_type" enum field.

const (
	AppTypeWeapp           AppType = "weapp"
	AppTypeOfficialAccount AppType = "official_account"
)

AppType values.

func (AppType) String

func (at AppType) String() string

Jump to

Keyboard shortcuts

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