order

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the order type in the database.
	Label = "order"
	// 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"
	// FieldChannelCode holds the string denoting the channel_code field in the database.
	FieldChannelCode = "channel_code"
	// FieldMerchantOrderID holds the string denoting the merchant_order_id field in the database.
	FieldMerchantOrderID = "merchant_order_id"
	// FieldSubject holds the string denoting the subject field in the database.
	FieldSubject = "subject"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// FieldPrice holds the string denoting the price field in the database.
	FieldPrice = "price"
	// FieldChannelFeeRate holds the string denoting the channel_fee_rate field in the database.
	FieldChannelFeeRate = "channel_fee_rate"
	// FieldChannelFeePrice holds the string denoting the channel_fee_price field in the database.
	FieldChannelFeePrice = "channel_fee_price"
	// FieldUserIP holds the string denoting the user_ip field in the database.
	FieldUserIP = "user_ip"
	// FieldExpireTime holds the string denoting the expire_time field in the database.
	FieldExpireTime = "expire_time"
	// FieldSuccessTime holds the string denoting the success_time field in the database.
	FieldSuccessTime = "success_time"
	// FieldNotifyTime holds the string denoting the notify_time field in the database.
	FieldNotifyTime = "notify_time"
	// FieldExtensionID holds the string denoting the extension_id field in the database.
	FieldExtensionID = "extension_id"
	// FieldNo holds the string denoting the no field in the database.
	FieldNo = "no"
	// FieldRefundPrice holds the string denoting the refund_price field in the database.
	FieldRefundPrice = "refund_price"
	// FieldChannelUserID holds the string denoting the channel_user_id field in the database.
	FieldChannelUserID = "channel_user_id"
	// FieldChannelOrderNo holds the string denoting the channel_order_no field in the database.
	FieldChannelOrderNo = "channel_order_no"
	// Table holds the table name of the order in the database.
	Table = "pay_order"
)

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 order fields.

Functions

func And

func And(predicates ...predicate.Order) predicate.Order

And groups predicates with the AND operator between them.

func Body

func Body(v string) predicate.Order

Body applies equality check predicate on the "body" field. It's identical to BodyEQ.

func BodyContains

func BodyContains(v string) predicate.Order

BodyContains applies the Contains predicate on the "body" field.

func BodyContainsFold

func BodyContainsFold(v string) predicate.Order

BodyContainsFold applies the ContainsFold predicate on the "body" field.

func BodyEQ

func BodyEQ(v string) predicate.Order

BodyEQ applies the EQ predicate on the "body" field.

func BodyEqualFold

func BodyEqualFold(v string) predicate.Order

BodyEqualFold applies the EqualFold predicate on the "body" field.

func BodyGT

func BodyGT(v string) predicate.Order

BodyGT applies the GT predicate on the "body" field.

func BodyGTE

func BodyGTE(v string) predicate.Order

BodyGTE applies the GTE predicate on the "body" field.

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.Order

BodyHasPrefix applies the HasPrefix predicate on the "body" field.

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.Order

BodyHasSuffix applies the HasSuffix predicate on the "body" field.

func BodyIn

func BodyIn(vs ...string) predicate.Order

BodyIn applies the In predicate on the "body" field.

func BodyLT

func BodyLT(v string) predicate.Order

BodyLT applies the LT predicate on the "body" field.

func BodyLTE

func BodyLTE(v string) predicate.Order

BodyLTE applies the LTE predicate on the "body" field.

func BodyNEQ

func BodyNEQ(v string) predicate.Order

BodyNEQ applies the NEQ predicate on the "body" field.

func BodyNotIn

func BodyNotIn(vs ...string) predicate.Order

BodyNotIn applies the NotIn predicate on the "body" field.

func ChannelCode

func ChannelCode(v string) predicate.Order

ChannelCode applies equality check predicate on the "channel_code" field. It's identical to ChannelCodeEQ.

func ChannelCodeContains

func ChannelCodeContains(v string) predicate.Order

ChannelCodeContains applies the Contains predicate on the "channel_code" field.

func ChannelCodeContainsFold

func ChannelCodeContainsFold(v string) predicate.Order

ChannelCodeContainsFold applies the ContainsFold predicate on the "channel_code" field.

func ChannelCodeEQ

func ChannelCodeEQ(v string) predicate.Order

ChannelCodeEQ applies the EQ predicate on the "channel_code" field.

func ChannelCodeEqualFold

func ChannelCodeEqualFold(v string) predicate.Order

ChannelCodeEqualFold applies the EqualFold predicate on the "channel_code" field.

func ChannelCodeGT

func ChannelCodeGT(v string) predicate.Order

ChannelCodeGT applies the GT predicate on the "channel_code" field.

func ChannelCodeGTE

func ChannelCodeGTE(v string) predicate.Order

ChannelCodeGTE applies the GTE predicate on the "channel_code" field.

func ChannelCodeHasPrefix

func ChannelCodeHasPrefix(v string) predicate.Order

ChannelCodeHasPrefix applies the HasPrefix predicate on the "channel_code" field.

func ChannelCodeHasSuffix

func ChannelCodeHasSuffix(v string) predicate.Order

ChannelCodeHasSuffix applies the HasSuffix predicate on the "channel_code" field.

func ChannelCodeIn

func ChannelCodeIn(vs ...string) predicate.Order

ChannelCodeIn applies the In predicate on the "channel_code" field.

func ChannelCodeIsNil

func ChannelCodeIsNil() predicate.Order

ChannelCodeIsNil applies the IsNil predicate on the "channel_code" field.

func ChannelCodeLT

func ChannelCodeLT(v string) predicate.Order

ChannelCodeLT applies the LT predicate on the "channel_code" field.

func ChannelCodeLTE

func ChannelCodeLTE(v string) predicate.Order

ChannelCodeLTE applies the LTE predicate on the "channel_code" field.

func ChannelCodeNEQ

func ChannelCodeNEQ(v string) predicate.Order

ChannelCodeNEQ applies the NEQ predicate on the "channel_code" field.

func ChannelCodeNotIn

func ChannelCodeNotIn(vs ...string) predicate.Order

ChannelCodeNotIn applies the NotIn predicate on the "channel_code" field.

func ChannelCodeNotNil

func ChannelCodeNotNil() predicate.Order

ChannelCodeNotNil applies the NotNil predicate on the "channel_code" field.

func ChannelFeePrice

func ChannelFeePrice(v int32) predicate.Order

ChannelFeePrice applies equality check predicate on the "channel_fee_price" field. It's identical to ChannelFeePriceEQ.

func ChannelFeePriceEQ

func ChannelFeePriceEQ(v int32) predicate.Order

ChannelFeePriceEQ applies the EQ predicate on the "channel_fee_price" field.

func ChannelFeePriceGT

func ChannelFeePriceGT(v int32) predicate.Order

ChannelFeePriceGT applies the GT predicate on the "channel_fee_price" field.

func ChannelFeePriceGTE

func ChannelFeePriceGTE(v int32) predicate.Order

ChannelFeePriceGTE applies the GTE predicate on the "channel_fee_price" field.

func ChannelFeePriceIn

func ChannelFeePriceIn(vs ...int32) predicate.Order

ChannelFeePriceIn applies the In predicate on the "channel_fee_price" field.

func ChannelFeePriceIsNil

func ChannelFeePriceIsNil() predicate.Order

ChannelFeePriceIsNil applies the IsNil predicate on the "channel_fee_price" field.

func ChannelFeePriceLT

func ChannelFeePriceLT(v int32) predicate.Order

ChannelFeePriceLT applies the LT predicate on the "channel_fee_price" field.

func ChannelFeePriceLTE

func ChannelFeePriceLTE(v int32) predicate.Order

ChannelFeePriceLTE applies the LTE predicate on the "channel_fee_price" field.

func ChannelFeePriceNEQ

func ChannelFeePriceNEQ(v int32) predicate.Order

ChannelFeePriceNEQ applies the NEQ predicate on the "channel_fee_price" field.

func ChannelFeePriceNotIn

func ChannelFeePriceNotIn(vs ...int32) predicate.Order

ChannelFeePriceNotIn applies the NotIn predicate on the "channel_fee_price" field.

func ChannelFeePriceNotNil

func ChannelFeePriceNotNil() predicate.Order

ChannelFeePriceNotNil applies the NotNil predicate on the "channel_fee_price" field.

func ChannelFeeRate

func ChannelFeeRate(v float64) predicate.Order

ChannelFeeRate applies equality check predicate on the "channel_fee_rate" field. It's identical to ChannelFeeRateEQ.

func ChannelFeeRateEQ

func ChannelFeeRateEQ(v float64) predicate.Order

ChannelFeeRateEQ applies the EQ predicate on the "channel_fee_rate" field.

func ChannelFeeRateGT

func ChannelFeeRateGT(v float64) predicate.Order

ChannelFeeRateGT applies the GT predicate on the "channel_fee_rate" field.

func ChannelFeeRateGTE

func ChannelFeeRateGTE(v float64) predicate.Order

ChannelFeeRateGTE applies the GTE predicate on the "channel_fee_rate" field.

func ChannelFeeRateIn

func ChannelFeeRateIn(vs ...float64) predicate.Order

ChannelFeeRateIn applies the In predicate on the "channel_fee_rate" field.

func ChannelFeeRateIsNil

func ChannelFeeRateIsNil() predicate.Order

ChannelFeeRateIsNil applies the IsNil predicate on the "channel_fee_rate" field.

func ChannelFeeRateLT

func ChannelFeeRateLT(v float64) predicate.Order

ChannelFeeRateLT applies the LT predicate on the "channel_fee_rate" field.

func ChannelFeeRateLTE

func ChannelFeeRateLTE(v float64) predicate.Order

ChannelFeeRateLTE applies the LTE predicate on the "channel_fee_rate" field.

func ChannelFeeRateNEQ

func ChannelFeeRateNEQ(v float64) predicate.Order

ChannelFeeRateNEQ applies the NEQ predicate on the "channel_fee_rate" field.

func ChannelFeeRateNotIn

func ChannelFeeRateNotIn(vs ...float64) predicate.Order

ChannelFeeRateNotIn applies the NotIn predicate on the "channel_fee_rate" field.

func ChannelFeeRateNotNil

func ChannelFeeRateNotNil() predicate.Order

ChannelFeeRateNotNil applies the NotNil predicate on the "channel_fee_rate" field.

func ChannelOrderNo

func ChannelOrderNo(v string) predicate.Order

ChannelOrderNo applies equality check predicate on the "channel_order_no" field. It's identical to ChannelOrderNoEQ.

func ChannelOrderNoContains

func ChannelOrderNoContains(v string) predicate.Order

ChannelOrderNoContains applies the Contains predicate on the "channel_order_no" field.

func ChannelOrderNoContainsFold

func ChannelOrderNoContainsFold(v string) predicate.Order

ChannelOrderNoContainsFold applies the ContainsFold predicate on the "channel_order_no" field.

func ChannelOrderNoEQ

func ChannelOrderNoEQ(v string) predicate.Order

ChannelOrderNoEQ applies the EQ predicate on the "channel_order_no" field.

func ChannelOrderNoEqualFold

func ChannelOrderNoEqualFold(v string) predicate.Order

ChannelOrderNoEqualFold applies the EqualFold predicate on the "channel_order_no" field.

func ChannelOrderNoGT

func ChannelOrderNoGT(v string) predicate.Order

ChannelOrderNoGT applies the GT predicate on the "channel_order_no" field.

func ChannelOrderNoGTE

func ChannelOrderNoGTE(v string) predicate.Order

ChannelOrderNoGTE applies the GTE predicate on the "channel_order_no" field.

func ChannelOrderNoHasPrefix

func ChannelOrderNoHasPrefix(v string) predicate.Order

ChannelOrderNoHasPrefix applies the HasPrefix predicate on the "channel_order_no" field.

func ChannelOrderNoHasSuffix

func ChannelOrderNoHasSuffix(v string) predicate.Order

ChannelOrderNoHasSuffix applies the HasSuffix predicate on the "channel_order_no" field.

func ChannelOrderNoIn

func ChannelOrderNoIn(vs ...string) predicate.Order

ChannelOrderNoIn applies the In predicate on the "channel_order_no" field.

func ChannelOrderNoIsNil

func ChannelOrderNoIsNil() predicate.Order

ChannelOrderNoIsNil applies the IsNil predicate on the "channel_order_no" field.

func ChannelOrderNoLT

func ChannelOrderNoLT(v string) predicate.Order

ChannelOrderNoLT applies the LT predicate on the "channel_order_no" field.

func ChannelOrderNoLTE

func ChannelOrderNoLTE(v string) predicate.Order

ChannelOrderNoLTE applies the LTE predicate on the "channel_order_no" field.

func ChannelOrderNoNEQ

func ChannelOrderNoNEQ(v string) predicate.Order

ChannelOrderNoNEQ applies the NEQ predicate on the "channel_order_no" field.

func ChannelOrderNoNotIn

func ChannelOrderNoNotIn(vs ...string) predicate.Order

ChannelOrderNoNotIn applies the NotIn predicate on the "channel_order_no" field.

func ChannelOrderNoNotNil

func ChannelOrderNoNotNil() predicate.Order

ChannelOrderNoNotNil applies the NotNil predicate on the "channel_order_no" field.

func ChannelUserID

func ChannelUserID(v string) predicate.Order

ChannelUserID applies equality check predicate on the "channel_user_id" field. It's identical to ChannelUserIDEQ.

func ChannelUserIDContains

func ChannelUserIDContains(v string) predicate.Order

ChannelUserIDContains applies the Contains predicate on the "channel_user_id" field.

func ChannelUserIDContainsFold

func ChannelUserIDContainsFold(v string) predicate.Order

ChannelUserIDContainsFold applies the ContainsFold predicate on the "channel_user_id" field.

func ChannelUserIDEQ

func ChannelUserIDEQ(v string) predicate.Order

ChannelUserIDEQ applies the EQ predicate on the "channel_user_id" field.

func ChannelUserIDEqualFold

func ChannelUserIDEqualFold(v string) predicate.Order

ChannelUserIDEqualFold applies the EqualFold predicate on the "channel_user_id" field.

func ChannelUserIDGT

func ChannelUserIDGT(v string) predicate.Order

ChannelUserIDGT applies the GT predicate on the "channel_user_id" field.

func ChannelUserIDGTE

func ChannelUserIDGTE(v string) predicate.Order

ChannelUserIDGTE applies the GTE predicate on the "channel_user_id" field.

func ChannelUserIDHasPrefix

func ChannelUserIDHasPrefix(v string) predicate.Order

ChannelUserIDHasPrefix applies the HasPrefix predicate on the "channel_user_id" field.

func ChannelUserIDHasSuffix

func ChannelUserIDHasSuffix(v string) predicate.Order

ChannelUserIDHasSuffix applies the HasSuffix predicate on the "channel_user_id" field.

func ChannelUserIDIn

func ChannelUserIDIn(vs ...string) predicate.Order

ChannelUserIDIn applies the In predicate on the "channel_user_id" field.

func ChannelUserIDIsNil

func ChannelUserIDIsNil() predicate.Order

ChannelUserIDIsNil applies the IsNil predicate on the "channel_user_id" field.

func ChannelUserIDLT

func ChannelUserIDLT(v string) predicate.Order

ChannelUserIDLT applies the LT predicate on the "channel_user_id" field.

func ChannelUserIDLTE

func ChannelUserIDLTE(v string) predicate.Order

ChannelUserIDLTE applies the LTE predicate on the "channel_user_id" field.

func ChannelUserIDNEQ

func ChannelUserIDNEQ(v string) predicate.Order

ChannelUserIDNEQ applies the NEQ predicate on the "channel_user_id" field.

func ChannelUserIDNotIn

func ChannelUserIDNotIn(vs ...string) predicate.Order

ChannelUserIDNotIn applies the NotIn predicate on the "channel_user_id" field.

func ChannelUserIDNotNil

func ChannelUserIDNotNil() predicate.Order

ChannelUserIDNotNil applies the NotNil predicate on the "channel_user_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Order

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Order

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Order

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Order

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Order

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Order

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Order

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Order

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Order

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Order

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Order

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Order

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Order

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Order

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Order

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Order

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

func ExpireTime

func ExpireTime(v time.Time) predicate.Order

ExpireTime applies equality check predicate on the "expire_time" field. It's identical to ExpireTimeEQ.

func ExpireTimeEQ

func ExpireTimeEQ(v time.Time) predicate.Order

ExpireTimeEQ applies the EQ predicate on the "expire_time" field.

func ExpireTimeGT

func ExpireTimeGT(v time.Time) predicate.Order

ExpireTimeGT applies the GT predicate on the "expire_time" field.

func ExpireTimeGTE

func ExpireTimeGTE(v time.Time) predicate.Order

ExpireTimeGTE applies the GTE predicate on the "expire_time" field.

func ExpireTimeIn

func ExpireTimeIn(vs ...time.Time) predicate.Order

ExpireTimeIn applies the In predicate on the "expire_time" field.

func ExpireTimeLT

func ExpireTimeLT(v time.Time) predicate.Order

ExpireTimeLT applies the LT predicate on the "expire_time" field.

func ExpireTimeLTE

func ExpireTimeLTE(v time.Time) predicate.Order

ExpireTimeLTE applies the LTE predicate on the "expire_time" field.

func ExpireTimeNEQ

func ExpireTimeNEQ(v time.Time) predicate.Order

ExpireTimeNEQ applies the NEQ predicate on the "expire_time" field.

func ExpireTimeNotIn

func ExpireTimeNotIn(vs ...time.Time) predicate.Order

ExpireTimeNotIn applies the NotIn predicate on the "expire_time" field.

func ExtensionID

func ExtensionID(v uint64) predicate.Order

ExtensionID applies equality check predicate on the "extension_id" field. It's identical to ExtensionIDEQ.

func ExtensionIDEQ

func ExtensionIDEQ(v uint64) predicate.Order

ExtensionIDEQ applies the EQ predicate on the "extension_id" field.

func ExtensionIDGT

func ExtensionIDGT(v uint64) predicate.Order

ExtensionIDGT applies the GT predicate on the "extension_id" field.

func ExtensionIDGTE

func ExtensionIDGTE(v uint64) predicate.Order

ExtensionIDGTE applies the GTE predicate on the "extension_id" field.

func ExtensionIDIn

func ExtensionIDIn(vs ...uint64) predicate.Order

ExtensionIDIn applies the In predicate on the "extension_id" field.

func ExtensionIDIsNil

func ExtensionIDIsNil() predicate.Order

ExtensionIDIsNil applies the IsNil predicate on the "extension_id" field.

func ExtensionIDLT

func ExtensionIDLT(v uint64) predicate.Order

ExtensionIDLT applies the LT predicate on the "extension_id" field.

func ExtensionIDLTE

func ExtensionIDLTE(v uint64) predicate.Order

ExtensionIDLTE applies the LTE predicate on the "extension_id" field.

func ExtensionIDNEQ

func ExtensionIDNEQ(v uint64) predicate.Order

ExtensionIDNEQ applies the NEQ predicate on the "extension_id" field.

func ExtensionIDNotIn

func ExtensionIDNotIn(vs ...uint64) predicate.Order

ExtensionIDNotIn applies the NotIn predicate on the "extension_id" field.

func ExtensionIDNotNil

func ExtensionIDNotNil() predicate.Order

ExtensionIDNotNil applies the NotNil predicate on the "extension_id" field.

func ID

func ID(id uint64) predicate.Order

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Order

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Order

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Order

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Order

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Order

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Order

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MerchantOrderID

func MerchantOrderID(v string) predicate.Order

MerchantOrderID applies equality check predicate on the "merchant_order_id" field. It's identical to MerchantOrderIDEQ.

func MerchantOrderIDContains

func MerchantOrderIDContains(v string) predicate.Order

MerchantOrderIDContains applies the Contains predicate on the "merchant_order_id" field.

func MerchantOrderIDContainsFold

func MerchantOrderIDContainsFold(v string) predicate.Order

MerchantOrderIDContainsFold applies the ContainsFold predicate on the "merchant_order_id" field.

func MerchantOrderIDEQ

func MerchantOrderIDEQ(v string) predicate.Order

MerchantOrderIDEQ applies the EQ predicate on the "merchant_order_id" field.

func MerchantOrderIDEqualFold

func MerchantOrderIDEqualFold(v string) predicate.Order

MerchantOrderIDEqualFold applies the EqualFold predicate on the "merchant_order_id" field.

func MerchantOrderIDGT

func MerchantOrderIDGT(v string) predicate.Order

MerchantOrderIDGT applies the GT predicate on the "merchant_order_id" field.

func MerchantOrderIDGTE

func MerchantOrderIDGTE(v string) predicate.Order

MerchantOrderIDGTE applies the GTE predicate on the "merchant_order_id" field.

func MerchantOrderIDHasPrefix

func MerchantOrderIDHasPrefix(v string) predicate.Order

MerchantOrderIDHasPrefix applies the HasPrefix predicate on the "merchant_order_id" field.

func MerchantOrderIDHasSuffix

func MerchantOrderIDHasSuffix(v string) predicate.Order

MerchantOrderIDHasSuffix applies the HasSuffix predicate on the "merchant_order_id" field.

func MerchantOrderIDIn

func MerchantOrderIDIn(vs ...string) predicate.Order

MerchantOrderIDIn applies the In predicate on the "merchant_order_id" field.

func MerchantOrderIDLT

func MerchantOrderIDLT(v string) predicate.Order

MerchantOrderIDLT applies the LT predicate on the "merchant_order_id" field.

func MerchantOrderIDLTE

func MerchantOrderIDLTE(v string) predicate.Order

MerchantOrderIDLTE applies the LTE predicate on the "merchant_order_id" field.

func MerchantOrderIDNEQ

func MerchantOrderIDNEQ(v string) predicate.Order

MerchantOrderIDNEQ applies the NEQ predicate on the "merchant_order_id" field.

func MerchantOrderIDNotIn

func MerchantOrderIDNotIn(vs ...string) predicate.Order

MerchantOrderIDNotIn applies the NotIn predicate on the "merchant_order_id" field.

func No

func No(v string) predicate.Order

No applies equality check predicate on the "no" field. It's identical to NoEQ.

func NoContains

func NoContains(v string) predicate.Order

NoContains applies the Contains predicate on the "no" field.

func NoContainsFold

func NoContainsFold(v string) predicate.Order

NoContainsFold applies the ContainsFold predicate on the "no" field.

func NoEQ

func NoEQ(v string) predicate.Order

NoEQ applies the EQ predicate on the "no" field.

func NoEqualFold

func NoEqualFold(v string) predicate.Order

NoEqualFold applies the EqualFold predicate on the "no" field.

func NoGT

func NoGT(v string) predicate.Order

NoGT applies the GT predicate on the "no" field.

func NoGTE

func NoGTE(v string) predicate.Order

NoGTE applies the GTE predicate on the "no" field.

func NoHasPrefix

func NoHasPrefix(v string) predicate.Order

NoHasPrefix applies the HasPrefix predicate on the "no" field.

func NoHasSuffix

func NoHasSuffix(v string) predicate.Order

NoHasSuffix applies the HasSuffix predicate on the "no" field.

func NoIn

func NoIn(vs ...string) predicate.Order

NoIn applies the In predicate on the "no" field.

func NoIsNil

func NoIsNil() predicate.Order

NoIsNil applies the IsNil predicate on the "no" field.

func NoLT

func NoLT(v string) predicate.Order

NoLT applies the LT predicate on the "no" field.

func NoLTE

func NoLTE(v string) predicate.Order

NoLTE applies the LTE predicate on the "no" field.

func NoNEQ

func NoNEQ(v string) predicate.Order

NoNEQ applies the NEQ predicate on the "no" field.

func NoNotIn

func NoNotIn(vs ...string) predicate.Order

NoNotIn applies the NotIn predicate on the "no" field.

func NoNotNil

func NoNotNil() predicate.Order

NoNotNil applies the NotNil predicate on the "no" field.

func Not

Not applies the not operator on the given predicate.

func NotifyTime

func NotifyTime(v time.Time) predicate.Order

NotifyTime applies equality check predicate on the "notify_time" field. It's identical to NotifyTimeEQ.

func NotifyTimeEQ

func NotifyTimeEQ(v time.Time) predicate.Order

NotifyTimeEQ applies the EQ predicate on the "notify_time" field.

func NotifyTimeGT

func NotifyTimeGT(v time.Time) predicate.Order

NotifyTimeGT applies the GT predicate on the "notify_time" field.

func NotifyTimeGTE

func NotifyTimeGTE(v time.Time) predicate.Order

NotifyTimeGTE applies the GTE predicate on the "notify_time" field.

func NotifyTimeIn

func NotifyTimeIn(vs ...time.Time) predicate.Order

NotifyTimeIn applies the In predicate on the "notify_time" field.

func NotifyTimeIsNil

func NotifyTimeIsNil() predicate.Order

NotifyTimeIsNil applies the IsNil predicate on the "notify_time" field.

func NotifyTimeLT

func NotifyTimeLT(v time.Time) predicate.Order

NotifyTimeLT applies the LT predicate on the "notify_time" field.

func NotifyTimeLTE

func NotifyTimeLTE(v time.Time) predicate.Order

NotifyTimeLTE applies the LTE predicate on the "notify_time" field.

func NotifyTimeNEQ

func NotifyTimeNEQ(v time.Time) predicate.Order

NotifyTimeNEQ applies the NEQ predicate on the "notify_time" field.

func NotifyTimeNotIn

func NotifyTimeNotIn(vs ...time.Time) predicate.Order

NotifyTimeNotIn applies the NotIn predicate on the "notify_time" field.

func NotifyTimeNotNil

func NotifyTimeNotNil() predicate.Order

NotifyTimeNotNil applies the NotNil predicate on the "notify_time" field.

func Or

func Or(predicates ...predicate.Order) predicate.Order

Or groups predicates with the OR operator between them.

func Price

func Price(v int32) predicate.Order

Price applies equality check predicate on the "price" field. It's identical to PriceEQ.

func PriceEQ

func PriceEQ(v int32) predicate.Order

PriceEQ applies the EQ predicate on the "price" field.

func PriceGT

func PriceGT(v int32) predicate.Order

PriceGT applies the GT predicate on the "price" field.

func PriceGTE

func PriceGTE(v int32) predicate.Order

PriceGTE applies the GTE predicate on the "price" field.

func PriceIn

func PriceIn(vs ...int32) predicate.Order

PriceIn applies the In predicate on the "price" field.

func PriceLT

func PriceLT(v int32) predicate.Order

PriceLT applies the LT predicate on the "price" field.

func PriceLTE

func PriceLTE(v int32) predicate.Order

PriceLTE applies the LTE predicate on the "price" field.

func PriceNEQ

func PriceNEQ(v int32) predicate.Order

PriceNEQ applies the NEQ predicate on the "price" field.

func PriceNotIn

func PriceNotIn(vs ...int32) predicate.Order

PriceNotIn applies the NotIn predicate on the "price" field.

func RefundPrice

func RefundPrice(v int32) predicate.Order

RefundPrice applies equality check predicate on the "refund_price" field. It's identical to RefundPriceEQ.

func RefundPriceEQ

func RefundPriceEQ(v int32) predicate.Order

RefundPriceEQ applies the EQ predicate on the "refund_price" field.

func RefundPriceGT

func RefundPriceGT(v int32) predicate.Order

RefundPriceGT applies the GT predicate on the "refund_price" field.

func RefundPriceGTE

func RefundPriceGTE(v int32) predicate.Order

RefundPriceGTE applies the GTE predicate on the "refund_price" field.

func RefundPriceIn

func RefundPriceIn(vs ...int32) predicate.Order

RefundPriceIn applies the In predicate on the "refund_price" field.

func RefundPriceLT

func RefundPriceLT(v int32) predicate.Order

RefundPriceLT applies the LT predicate on the "refund_price" field.

func RefundPriceLTE

func RefundPriceLTE(v int32) predicate.Order

RefundPriceLTE applies the LTE predicate on the "refund_price" field.

func RefundPriceNEQ

func RefundPriceNEQ(v int32) predicate.Order

RefundPriceNEQ applies the NEQ predicate on the "refund_price" field.

func RefundPriceNotIn

func RefundPriceNotIn(vs ...int32) predicate.Order

RefundPriceNotIn applies the NotIn predicate on the "refund_price" field.

func Status

func Status(v uint8) predicate.Order

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

func StatusEQ

func StatusEQ(v uint8) predicate.Order

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

func StatusGT

func StatusGT(v uint8) predicate.Order

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

func StatusGTE

func StatusGTE(v uint8) predicate.Order

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

func StatusIn

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

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

func StatusIsNil

func StatusIsNil() predicate.Order

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

func StatusLT

func StatusLT(v uint8) predicate.Order

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

func StatusLTE

func StatusLTE(v uint8) predicate.Order

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

func StatusNEQ

func StatusNEQ(v uint8) predicate.Order

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

func StatusNotIn

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

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

func StatusNotNil

func StatusNotNil() predicate.Order

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

func Subject

func Subject(v string) predicate.Order

Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.

func SubjectContains

func SubjectContains(v string) predicate.Order

SubjectContains applies the Contains predicate on the "subject" field.

func SubjectContainsFold

func SubjectContainsFold(v string) predicate.Order

SubjectContainsFold applies the ContainsFold predicate on the "subject" field.

func SubjectEQ

func SubjectEQ(v string) predicate.Order

SubjectEQ applies the EQ predicate on the "subject" field.

func SubjectEqualFold

func SubjectEqualFold(v string) predicate.Order

SubjectEqualFold applies the EqualFold predicate on the "subject" field.

func SubjectGT

func SubjectGT(v string) predicate.Order

SubjectGT applies the GT predicate on the "subject" field.

func SubjectGTE

func SubjectGTE(v string) predicate.Order

SubjectGTE applies the GTE predicate on the "subject" field.

func SubjectHasPrefix

func SubjectHasPrefix(v string) predicate.Order

SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.

func SubjectHasSuffix

func SubjectHasSuffix(v string) predicate.Order

SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.

func SubjectIn

func SubjectIn(vs ...string) predicate.Order

SubjectIn applies the In predicate on the "subject" field.

func SubjectLT

func SubjectLT(v string) predicate.Order

SubjectLT applies the LT predicate on the "subject" field.

func SubjectLTE

func SubjectLTE(v string) predicate.Order

SubjectLTE applies the LTE predicate on the "subject" field.

func SubjectNEQ

func SubjectNEQ(v string) predicate.Order

SubjectNEQ applies the NEQ predicate on the "subject" field.

func SubjectNotIn

func SubjectNotIn(vs ...string) predicate.Order

SubjectNotIn applies the NotIn predicate on the "subject" field.

func SuccessTime

func SuccessTime(v time.Time) predicate.Order

SuccessTime applies equality check predicate on the "success_time" field. It's identical to SuccessTimeEQ.

func SuccessTimeEQ

func SuccessTimeEQ(v time.Time) predicate.Order

SuccessTimeEQ applies the EQ predicate on the "success_time" field.

func SuccessTimeGT

func SuccessTimeGT(v time.Time) predicate.Order

SuccessTimeGT applies the GT predicate on the "success_time" field.

func SuccessTimeGTE

func SuccessTimeGTE(v time.Time) predicate.Order

SuccessTimeGTE applies the GTE predicate on the "success_time" field.

func SuccessTimeIn

func SuccessTimeIn(vs ...time.Time) predicate.Order

SuccessTimeIn applies the In predicate on the "success_time" field.

func SuccessTimeIsNil

func SuccessTimeIsNil() predicate.Order

SuccessTimeIsNil applies the IsNil predicate on the "success_time" field.

func SuccessTimeLT

func SuccessTimeLT(v time.Time) predicate.Order

SuccessTimeLT applies the LT predicate on the "success_time" field.

func SuccessTimeLTE

func SuccessTimeLTE(v time.Time) predicate.Order

SuccessTimeLTE applies the LTE predicate on the "success_time" field.

func SuccessTimeNEQ

func SuccessTimeNEQ(v time.Time) predicate.Order

SuccessTimeNEQ applies the NEQ predicate on the "success_time" field.

func SuccessTimeNotIn

func SuccessTimeNotIn(vs ...time.Time) predicate.Order

SuccessTimeNotIn applies the NotIn predicate on the "success_time" field.

func SuccessTimeNotNil

func SuccessTimeNotNil() predicate.Order

SuccessTimeNotNil applies the NotNil predicate on the "success_time" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Order

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Order

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Order

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Order

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Order

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Order

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Order

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

func UpdatedAtNotIn

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

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

func UserIP

func UserIP(v string) predicate.Order

UserIP applies equality check predicate on the "user_ip" field. It's identical to UserIPEQ.

func UserIPContains

func UserIPContains(v string) predicate.Order

UserIPContains applies the Contains predicate on the "user_ip" field.

func UserIPContainsFold

func UserIPContainsFold(v string) predicate.Order

UserIPContainsFold applies the ContainsFold predicate on the "user_ip" field.

func UserIPEQ

func UserIPEQ(v string) predicate.Order

UserIPEQ applies the EQ predicate on the "user_ip" field.

func UserIPEqualFold

func UserIPEqualFold(v string) predicate.Order

UserIPEqualFold applies the EqualFold predicate on the "user_ip" field.

func UserIPGT

func UserIPGT(v string) predicate.Order

UserIPGT applies the GT predicate on the "user_ip" field.

func UserIPGTE

func UserIPGTE(v string) predicate.Order

UserIPGTE applies the GTE predicate on the "user_ip" field.

func UserIPHasPrefix

func UserIPHasPrefix(v string) predicate.Order

UserIPHasPrefix applies the HasPrefix predicate on the "user_ip" field.

func UserIPHasSuffix

func UserIPHasSuffix(v string) predicate.Order

UserIPHasSuffix applies the HasSuffix predicate on the "user_ip" field.

func UserIPIn

func UserIPIn(vs ...string) predicate.Order

UserIPIn applies the In predicate on the "user_ip" field.

func UserIPLT

func UserIPLT(v string) predicate.Order

UserIPLT applies the LT predicate on the "user_ip" field.

func UserIPLTE

func UserIPLTE(v string) predicate.Order

UserIPLTE applies the LTE predicate on the "user_ip" field.

func UserIPNEQ

func UserIPNEQ(v string) predicate.Order

UserIPNEQ applies the NEQ predicate on the "user_ip" field.

func UserIPNotIn

func UserIPNotIn(vs ...string) predicate.Order

UserIPNotIn applies the NotIn predicate on the "user_ip" 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 Order queries.

func ByBody

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

ByBody orders the results by the body field.

func ByChannelCode

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

ByChannelCode orders the results by the channel_code field.

func ByChannelFeePrice

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

ByChannelFeePrice orders the results by the channel_fee_price field.

func ByChannelFeeRate

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

ByChannelFeeRate orders the results by the channel_fee_rate field.

func ByChannelOrderNo

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

ByChannelOrderNo orders the results by the channel_order_no field.

func ByChannelUserID

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

ByChannelUserID orders the results by the channel_user_id field.

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 ByExpireTime

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

ByExpireTime orders the results by the expire_time field.

func ByExtensionID

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

ByExtensionID orders the results by the extension_id field.

func ByID

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

ByID orders the results by the id field.

func ByMerchantOrderID

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

ByMerchantOrderID orders the results by the merchant_order_id field.

func ByNo

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

ByNo orders the results by the no field.

func ByNotifyTime

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

ByNotifyTime orders the results by the notify_time field.

func ByPrice

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

ByPrice orders the results by the price field.

func ByRefundPrice

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

ByRefundPrice orders the results by the refund_price field.

func ByStatus

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

ByStatus orders the results by the status field.

func BySubject

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

BySubject orders the results by the subject field.

func BySuccessTime

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

BySuccessTime orders the results by the success_time field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserIP

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

ByUserIP orders the results by the user_ip field.

Jump to

Keyboard shortcuts

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