app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the app type in the database.
	Label = "app"
	// 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"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldRemark holds the string denoting the remark field in the database.
	FieldRemark = "remark"
	// FieldOrderNotifyURL holds the string denoting the order_notify_url field in the database.
	FieldOrderNotifyURL = "order_notify_url"
	// FieldRefundNotifyURL holds the string denoting the refund_notify_url field in the database.
	FieldRefundNotifyURL = "refund_notify_url"
	// Table holds the table name of the app in the database.
	Table = "pay_app"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// 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
	// 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/agui-coder/simple-admin-pay-rpc/ent/runtime"

Columns holds all SQL columns for app fields.

Functions

func And

func And(predicates ...predicate.App) predicate.App

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.App

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.App

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.App

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.App

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.App

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.App

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.App

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.App

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.App

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.App

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.App

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.App

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.App

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.App

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.App

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.App

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.App

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.App

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func ID

func ID(id uint64) predicate.App

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.App

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.App

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.App

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.App

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.App

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.App

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.App

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.App

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.App

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

func NameContains

func NameContains(v string) predicate.App

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

func NameContainsFold

func NameContainsFold(v string) predicate.App

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

func NameEQ

func NameEQ(v string) predicate.App

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

func NameEqualFold

func NameEqualFold(v string) predicate.App

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

func NameGT

func NameGT(v string) predicate.App

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

func NameGTE

func NameGTE(v string) predicate.App

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.App

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.App

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.App

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

func NameLTE

func NameLTE(v string) predicate.App

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

func NameNEQ

func NameNEQ(v string) predicate.App

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

func NameNotIn

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

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

func Not

func Not(p predicate.App) predicate.App

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.App) predicate.App

Or groups predicates with the OR operator between them.

func OrderNotifyURL

func OrderNotifyURL(v string) predicate.App

OrderNotifyURL applies equality check predicate on the "order_notify_url" field. It's identical to OrderNotifyURLEQ.

func OrderNotifyURLContains

func OrderNotifyURLContains(v string) predicate.App

OrderNotifyURLContains applies the Contains predicate on the "order_notify_url" field.

func OrderNotifyURLContainsFold

func OrderNotifyURLContainsFold(v string) predicate.App

OrderNotifyURLContainsFold applies the ContainsFold predicate on the "order_notify_url" field.

func OrderNotifyURLEQ

func OrderNotifyURLEQ(v string) predicate.App

OrderNotifyURLEQ applies the EQ predicate on the "order_notify_url" field.

func OrderNotifyURLEqualFold

func OrderNotifyURLEqualFold(v string) predicate.App

OrderNotifyURLEqualFold applies the EqualFold predicate on the "order_notify_url" field.

func OrderNotifyURLGT

func OrderNotifyURLGT(v string) predicate.App

OrderNotifyURLGT applies the GT predicate on the "order_notify_url" field.

func OrderNotifyURLGTE

func OrderNotifyURLGTE(v string) predicate.App

OrderNotifyURLGTE applies the GTE predicate on the "order_notify_url" field.

func OrderNotifyURLHasPrefix

func OrderNotifyURLHasPrefix(v string) predicate.App

OrderNotifyURLHasPrefix applies the HasPrefix predicate on the "order_notify_url" field.

func OrderNotifyURLHasSuffix

func OrderNotifyURLHasSuffix(v string) predicate.App

OrderNotifyURLHasSuffix applies the HasSuffix predicate on the "order_notify_url" field.

func OrderNotifyURLIn

func OrderNotifyURLIn(vs ...string) predicate.App

OrderNotifyURLIn applies the In predicate on the "order_notify_url" field.

func OrderNotifyURLLT

func OrderNotifyURLLT(v string) predicate.App

OrderNotifyURLLT applies the LT predicate on the "order_notify_url" field.

func OrderNotifyURLLTE

func OrderNotifyURLLTE(v string) predicate.App

OrderNotifyURLLTE applies the LTE predicate on the "order_notify_url" field.

func OrderNotifyURLNEQ

func OrderNotifyURLNEQ(v string) predicate.App

OrderNotifyURLNEQ applies the NEQ predicate on the "order_notify_url" field.

func OrderNotifyURLNotIn

func OrderNotifyURLNotIn(vs ...string) predicate.App

OrderNotifyURLNotIn applies the NotIn predicate on the "order_notify_url" field.

func RefundNotifyURL

func RefundNotifyURL(v string) predicate.App

RefundNotifyURL applies equality check predicate on the "refund_notify_url" field. It's identical to RefundNotifyURLEQ.

func RefundNotifyURLContains

func RefundNotifyURLContains(v string) predicate.App

RefundNotifyURLContains applies the Contains predicate on the "refund_notify_url" field.

func RefundNotifyURLContainsFold

func RefundNotifyURLContainsFold(v string) predicate.App

RefundNotifyURLContainsFold applies the ContainsFold predicate on the "refund_notify_url" field.

func RefundNotifyURLEQ

func RefundNotifyURLEQ(v string) predicate.App

RefundNotifyURLEQ applies the EQ predicate on the "refund_notify_url" field.

func RefundNotifyURLEqualFold

func RefundNotifyURLEqualFold(v string) predicate.App

RefundNotifyURLEqualFold applies the EqualFold predicate on the "refund_notify_url" field.

func RefundNotifyURLGT

func RefundNotifyURLGT(v string) predicate.App

RefundNotifyURLGT applies the GT predicate on the "refund_notify_url" field.

func RefundNotifyURLGTE

func RefundNotifyURLGTE(v string) predicate.App

RefundNotifyURLGTE applies the GTE predicate on the "refund_notify_url" field.

func RefundNotifyURLHasPrefix

func RefundNotifyURLHasPrefix(v string) predicate.App

RefundNotifyURLHasPrefix applies the HasPrefix predicate on the "refund_notify_url" field.

func RefundNotifyURLHasSuffix

func RefundNotifyURLHasSuffix(v string) predicate.App

RefundNotifyURLHasSuffix applies the HasSuffix predicate on the "refund_notify_url" field.

func RefundNotifyURLIn

func RefundNotifyURLIn(vs ...string) predicate.App

RefundNotifyURLIn applies the In predicate on the "refund_notify_url" field.

func RefundNotifyURLLT

func RefundNotifyURLLT(v string) predicate.App

RefundNotifyURLLT applies the LT predicate on the "refund_notify_url" field.

func RefundNotifyURLLTE

func RefundNotifyURLLTE(v string) predicate.App

RefundNotifyURLLTE applies the LTE predicate on the "refund_notify_url" field.

func RefundNotifyURLNEQ

func RefundNotifyURLNEQ(v string) predicate.App

RefundNotifyURLNEQ applies the NEQ predicate on the "refund_notify_url" field.

func RefundNotifyURLNotIn

func RefundNotifyURLNotIn(vs ...string) predicate.App

RefundNotifyURLNotIn applies the NotIn predicate on the "refund_notify_url" field.

func Remark

func Remark(v string) predicate.App

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

func RemarkContains

func RemarkContains(v string) predicate.App

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

func RemarkContainsFold

func RemarkContainsFold(v string) predicate.App

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

func RemarkEQ

func RemarkEQ(v string) predicate.App

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

func RemarkEqualFold

func RemarkEqualFold(v string) predicate.App

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

func RemarkGT

func RemarkGT(v string) predicate.App

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

func RemarkGTE

func RemarkGTE(v string) predicate.App

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

func RemarkHasPrefix

func RemarkHasPrefix(v string) predicate.App

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

func RemarkHasSuffix

func RemarkHasSuffix(v string) predicate.App

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

func RemarkIn

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

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

func RemarkIsNil

func RemarkIsNil() predicate.App

RemarkIsNil applies the IsNil predicate on the "remark" field.

func RemarkLT

func RemarkLT(v string) predicate.App

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

func RemarkLTE

func RemarkLTE(v string) predicate.App

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

func RemarkNEQ

func RemarkNEQ(v string) predicate.App

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

func RemarkNotIn

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

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

func RemarkNotNil

func RemarkNotNil() predicate.App

RemarkNotNil applies the NotNil predicate on the "remark" field.

func Status

func Status(v uint8) predicate.App

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

func StatusEQ

func StatusEQ(v uint8) predicate.App

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

func StatusGT

func StatusGT(v uint8) predicate.App

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

func StatusGTE

func StatusGTE(v uint8) predicate.App

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

func StatusIn

func StatusIn(vs ...uint8) predicate.App

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

func StatusIsNil

func StatusIsNil() predicate.App

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v uint8) predicate.App

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

func StatusLTE

func StatusLTE(v uint8) predicate.App

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

func StatusNEQ

func StatusNEQ(v uint8) predicate.App

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

func StatusNotIn

func StatusNotIn(vs ...uint8) predicate.App

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

func StatusNotNil

func StatusNotNil() predicate.App

StatusNotNil applies the NotNil predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.App

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.App

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.App

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.App

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.App

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.App

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.App

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the App queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOrderNotifyURL

func ByOrderNotifyURL(opts ...sql.OrderTermOption) OrderOption

ByOrderNotifyURL orders the results by the order_notify_url field.

func ByRefundNotifyURL

func ByRefundNotifyURL(opts ...sql.OrderTermOption) OrderOption

ByRefundNotifyURL orders the results by the refund_notify_url field.

func ByRemark

func ByRemark(opts ...sql.OrderTermOption) OrderOption

ByRemark orders the results by the remark field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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