spu

package
v0.0.0-...-22bdbfd Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the spu type in the database.
	Label = "spu"
	// 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"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// 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"
	// FieldKeyword holds the string denoting the keyword field in the database.
	FieldKeyword = "keyword"
	// FieldIntroduction holds the string denoting the introduction field in the database.
	FieldIntroduction = "introduction"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldBarCode holds the string denoting the bar_code field in the database.
	FieldBarCode = "bar_code"
	// FieldCategoryID holds the string denoting the category_id field in the database.
	FieldCategoryID = "category_id"
	// FieldBrandID holds the string denoting the brand_id field in the database.
	FieldBrandID = "brand_id"
	// FieldPicURL holds the string denoting the pic_url field in the database.
	FieldPicURL = "pic_url"
	// FieldSliderPicUrls holds the string denoting the slider_pic_urls field in the database.
	FieldSliderPicUrls = "slider_pic_urls"
	// FieldVideoURL holds the string denoting the video_url field in the database.
	FieldVideoURL = "video_url"
	// FieldUnit holds the string denoting the unit field in the database.
	FieldUnit = "unit"
	// FieldSpecType holds the string denoting the spec_type field in the database.
	FieldSpecType = "spec_type"
	// FieldPrice holds the string denoting the price field in the database.
	FieldPrice = "price"
	// FieldMarketPrice holds the string denoting the market_price field in the database.
	FieldMarketPrice = "market_price"
	// FieldCostPrice holds the string denoting the cost_price field in the database.
	FieldCostPrice = "cost_price"
	// FieldStock holds the string denoting the stock field in the database.
	FieldStock = "stock"
	// FieldDeliveryTemplateID holds the string denoting the deliverytemplate_id field in the database.
	FieldDeliveryTemplateID = "delivery_template_id"
	// FieldRecommendHot holds the string denoting the recommend_hot field in the database.
	FieldRecommendHot = "recommend_hot"
	// FieldRecommendBenefit holds the string denoting the recommend_benefit field in the database.
	FieldRecommendBenefit = "recommend_benefit"
	// FieldRecommendBest holds the string denoting the recommend_best field in the database.
	FieldRecommendBest = "recommend_best"
	// FieldRecommendNew holds the string denoting the recommend_new field in the database.
	FieldRecommendNew = "recommend_new"
	// FieldRecommendGood holds the string denoting the recommend_good field in the database.
	FieldRecommendGood = "recommend_good"
	// FieldGiveIntegral holds the string denoting the give_integral field in the database.
	FieldGiveIntegral = "give_integral"
	// FieldGiveCouponTemplateIds holds the string denoting the give_coupon_template_ids field in the database.
	FieldGiveCouponTemplateIds = "give_coupon_template_ids"
	// FieldSubCommissionType holds the string denoting the sub_commission_type field in the database.
	FieldSubCommissionType = "sub_commission_type"
	// FieldActivityOrders holds the string denoting the activity_orders field in the database.
	FieldActivityOrders = "activity_orders"
	// FieldSalesCount holds the string denoting the sales_count field in the database.
	FieldSalesCount = "sales_count"
	// FieldVirtualSalesCount holds the string denoting the virtual_sales_count field in the database.
	FieldVirtualSalesCount = "virtual_sales_count"
	// FieldBrowseCount holds the string denoting the browse_count field in the database.
	FieldBrowseCount = "browse_count"
	// EdgeSkus holds the string denoting the skus edge name in mutations.
	EdgeSkus = "skus"
	// EdgeBrands holds the string denoting the brands edge name in mutations.
	EdgeBrands = "brands"
	// EdgeCategorys holds the string denoting the categorys edge name in mutations.
	EdgeCategorys = "categorys"
	// Table holds the table name of the spu in the database.
	Table = "product_spu"
	// SkusTable is the table that holds the skus relation/edge.
	SkusTable = "product_sku"
	// SkusInverseTable is the table name for the Sku entity.
	// It exists in this package in order to avoid circular dependency with the "sku" package.
	SkusInverseTable = "product_sku"
	// SkusColumn is the table column denoting the skus relation/edge.
	SkusColumn = "spu_id"
	// BrandsTable is the table that holds the brands relation/edge.
	BrandsTable = "product_spu"
	// BrandsInverseTable is the table name for the Brand entity.
	// It exists in this package in order to avoid circular dependency with the "brand" package.
	BrandsInverseTable = "product_brand"
	// BrandsColumn is the table column denoting the brands relation/edge.
	BrandsColumn = "brand_id"
	// CategorysTable is the table that holds the categorys relation/edge.
	CategorysTable = "product_spu"
	// CategorysInverseTable is the table name for the Category entity.
	// It exists in this package in order to avoid circular dependency with the "category" package.
	CategorysInverseTable = "product_category"
	// CategorysColumn is the table column denoting the categorys relation/edge.
	CategorysColumn = "category_id"
)

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
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort uint32
)

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-product-rpc/ent/runtime"

Columns holds all SQL columns for spu fields.

Functions

func ActivityOrdersIsNil

func ActivityOrdersIsNil() predicate.Spu

ActivityOrdersIsNil applies the IsNil predicate on the "activity_orders" field.

func ActivityOrdersNotNil

func ActivityOrdersNotNil() predicate.Spu

ActivityOrdersNotNil applies the NotNil predicate on the "activity_orders" field.

func And

func And(predicates ...predicate.Spu) predicate.Spu

And groups predicates with the AND operator between them.

func BarCode

func BarCode(v string) predicate.Spu

BarCode applies equality check predicate on the "bar_code" field. It's identical to BarCodeEQ.

func BarCodeContains

func BarCodeContains(v string) predicate.Spu

BarCodeContains applies the Contains predicate on the "bar_code" field.

func BarCodeContainsFold

func BarCodeContainsFold(v string) predicate.Spu

BarCodeContainsFold applies the ContainsFold predicate on the "bar_code" field.

func BarCodeEQ

func BarCodeEQ(v string) predicate.Spu

BarCodeEQ applies the EQ predicate on the "bar_code" field.

func BarCodeEqualFold

func BarCodeEqualFold(v string) predicate.Spu

BarCodeEqualFold applies the EqualFold predicate on the "bar_code" field.

func BarCodeGT

func BarCodeGT(v string) predicate.Spu

BarCodeGT applies the GT predicate on the "bar_code" field.

func BarCodeGTE

func BarCodeGTE(v string) predicate.Spu

BarCodeGTE applies the GTE predicate on the "bar_code" field.

func BarCodeHasPrefix

func BarCodeHasPrefix(v string) predicate.Spu

BarCodeHasPrefix applies the HasPrefix predicate on the "bar_code" field.

func BarCodeHasSuffix

func BarCodeHasSuffix(v string) predicate.Spu

BarCodeHasSuffix applies the HasSuffix predicate on the "bar_code" field.

func BarCodeIn

func BarCodeIn(vs ...string) predicate.Spu

BarCodeIn applies the In predicate on the "bar_code" field.

func BarCodeIsNil

func BarCodeIsNil() predicate.Spu

BarCodeIsNil applies the IsNil predicate on the "bar_code" field.

func BarCodeLT

func BarCodeLT(v string) predicate.Spu

BarCodeLT applies the LT predicate on the "bar_code" field.

func BarCodeLTE

func BarCodeLTE(v string) predicate.Spu

BarCodeLTE applies the LTE predicate on the "bar_code" field.

func BarCodeNEQ

func BarCodeNEQ(v string) predicate.Spu

BarCodeNEQ applies the NEQ predicate on the "bar_code" field.

func BarCodeNotIn

func BarCodeNotIn(vs ...string) predicate.Spu

BarCodeNotIn applies the NotIn predicate on the "bar_code" field.

func BarCodeNotNil

func BarCodeNotNil() predicate.Spu

BarCodeNotNil applies the NotNil predicate on the "bar_code" field.

func BrandID

func BrandID(v uint64) predicate.Spu

BrandID applies equality check predicate on the "brand_id" field. It's identical to BrandIDEQ.

func BrandIDEQ

func BrandIDEQ(v uint64) predicate.Spu

BrandIDEQ applies the EQ predicate on the "brand_id" field.

func BrandIDIn

func BrandIDIn(vs ...uint64) predicate.Spu

BrandIDIn applies the In predicate on the "brand_id" field.

func BrandIDIsNil

func BrandIDIsNil() predicate.Spu

BrandIDIsNil applies the IsNil predicate on the "brand_id" field.

func BrandIDNEQ

func BrandIDNEQ(v uint64) predicate.Spu

BrandIDNEQ applies the NEQ predicate on the "brand_id" field.

func BrandIDNotIn

func BrandIDNotIn(vs ...uint64) predicate.Spu

BrandIDNotIn applies the NotIn predicate on the "brand_id" field.

func BrandIDNotNil

func BrandIDNotNil() predicate.Spu

BrandIDNotNil applies the NotNil predicate on the "brand_id" field.

func BrowseCount

func BrowseCount(v int32) predicate.Spu

BrowseCount applies equality check predicate on the "browse_count" field. It's identical to BrowseCountEQ.

func BrowseCountEQ

func BrowseCountEQ(v int32) predicate.Spu

BrowseCountEQ applies the EQ predicate on the "browse_count" field.

func BrowseCountGT

func BrowseCountGT(v int32) predicate.Spu

BrowseCountGT applies the GT predicate on the "browse_count" field.

func BrowseCountGTE

func BrowseCountGTE(v int32) predicate.Spu

BrowseCountGTE applies the GTE predicate on the "browse_count" field.

func BrowseCountIn

func BrowseCountIn(vs ...int32) predicate.Spu

BrowseCountIn applies the In predicate on the "browse_count" field.

func BrowseCountIsNil

func BrowseCountIsNil() predicate.Spu

BrowseCountIsNil applies the IsNil predicate on the "browse_count" field.

func BrowseCountLT

func BrowseCountLT(v int32) predicate.Spu

BrowseCountLT applies the LT predicate on the "browse_count" field.

func BrowseCountLTE

func BrowseCountLTE(v int32) predicate.Spu

BrowseCountLTE applies the LTE predicate on the "browse_count" field.

func BrowseCountNEQ

func BrowseCountNEQ(v int32) predicate.Spu

BrowseCountNEQ applies the NEQ predicate on the "browse_count" field.

func BrowseCountNotIn

func BrowseCountNotIn(vs ...int32) predicate.Spu

BrowseCountNotIn applies the NotIn predicate on the "browse_count" field.

func BrowseCountNotNil

func BrowseCountNotNil() predicate.Spu

BrowseCountNotNil applies the NotNil predicate on the "browse_count" field.

func CategoryID

func CategoryID(v uint64) predicate.Spu

CategoryID applies equality check predicate on the "category_id" field. It's identical to CategoryIDEQ.

func CategoryIDEQ

func CategoryIDEQ(v uint64) predicate.Spu

CategoryIDEQ applies the EQ predicate on the "category_id" field.

func CategoryIDIn

func CategoryIDIn(vs ...uint64) predicate.Spu

CategoryIDIn applies the In predicate on the "category_id" field.

func CategoryIDIsNil

func CategoryIDIsNil() predicate.Spu

CategoryIDIsNil applies the IsNil predicate on the "category_id" field.

func CategoryIDNEQ

func CategoryIDNEQ(v uint64) predicate.Spu

CategoryIDNEQ applies the NEQ predicate on the "category_id" field.

func CategoryIDNotIn

func CategoryIDNotIn(vs ...uint64) predicate.Spu

CategoryIDNotIn applies the NotIn predicate on the "category_id" field.

func CategoryIDNotNil

func CategoryIDNotNil() predicate.Spu

CategoryIDNotNil applies the NotNil predicate on the "category_id" field.

func CostPrice

func CostPrice(v int32) predicate.Spu

CostPrice applies equality check predicate on the "cost_price" field. It's identical to CostPriceEQ.

func CostPriceEQ

func CostPriceEQ(v int32) predicate.Spu

CostPriceEQ applies the EQ predicate on the "cost_price" field.

func CostPriceGT

func CostPriceGT(v int32) predicate.Spu

CostPriceGT applies the GT predicate on the "cost_price" field.

func CostPriceGTE

func CostPriceGTE(v int32) predicate.Spu

CostPriceGTE applies the GTE predicate on the "cost_price" field.

func CostPriceIn

func CostPriceIn(vs ...int32) predicate.Spu

CostPriceIn applies the In predicate on the "cost_price" field.

func CostPriceLT

func CostPriceLT(v int32) predicate.Spu

CostPriceLT applies the LT predicate on the "cost_price" field.

func CostPriceLTE

func CostPriceLTE(v int32) predicate.Spu

CostPriceLTE applies the LTE predicate on the "cost_price" field.

func CostPriceNEQ

func CostPriceNEQ(v int32) predicate.Spu

CostPriceNEQ applies the NEQ predicate on the "cost_price" field.

func CostPriceNotIn

func CostPriceNotIn(vs ...int32) predicate.Spu

CostPriceNotIn applies the NotIn predicate on the "cost_price" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Spu

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Spu

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Spu

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Spu

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Spu

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Spu

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Spu

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Spu

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Spu

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Spu

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Spu

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Spu

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Spu

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Spu

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Spu

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Spu

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

func DeliveryTemplateID

func DeliveryTemplateID(v uint64) predicate.Spu

DeliveryTemplateID applies equality check predicate on the "deliveryTemplate_id" field. It's identical to DeliveryTemplateIDEQ.

func DeliveryTemplateIDEQ

func DeliveryTemplateIDEQ(v uint64) predicate.Spu

DeliveryTemplateIDEQ applies the EQ predicate on the "deliveryTemplate_id" field.

func DeliveryTemplateIDGT

func DeliveryTemplateIDGT(v uint64) predicate.Spu

DeliveryTemplateIDGT applies the GT predicate on the "deliveryTemplate_id" field.

func DeliveryTemplateIDGTE

func DeliveryTemplateIDGTE(v uint64) predicate.Spu

DeliveryTemplateIDGTE applies the GTE predicate on the "deliveryTemplate_id" field.

func DeliveryTemplateIDIn

func DeliveryTemplateIDIn(vs ...uint64) predicate.Spu

DeliveryTemplateIDIn applies the In predicate on the "deliveryTemplate_id" field.

func DeliveryTemplateIDIsNil

func DeliveryTemplateIDIsNil() predicate.Spu

DeliveryTemplateIDIsNil applies the IsNil predicate on the "deliveryTemplate_id" field.

func DeliveryTemplateIDLT

func DeliveryTemplateIDLT(v uint64) predicate.Spu

DeliveryTemplateIDLT applies the LT predicate on the "deliveryTemplate_id" field.

func DeliveryTemplateIDLTE

func DeliveryTemplateIDLTE(v uint64) predicate.Spu

DeliveryTemplateIDLTE applies the LTE predicate on the "deliveryTemplate_id" field.

func DeliveryTemplateIDNEQ

func DeliveryTemplateIDNEQ(v uint64) predicate.Spu

DeliveryTemplateIDNEQ applies the NEQ predicate on the "deliveryTemplate_id" field.

func DeliveryTemplateIDNotIn

func DeliveryTemplateIDNotIn(vs ...uint64) predicate.Spu

DeliveryTemplateIDNotIn applies the NotIn predicate on the "deliveryTemplate_id" field.

func DeliveryTemplateIDNotNil

func DeliveryTemplateIDNotNil() predicate.Spu

DeliveryTemplateIDNotNil applies the NotNil predicate on the "deliveryTemplate_id" field.

func Description

func Description(v string) predicate.Spu

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Spu

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Spu

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Spu

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Spu

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Spu

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Spu

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Spu

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Spu

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Spu

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Spu

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Spu

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Spu

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Spu

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Spu

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Spu

DescriptionNotNil applies the NotNil predicate on the "description" field.

func GiveCouponTemplateIdsIsNil

func GiveCouponTemplateIdsIsNil() predicate.Spu

GiveCouponTemplateIdsIsNil applies the IsNil predicate on the "give_coupon_template_ids" field.

func GiveCouponTemplateIdsNotNil

func GiveCouponTemplateIdsNotNil() predicate.Spu

GiveCouponTemplateIdsNotNil applies the NotNil predicate on the "give_coupon_template_ids" field.

func GiveIntegral

func GiveIntegral(v int32) predicate.Spu

GiveIntegral applies equality check predicate on the "give_integral" field. It's identical to GiveIntegralEQ.

func GiveIntegralEQ

func GiveIntegralEQ(v int32) predicate.Spu

GiveIntegralEQ applies the EQ predicate on the "give_integral" field.

func GiveIntegralGT

func GiveIntegralGT(v int32) predicate.Spu

GiveIntegralGT applies the GT predicate on the "give_integral" field.

func GiveIntegralGTE

func GiveIntegralGTE(v int32) predicate.Spu

GiveIntegralGTE applies the GTE predicate on the "give_integral" field.

func GiveIntegralIn

func GiveIntegralIn(vs ...int32) predicate.Spu

GiveIntegralIn applies the In predicate on the "give_integral" field.

func GiveIntegralIsNil

func GiveIntegralIsNil() predicate.Spu

GiveIntegralIsNil applies the IsNil predicate on the "give_integral" field.

func GiveIntegralLT

func GiveIntegralLT(v int32) predicate.Spu

GiveIntegralLT applies the LT predicate on the "give_integral" field.

func GiveIntegralLTE

func GiveIntegralLTE(v int32) predicate.Spu

GiveIntegralLTE applies the LTE predicate on the "give_integral" field.

func GiveIntegralNEQ

func GiveIntegralNEQ(v int32) predicate.Spu

GiveIntegralNEQ applies the NEQ predicate on the "give_integral" field.

func GiveIntegralNotIn

func GiveIntegralNotIn(vs ...int32) predicate.Spu

GiveIntegralNotIn applies the NotIn predicate on the "give_integral" field.

func GiveIntegralNotNil

func GiveIntegralNotNil() predicate.Spu

GiveIntegralNotNil applies the NotNil predicate on the "give_integral" field.

func HasBrands

func HasBrands() predicate.Spu

HasBrands applies the HasEdge predicate on the "brands" edge.

func HasBrandsWith

func HasBrandsWith(preds ...predicate.Brand) predicate.Spu

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

func HasCategorys

func HasCategorys() predicate.Spu

HasCategorys applies the HasEdge predicate on the "categorys" edge.

func HasCategorysWith

func HasCategorysWith(preds ...predicate.Category) predicate.Spu

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

func HasSkus

func HasSkus() predicate.Spu

HasSkus applies the HasEdge predicate on the "skus" edge.

func HasSkusWith

func HasSkusWith(preds ...predicate.Sku) predicate.Spu

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

func ID

func ID(id uint64) predicate.Spu

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.Spu

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.Spu

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.Spu

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.Spu

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.Spu

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.Spu

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Introduction

func Introduction(v string) predicate.Spu

Introduction applies equality check predicate on the "introduction" field. It's identical to IntroductionEQ.

func IntroductionContains

func IntroductionContains(v string) predicate.Spu

IntroductionContains applies the Contains predicate on the "introduction" field.

func IntroductionContainsFold

func IntroductionContainsFold(v string) predicate.Spu

IntroductionContainsFold applies the ContainsFold predicate on the "introduction" field.

func IntroductionEQ

func IntroductionEQ(v string) predicate.Spu

IntroductionEQ applies the EQ predicate on the "introduction" field.

func IntroductionEqualFold

func IntroductionEqualFold(v string) predicate.Spu

IntroductionEqualFold applies the EqualFold predicate on the "introduction" field.

func IntroductionGT

func IntroductionGT(v string) predicate.Spu

IntroductionGT applies the GT predicate on the "introduction" field.

func IntroductionGTE

func IntroductionGTE(v string) predicate.Spu

IntroductionGTE applies the GTE predicate on the "introduction" field.

func IntroductionHasPrefix

func IntroductionHasPrefix(v string) predicate.Spu

IntroductionHasPrefix applies the HasPrefix predicate on the "introduction" field.

func IntroductionHasSuffix

func IntroductionHasSuffix(v string) predicate.Spu

IntroductionHasSuffix applies the HasSuffix predicate on the "introduction" field.

func IntroductionIn

func IntroductionIn(vs ...string) predicate.Spu

IntroductionIn applies the In predicate on the "introduction" field.

func IntroductionIsNil

func IntroductionIsNil() predicate.Spu

IntroductionIsNil applies the IsNil predicate on the "introduction" field.

func IntroductionLT

func IntroductionLT(v string) predicate.Spu

IntroductionLT applies the LT predicate on the "introduction" field.

func IntroductionLTE

func IntroductionLTE(v string) predicate.Spu

IntroductionLTE applies the LTE predicate on the "introduction" field.

func IntroductionNEQ

func IntroductionNEQ(v string) predicate.Spu

IntroductionNEQ applies the NEQ predicate on the "introduction" field.

func IntroductionNotIn

func IntroductionNotIn(vs ...string) predicate.Spu

IntroductionNotIn applies the NotIn predicate on the "introduction" field.

func IntroductionNotNil

func IntroductionNotNil() predicate.Spu

IntroductionNotNil applies the NotNil predicate on the "introduction" field.

func Keyword

func Keyword(v string) predicate.Spu

Keyword applies equality check predicate on the "keyword" field. It's identical to KeywordEQ.

func KeywordContains

func KeywordContains(v string) predicate.Spu

KeywordContains applies the Contains predicate on the "keyword" field.

func KeywordContainsFold

func KeywordContainsFold(v string) predicate.Spu

KeywordContainsFold applies the ContainsFold predicate on the "keyword" field.

func KeywordEQ

func KeywordEQ(v string) predicate.Spu

KeywordEQ applies the EQ predicate on the "keyword" field.

func KeywordEqualFold

func KeywordEqualFold(v string) predicate.Spu

KeywordEqualFold applies the EqualFold predicate on the "keyword" field.

func KeywordGT

func KeywordGT(v string) predicate.Spu

KeywordGT applies the GT predicate on the "keyword" field.

func KeywordGTE

func KeywordGTE(v string) predicate.Spu

KeywordGTE applies the GTE predicate on the "keyword" field.

func KeywordHasPrefix

func KeywordHasPrefix(v string) predicate.Spu

KeywordHasPrefix applies the HasPrefix predicate on the "keyword" field.

func KeywordHasSuffix

func KeywordHasSuffix(v string) predicate.Spu

KeywordHasSuffix applies the HasSuffix predicate on the "keyword" field.

func KeywordIn

func KeywordIn(vs ...string) predicate.Spu

KeywordIn applies the In predicate on the "keyword" field.

func KeywordIsNil

func KeywordIsNil() predicate.Spu

KeywordIsNil applies the IsNil predicate on the "keyword" field.

func KeywordLT

func KeywordLT(v string) predicate.Spu

KeywordLT applies the LT predicate on the "keyword" field.

func KeywordLTE

func KeywordLTE(v string) predicate.Spu

KeywordLTE applies the LTE predicate on the "keyword" field.

func KeywordNEQ

func KeywordNEQ(v string) predicate.Spu

KeywordNEQ applies the NEQ predicate on the "keyword" field.

func KeywordNotIn

func KeywordNotIn(vs ...string) predicate.Spu

KeywordNotIn applies the NotIn predicate on the "keyword" field.

func KeywordNotNil

func KeywordNotNil() predicate.Spu

KeywordNotNil applies the NotNil predicate on the "keyword" field.

func MarketPrice

func MarketPrice(v int32) predicate.Spu

MarketPrice applies equality check predicate on the "market_price" field. It's identical to MarketPriceEQ.

func MarketPriceEQ

func MarketPriceEQ(v int32) predicate.Spu

MarketPriceEQ applies the EQ predicate on the "market_price" field.

func MarketPriceGT

func MarketPriceGT(v int32) predicate.Spu

MarketPriceGT applies the GT predicate on the "market_price" field.

func MarketPriceGTE

func MarketPriceGTE(v int32) predicate.Spu

MarketPriceGTE applies the GTE predicate on the "market_price" field.

func MarketPriceIn

func MarketPriceIn(vs ...int32) predicate.Spu

MarketPriceIn applies the In predicate on the "market_price" field.

func MarketPriceIsNil

func MarketPriceIsNil() predicate.Spu

MarketPriceIsNil applies the IsNil predicate on the "market_price" field.

func MarketPriceLT

func MarketPriceLT(v int32) predicate.Spu

MarketPriceLT applies the LT predicate on the "market_price" field.

func MarketPriceLTE

func MarketPriceLTE(v int32) predicate.Spu

MarketPriceLTE applies the LTE predicate on the "market_price" field.

func MarketPriceNEQ

func MarketPriceNEQ(v int32) predicate.Spu

MarketPriceNEQ applies the NEQ predicate on the "market_price" field.

func MarketPriceNotIn

func MarketPriceNotIn(vs ...int32) predicate.Spu

MarketPriceNotIn applies the NotIn predicate on the "market_price" field.

func MarketPriceNotNil

func MarketPriceNotNil() predicate.Spu

MarketPriceNotNil applies the NotNil predicate on the "market_price" field.

func Name

func Name(v string) predicate.Spu

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

func NameContains

func NameContains(v string) predicate.Spu

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

func NameContainsFold

func NameContainsFold(v string) predicate.Spu

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

func NameEQ

func NameEQ(v string) predicate.Spu

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

func NameEqualFold

func NameEqualFold(v string) predicate.Spu

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

func NameGT

func NameGT(v string) predicate.Spu

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

func NameGTE

func NameGTE(v string) predicate.Spu

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Spu

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Spu

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Spu

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

func NameLTE

func NameLTE(v string) predicate.Spu

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

func NameNEQ

func NameNEQ(v string) predicate.Spu

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

func NameNotIn

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

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

func Not

func Not(p predicate.Spu) predicate.Spu

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Spu) predicate.Spu

Or groups predicates with the OR operator between them.

func PicURL

func PicURL(v string) predicate.Spu

PicURL applies equality check predicate on the "pic_url" field. It's identical to PicURLEQ.

func PicURLContains

func PicURLContains(v string) predicate.Spu

PicURLContains applies the Contains predicate on the "pic_url" field.

func PicURLContainsFold

func PicURLContainsFold(v string) predicate.Spu

PicURLContainsFold applies the ContainsFold predicate on the "pic_url" field.

func PicURLEQ

func PicURLEQ(v string) predicate.Spu

PicURLEQ applies the EQ predicate on the "pic_url" field.

func PicURLEqualFold

func PicURLEqualFold(v string) predicate.Spu

PicURLEqualFold applies the EqualFold predicate on the "pic_url" field.

func PicURLGT

func PicURLGT(v string) predicate.Spu

PicURLGT applies the GT predicate on the "pic_url" field.

func PicURLGTE

func PicURLGTE(v string) predicate.Spu

PicURLGTE applies the GTE predicate on the "pic_url" field.

func PicURLHasPrefix

func PicURLHasPrefix(v string) predicate.Spu

PicURLHasPrefix applies the HasPrefix predicate on the "pic_url" field.

func PicURLHasSuffix

func PicURLHasSuffix(v string) predicate.Spu

PicURLHasSuffix applies the HasSuffix predicate on the "pic_url" field.

func PicURLIn

func PicURLIn(vs ...string) predicate.Spu

PicURLIn applies the In predicate on the "pic_url" field.

func PicURLLT

func PicURLLT(v string) predicate.Spu

PicURLLT applies the LT predicate on the "pic_url" field.

func PicURLLTE

func PicURLLTE(v string) predicate.Spu

PicURLLTE applies the LTE predicate on the "pic_url" field.

func PicURLNEQ

func PicURLNEQ(v string) predicate.Spu

PicURLNEQ applies the NEQ predicate on the "pic_url" field.

func PicURLNotIn

func PicURLNotIn(vs ...string) predicate.Spu

PicURLNotIn applies the NotIn predicate on the "pic_url" field.

func Price

func Price(v int32) predicate.Spu

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

func PriceEQ

func PriceEQ(v int32) predicate.Spu

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

func PriceGT

func PriceGT(v int32) predicate.Spu

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

func PriceGTE

func PriceGTE(v int32) predicate.Spu

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

func PriceIn

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

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

func PriceLT

func PriceLT(v int32) predicate.Spu

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

func PriceLTE

func PriceLTE(v int32) predicate.Spu

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

func PriceNEQ

func PriceNEQ(v int32) predicate.Spu

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

func PriceNotIn

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

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

func RecommendBenefit

func RecommendBenefit(v bool) predicate.Spu

RecommendBenefit applies equality check predicate on the "recommend_benefit" field. It's identical to RecommendBenefitEQ.

func RecommendBenefitEQ

func RecommendBenefitEQ(v bool) predicate.Spu

RecommendBenefitEQ applies the EQ predicate on the "recommend_benefit" field.

func RecommendBenefitIsNil

func RecommendBenefitIsNil() predicate.Spu

RecommendBenefitIsNil applies the IsNil predicate on the "recommend_benefit" field.

func RecommendBenefitNEQ

func RecommendBenefitNEQ(v bool) predicate.Spu

RecommendBenefitNEQ applies the NEQ predicate on the "recommend_benefit" field.

func RecommendBenefitNotNil

func RecommendBenefitNotNil() predicate.Spu

RecommendBenefitNotNil applies the NotNil predicate on the "recommend_benefit" field.

func RecommendBest

func RecommendBest(v bool) predicate.Spu

RecommendBest applies equality check predicate on the "recommend_best" field. It's identical to RecommendBestEQ.

func RecommendBestEQ

func RecommendBestEQ(v bool) predicate.Spu

RecommendBestEQ applies the EQ predicate on the "recommend_best" field.

func RecommendBestIsNil

func RecommendBestIsNil() predicate.Spu

RecommendBestIsNil applies the IsNil predicate on the "recommend_best" field.

func RecommendBestNEQ

func RecommendBestNEQ(v bool) predicate.Spu

RecommendBestNEQ applies the NEQ predicate on the "recommend_best" field.

func RecommendBestNotNil

func RecommendBestNotNil() predicate.Spu

RecommendBestNotNil applies the NotNil predicate on the "recommend_best" field.

func RecommendGood

func RecommendGood(v bool) predicate.Spu

RecommendGood applies equality check predicate on the "recommend_good" field. It's identical to RecommendGoodEQ.

func RecommendGoodEQ

func RecommendGoodEQ(v bool) predicate.Spu

RecommendGoodEQ applies the EQ predicate on the "recommend_good" field.

func RecommendGoodIsNil

func RecommendGoodIsNil() predicate.Spu

RecommendGoodIsNil applies the IsNil predicate on the "recommend_good" field.

func RecommendGoodNEQ

func RecommendGoodNEQ(v bool) predicate.Spu

RecommendGoodNEQ applies the NEQ predicate on the "recommend_good" field.

func RecommendGoodNotNil

func RecommendGoodNotNil() predicate.Spu

RecommendGoodNotNil applies the NotNil predicate on the "recommend_good" field.

func RecommendHot

func RecommendHot(v bool) predicate.Spu

RecommendHot applies equality check predicate on the "recommend_hot" field. It's identical to RecommendHotEQ.

func RecommendHotEQ

func RecommendHotEQ(v bool) predicate.Spu

RecommendHotEQ applies the EQ predicate on the "recommend_hot" field.

func RecommendHotIsNil

func RecommendHotIsNil() predicate.Spu

RecommendHotIsNil applies the IsNil predicate on the "recommend_hot" field.

func RecommendHotNEQ

func RecommendHotNEQ(v bool) predicate.Spu

RecommendHotNEQ applies the NEQ predicate on the "recommend_hot" field.

func RecommendHotNotNil

func RecommendHotNotNil() predicate.Spu

RecommendHotNotNil applies the NotNil predicate on the "recommend_hot" field.

func RecommendNew

func RecommendNew(v bool) predicate.Spu

RecommendNew applies equality check predicate on the "recommend_new" field. It's identical to RecommendNewEQ.

func RecommendNewEQ

func RecommendNewEQ(v bool) predicate.Spu

RecommendNewEQ applies the EQ predicate on the "recommend_new" field.

func RecommendNewIsNil

func RecommendNewIsNil() predicate.Spu

RecommendNewIsNil applies the IsNil predicate on the "recommend_new" field.

func RecommendNewNEQ

func RecommendNewNEQ(v bool) predicate.Spu

RecommendNewNEQ applies the NEQ predicate on the "recommend_new" field.

func RecommendNewNotNil

func RecommendNewNotNil() predicate.Spu

RecommendNewNotNil applies the NotNil predicate on the "recommend_new" field.

func SalesCount

func SalesCount(v int32) predicate.Spu

SalesCount applies equality check predicate on the "sales_count" field. It's identical to SalesCountEQ.

func SalesCountEQ

func SalesCountEQ(v int32) predicate.Spu

SalesCountEQ applies the EQ predicate on the "sales_count" field.

func SalesCountGT

func SalesCountGT(v int32) predicate.Spu

SalesCountGT applies the GT predicate on the "sales_count" field.

func SalesCountGTE

func SalesCountGTE(v int32) predicate.Spu

SalesCountGTE applies the GTE predicate on the "sales_count" field.

func SalesCountIn

func SalesCountIn(vs ...int32) predicate.Spu

SalesCountIn applies the In predicate on the "sales_count" field.

func SalesCountIsNil

func SalesCountIsNil() predicate.Spu

SalesCountIsNil applies the IsNil predicate on the "sales_count" field.

func SalesCountLT

func SalesCountLT(v int32) predicate.Spu

SalesCountLT applies the LT predicate on the "sales_count" field.

func SalesCountLTE

func SalesCountLTE(v int32) predicate.Spu

SalesCountLTE applies the LTE predicate on the "sales_count" field.

func SalesCountNEQ

func SalesCountNEQ(v int32) predicate.Spu

SalesCountNEQ applies the NEQ predicate on the "sales_count" field.

func SalesCountNotIn

func SalesCountNotIn(vs ...int32) predicate.Spu

SalesCountNotIn applies the NotIn predicate on the "sales_count" field.

func SalesCountNotNil

func SalesCountNotNil() predicate.Spu

SalesCountNotNil applies the NotNil predicate on the "sales_count" field.

func SliderPicUrlsIsNil

func SliderPicUrlsIsNil() predicate.Spu

SliderPicUrlsIsNil applies the IsNil predicate on the "slider_pic_urls" field.

func SliderPicUrlsNotNil

func SliderPicUrlsNotNil() predicate.Spu

SliderPicUrlsNotNil applies the NotNil predicate on the "slider_pic_urls" field.

func Sort

func Sort(v uint32) predicate.Spu

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

func SortEQ

func SortEQ(v uint32) predicate.Spu

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

func SortGT

func SortGT(v uint32) predicate.Spu

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

func SortGTE

func SortGTE(v uint32) predicate.Spu

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

func SortIn

func SortIn(vs ...uint32) predicate.Spu

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

func SortLT

func SortLT(v uint32) predicate.Spu

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

func SortLTE

func SortLTE(v uint32) predicate.Spu

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

func SortNEQ

func SortNEQ(v uint32) predicate.Spu

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

func SortNotIn

func SortNotIn(vs ...uint32) predicate.Spu

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

func SpecType

func SpecType(v bool) predicate.Spu

SpecType applies equality check predicate on the "spec_type" field. It's identical to SpecTypeEQ.

func SpecTypeEQ

func SpecTypeEQ(v bool) predicate.Spu

SpecTypeEQ applies the EQ predicate on the "spec_type" field.

func SpecTypeIsNil

func SpecTypeIsNil() predicate.Spu

SpecTypeIsNil applies the IsNil predicate on the "spec_type" field.

func SpecTypeNEQ

func SpecTypeNEQ(v bool) predicate.Spu

SpecTypeNEQ applies the NEQ predicate on the "spec_type" field.

func SpecTypeNotNil

func SpecTypeNotNil() predicate.Spu

SpecTypeNotNil applies the NotNil predicate on the "spec_type" field.

func Status

func Status(v uint8) predicate.Spu

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

func StatusEQ

func StatusEQ(v uint8) predicate.Spu

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

func StatusGT

func StatusGT(v uint8) predicate.Spu

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

func StatusGTE

func StatusGTE(v uint8) predicate.Spu

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

func StatusIn

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

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

func StatusIsNil

func StatusIsNil() predicate.Spu

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

func StatusLT

func StatusLT(v uint8) predicate.Spu

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

func StatusLTE

func StatusLTE(v uint8) predicate.Spu

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

func StatusNEQ

func StatusNEQ(v uint8) predicate.Spu

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

func StatusNotIn

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

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

func StatusNotNil

func StatusNotNil() predicate.Spu

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

func Stock

func Stock(v int32) predicate.Spu

Stock applies equality check predicate on the "stock" field. It's identical to StockEQ.

func StockEQ

func StockEQ(v int32) predicate.Spu

StockEQ applies the EQ predicate on the "stock" field.

func StockGT

func StockGT(v int32) predicate.Spu

StockGT applies the GT predicate on the "stock" field.

func StockGTE

func StockGTE(v int32) predicate.Spu

StockGTE applies the GTE predicate on the "stock" field.

func StockIn

func StockIn(vs ...int32) predicate.Spu

StockIn applies the In predicate on the "stock" field.

func StockLT

func StockLT(v int32) predicate.Spu

StockLT applies the LT predicate on the "stock" field.

func StockLTE

func StockLTE(v int32) predicate.Spu

StockLTE applies the LTE predicate on the "stock" field.

func StockNEQ

func StockNEQ(v int32) predicate.Spu

StockNEQ applies the NEQ predicate on the "stock" field.

func StockNotIn

func StockNotIn(vs ...int32) predicate.Spu

StockNotIn applies the NotIn predicate on the "stock" field.

func SubCommissionType

func SubCommissionType(v bool) predicate.Spu

SubCommissionType applies equality check predicate on the "sub_commission_type" field. It's identical to SubCommissionTypeEQ.

func SubCommissionTypeEQ

func SubCommissionTypeEQ(v bool) predicate.Spu

SubCommissionTypeEQ applies the EQ predicate on the "sub_commission_type" field.

func SubCommissionTypeIsNil

func SubCommissionTypeIsNil() predicate.Spu

SubCommissionTypeIsNil applies the IsNil predicate on the "sub_commission_type" field.

func SubCommissionTypeNEQ

func SubCommissionTypeNEQ(v bool) predicate.Spu

SubCommissionTypeNEQ applies the NEQ predicate on the "sub_commission_type" field.

func SubCommissionTypeNotNil

func SubCommissionTypeNotNil() predicate.Spu

SubCommissionTypeNotNil applies the NotNil predicate on the "sub_commission_type" field.

func Unit

func Unit(v uint8) predicate.Spu

Unit applies equality check predicate on the "unit" field. It's identical to UnitEQ.

func UnitEQ

func UnitEQ(v uint8) predicate.Spu

UnitEQ applies the EQ predicate on the "unit" field.

func UnitGT

func UnitGT(v uint8) predicate.Spu

UnitGT applies the GT predicate on the "unit" field.

func UnitGTE

func UnitGTE(v uint8) predicate.Spu

UnitGTE applies the GTE predicate on the "unit" field.

func UnitIn

func UnitIn(vs ...uint8) predicate.Spu

UnitIn applies the In predicate on the "unit" field.

func UnitLT

func UnitLT(v uint8) predicate.Spu

UnitLT applies the LT predicate on the "unit" field.

func UnitLTE

func UnitLTE(v uint8) predicate.Spu

UnitLTE applies the LTE predicate on the "unit" field.

func UnitNEQ

func UnitNEQ(v uint8) predicate.Spu

UnitNEQ applies the NEQ predicate on the "unit" field.

func UnitNotIn

func UnitNotIn(vs ...uint8) predicate.Spu

UnitNotIn applies the NotIn predicate on the "unit" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Spu

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Spu

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Spu

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Spu

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Spu

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Spu

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Spu

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

func UpdatedAtNotIn

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

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

func VideoURL

func VideoURL(v string) predicate.Spu

VideoURL applies equality check predicate on the "video_url" field. It's identical to VideoURLEQ.

func VideoURLContains

func VideoURLContains(v string) predicate.Spu

VideoURLContains applies the Contains predicate on the "video_url" field.

func VideoURLContainsFold

func VideoURLContainsFold(v string) predicate.Spu

VideoURLContainsFold applies the ContainsFold predicate on the "video_url" field.

func VideoURLEQ

func VideoURLEQ(v string) predicate.Spu

VideoURLEQ applies the EQ predicate on the "video_url" field.

func VideoURLEqualFold

func VideoURLEqualFold(v string) predicate.Spu

VideoURLEqualFold applies the EqualFold predicate on the "video_url" field.

func VideoURLGT

func VideoURLGT(v string) predicate.Spu

VideoURLGT applies the GT predicate on the "video_url" field.

func VideoURLGTE

func VideoURLGTE(v string) predicate.Spu

VideoURLGTE applies the GTE predicate on the "video_url" field.

func VideoURLHasPrefix

func VideoURLHasPrefix(v string) predicate.Spu

VideoURLHasPrefix applies the HasPrefix predicate on the "video_url" field.

func VideoURLHasSuffix

func VideoURLHasSuffix(v string) predicate.Spu

VideoURLHasSuffix applies the HasSuffix predicate on the "video_url" field.

func VideoURLIn

func VideoURLIn(vs ...string) predicate.Spu

VideoURLIn applies the In predicate on the "video_url" field.

func VideoURLIsNil

func VideoURLIsNil() predicate.Spu

VideoURLIsNil applies the IsNil predicate on the "video_url" field.

func VideoURLLT

func VideoURLLT(v string) predicate.Spu

VideoURLLT applies the LT predicate on the "video_url" field.

func VideoURLLTE

func VideoURLLTE(v string) predicate.Spu

VideoURLLTE applies the LTE predicate on the "video_url" field.

func VideoURLNEQ

func VideoURLNEQ(v string) predicate.Spu

VideoURLNEQ applies the NEQ predicate on the "video_url" field.

func VideoURLNotIn

func VideoURLNotIn(vs ...string) predicate.Spu

VideoURLNotIn applies the NotIn predicate on the "video_url" field.

func VideoURLNotNil

func VideoURLNotNil() predicate.Spu

VideoURLNotNil applies the NotNil predicate on the "video_url" field.

func VirtualSalesCount

func VirtualSalesCount(v int32) predicate.Spu

VirtualSalesCount applies equality check predicate on the "virtual_sales_count" field. It's identical to VirtualSalesCountEQ.

func VirtualSalesCountEQ

func VirtualSalesCountEQ(v int32) predicate.Spu

VirtualSalesCountEQ applies the EQ predicate on the "virtual_sales_count" field.

func VirtualSalesCountGT

func VirtualSalesCountGT(v int32) predicate.Spu

VirtualSalesCountGT applies the GT predicate on the "virtual_sales_count" field.

func VirtualSalesCountGTE

func VirtualSalesCountGTE(v int32) predicate.Spu

VirtualSalesCountGTE applies the GTE predicate on the "virtual_sales_count" field.

func VirtualSalesCountIn

func VirtualSalesCountIn(vs ...int32) predicate.Spu

VirtualSalesCountIn applies the In predicate on the "virtual_sales_count" field.

func VirtualSalesCountIsNil

func VirtualSalesCountIsNil() predicate.Spu

VirtualSalesCountIsNil applies the IsNil predicate on the "virtual_sales_count" field.

func VirtualSalesCountLT

func VirtualSalesCountLT(v int32) predicate.Spu

VirtualSalesCountLT applies the LT predicate on the "virtual_sales_count" field.

func VirtualSalesCountLTE

func VirtualSalesCountLTE(v int32) predicate.Spu

VirtualSalesCountLTE applies the LTE predicate on the "virtual_sales_count" field.

func VirtualSalesCountNEQ

func VirtualSalesCountNEQ(v int32) predicate.Spu

VirtualSalesCountNEQ applies the NEQ predicate on the "virtual_sales_count" field.

func VirtualSalesCountNotIn

func VirtualSalesCountNotIn(vs ...int32) predicate.Spu

VirtualSalesCountNotIn applies the NotIn predicate on the "virtual_sales_count" field.

func VirtualSalesCountNotNil

func VirtualSalesCountNotNil() predicate.Spu

VirtualSalesCountNotNil applies the NotNil predicate on the "virtual_sales_count" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Spu queries.

func ByBarCode

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

ByBarCode orders the results by the bar_code field.

func ByBrandID

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

ByBrandID orders the results by the brand_id field.

func ByBrandsField

func ByBrandsField(field string, opts ...sql.OrderTermOption) OrderOption

ByBrandsField orders the results by brands field.

func ByBrowseCount

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

ByBrowseCount orders the results by the browse_count field.

func ByCategoryID

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

ByCategoryID orders the results by the category_id field.

func ByCategorysField

func ByCategorysField(field string, opts ...sql.OrderTermOption) OrderOption

ByCategorysField orders the results by categorys field.

func ByCostPrice

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

ByCostPrice orders the results by the cost_price 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 ByDeliveryTemplateID

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

ByDeliveryTemplateID orders the results by the deliveryTemplate_id field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByGiveIntegral

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

ByGiveIntegral orders the results by the give_integral field.

func ByID

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

ByID orders the results by the id field.

func ByIntroduction

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

ByIntroduction orders the results by the introduction field.

func ByKeyword

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

ByKeyword orders the results by the keyword field.

func ByMarketPrice

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

ByMarketPrice orders the results by the market_price field.

func ByName

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

ByName orders the results by the name field.

func ByPicURL

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

ByPicURL orders the results by the pic_url field.

func ByPrice

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

ByPrice orders the results by the price field.

func ByRecommendBenefit

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

ByRecommendBenefit orders the results by the recommend_benefit field.

func ByRecommendBest

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

ByRecommendBest orders the results by the recommend_best field.

func ByRecommendGood

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

ByRecommendGood orders the results by the recommend_good field.

func ByRecommendHot

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

ByRecommendHot orders the results by the recommend_hot field.

func ByRecommendNew

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

ByRecommendNew orders the results by the recommend_new field.

func BySalesCount

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

BySalesCount orders the results by the sales_count field.

func BySkus

func BySkus(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySkus orders the results by skus terms.

func BySkusCount

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

BySkusCount orders the results by skus count.

func BySort

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

BySort orders the results by the sort field.

func BySpecType

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

BySpecType orders the results by the spec_type field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByStock

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

ByStock orders the results by the stock field.

func BySubCommissionType

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

BySubCommissionType orders the results by the sub_commission_type field.

func ByUnit

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

ByUnit orders the results by the unit field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVideoURL

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

ByVideoURL orders the results by the video_url field.

func ByVirtualSalesCount

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

ByVirtualSalesCount orders the results by the virtual_sales_count field.

Jump to

Keyboard shortcuts

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