Documentation ¶
Index ¶
- Constants
- Variables
- func ActivityOrdersIsNil() predicate.Spu
- func ActivityOrdersNotNil() predicate.Spu
- func And(predicates ...predicate.Spu) predicate.Spu
- func BarCode(v string) predicate.Spu
- func BarCodeContains(v string) predicate.Spu
- func BarCodeContainsFold(v string) predicate.Spu
- func BarCodeEQ(v string) predicate.Spu
- func BarCodeEqualFold(v string) predicate.Spu
- func BarCodeGT(v string) predicate.Spu
- func BarCodeGTE(v string) predicate.Spu
- func BarCodeHasPrefix(v string) predicate.Spu
- func BarCodeHasSuffix(v string) predicate.Spu
- func BarCodeIn(vs ...string) predicate.Spu
- func BarCodeIsNil() predicate.Spu
- func BarCodeLT(v string) predicate.Spu
- func BarCodeLTE(v string) predicate.Spu
- func BarCodeNEQ(v string) predicate.Spu
- func BarCodeNotIn(vs ...string) predicate.Spu
- func BarCodeNotNil() predicate.Spu
- func BrandID(v uint64) predicate.Spu
- func BrandIDEQ(v uint64) predicate.Spu
- func BrandIDIn(vs ...uint64) predicate.Spu
- func BrandIDIsNil() predicate.Spu
- func BrandIDNEQ(v uint64) predicate.Spu
- func BrandIDNotIn(vs ...uint64) predicate.Spu
- func BrandIDNotNil() predicate.Spu
- func BrowseCount(v int32) predicate.Spu
- func BrowseCountEQ(v int32) predicate.Spu
- func BrowseCountGT(v int32) predicate.Spu
- func BrowseCountGTE(v int32) predicate.Spu
- func BrowseCountIn(vs ...int32) predicate.Spu
- func BrowseCountIsNil() predicate.Spu
- func BrowseCountLT(v int32) predicate.Spu
- func BrowseCountLTE(v int32) predicate.Spu
- func BrowseCountNEQ(v int32) predicate.Spu
- func BrowseCountNotIn(vs ...int32) predicate.Spu
- func BrowseCountNotNil() predicate.Spu
- func CategoryID(v uint64) predicate.Spu
- func CategoryIDEQ(v uint64) predicate.Spu
- func CategoryIDIn(vs ...uint64) predicate.Spu
- func CategoryIDIsNil() predicate.Spu
- func CategoryIDNEQ(v uint64) predicate.Spu
- func CategoryIDNotIn(vs ...uint64) predicate.Spu
- func CategoryIDNotNil() predicate.Spu
- func CostPrice(v int32) predicate.Spu
- func CostPriceEQ(v int32) predicate.Spu
- func CostPriceGT(v int32) predicate.Spu
- func CostPriceGTE(v int32) predicate.Spu
- func CostPriceIn(vs ...int32) predicate.Spu
- func CostPriceLT(v int32) predicate.Spu
- func CostPriceLTE(v int32) predicate.Spu
- func CostPriceNEQ(v int32) predicate.Spu
- func CostPriceNotIn(vs ...int32) predicate.Spu
- func CreatedAt(v time.Time) predicate.Spu
- func CreatedAtEQ(v time.Time) predicate.Spu
- func CreatedAtGT(v time.Time) predicate.Spu
- func CreatedAtGTE(v time.Time) predicate.Spu
- func CreatedAtIn(vs ...time.Time) predicate.Spu
- func CreatedAtLT(v time.Time) predicate.Spu
- func CreatedAtLTE(v time.Time) predicate.Spu
- func CreatedAtNEQ(v time.Time) predicate.Spu
- func CreatedAtNotIn(vs ...time.Time) predicate.Spu
- func DeletedAt(v time.Time) predicate.Spu
- func DeletedAtEQ(v time.Time) predicate.Spu
- func DeletedAtGT(v time.Time) predicate.Spu
- func DeletedAtGTE(v time.Time) predicate.Spu
- func DeletedAtIn(vs ...time.Time) predicate.Spu
- func DeletedAtIsNil() predicate.Spu
- func DeletedAtLT(v time.Time) predicate.Spu
- func DeletedAtLTE(v time.Time) predicate.Spu
- func DeletedAtNEQ(v time.Time) predicate.Spu
- func DeletedAtNotIn(vs ...time.Time) predicate.Spu
- func DeletedAtNotNil() predicate.Spu
- func DeliveryTemplateID(v uint64) predicate.Spu
- func DeliveryTemplateIDEQ(v uint64) predicate.Spu
- func DeliveryTemplateIDGT(v uint64) predicate.Spu
- func DeliveryTemplateIDGTE(v uint64) predicate.Spu
- func DeliveryTemplateIDIn(vs ...uint64) predicate.Spu
- func DeliveryTemplateIDIsNil() predicate.Spu
- func DeliveryTemplateIDLT(v uint64) predicate.Spu
- func DeliveryTemplateIDLTE(v uint64) predicate.Spu
- func DeliveryTemplateIDNEQ(v uint64) predicate.Spu
- func DeliveryTemplateIDNotIn(vs ...uint64) predicate.Spu
- func DeliveryTemplateIDNotNil() predicate.Spu
- func Description(v string) predicate.Spu
- func DescriptionContains(v string) predicate.Spu
- func DescriptionContainsFold(v string) predicate.Spu
- func DescriptionEQ(v string) predicate.Spu
- func DescriptionEqualFold(v string) predicate.Spu
- func DescriptionGT(v string) predicate.Spu
- func DescriptionGTE(v string) predicate.Spu
- func DescriptionHasPrefix(v string) predicate.Spu
- func DescriptionHasSuffix(v string) predicate.Spu
- func DescriptionIn(vs ...string) predicate.Spu
- func DescriptionIsNil() predicate.Spu
- func DescriptionLT(v string) predicate.Spu
- func DescriptionLTE(v string) predicate.Spu
- func DescriptionNEQ(v string) predicate.Spu
- func DescriptionNotIn(vs ...string) predicate.Spu
- func DescriptionNotNil() predicate.Spu
- func GiveCouponTemplateIdsIsNil() predicate.Spu
- func GiveCouponTemplateIdsNotNil() predicate.Spu
- func GiveIntegral(v int32) predicate.Spu
- func GiveIntegralEQ(v int32) predicate.Spu
- func GiveIntegralGT(v int32) predicate.Spu
- func GiveIntegralGTE(v int32) predicate.Spu
- func GiveIntegralIn(vs ...int32) predicate.Spu
- func GiveIntegralIsNil() predicate.Spu
- func GiveIntegralLT(v int32) predicate.Spu
- func GiveIntegralLTE(v int32) predicate.Spu
- func GiveIntegralNEQ(v int32) predicate.Spu
- func GiveIntegralNotIn(vs ...int32) predicate.Spu
- func GiveIntegralNotNil() predicate.Spu
- func HasBrands() predicate.Spu
- func HasBrandsWith(preds ...predicate.Brand) predicate.Spu
- func HasCategorys() predicate.Spu
- func HasCategorysWith(preds ...predicate.Category) predicate.Spu
- func HasSkus() predicate.Spu
- func HasSkusWith(preds ...predicate.Sku) predicate.Spu
- func ID(id uint64) predicate.Spu
- func IDEQ(id uint64) predicate.Spu
- func IDGT(id uint64) predicate.Spu
- func IDGTE(id uint64) predicate.Spu
- func IDIn(ids ...uint64) predicate.Spu
- func IDLT(id uint64) predicate.Spu
- func IDLTE(id uint64) predicate.Spu
- func IDNEQ(id uint64) predicate.Spu
- func IDNotIn(ids ...uint64) predicate.Spu
- func Introduction(v string) predicate.Spu
- func IntroductionContains(v string) predicate.Spu
- func IntroductionContainsFold(v string) predicate.Spu
- func IntroductionEQ(v string) predicate.Spu
- func IntroductionEqualFold(v string) predicate.Spu
- func IntroductionGT(v string) predicate.Spu
- func IntroductionGTE(v string) predicate.Spu
- func IntroductionHasPrefix(v string) predicate.Spu
- func IntroductionHasSuffix(v string) predicate.Spu
- func IntroductionIn(vs ...string) predicate.Spu
- func IntroductionIsNil() predicate.Spu
- func IntroductionLT(v string) predicate.Spu
- func IntroductionLTE(v string) predicate.Spu
- func IntroductionNEQ(v string) predicate.Spu
- func IntroductionNotIn(vs ...string) predicate.Spu
- func IntroductionNotNil() predicate.Spu
- func Keyword(v string) predicate.Spu
- func KeywordContains(v string) predicate.Spu
- func KeywordContainsFold(v string) predicate.Spu
- func KeywordEQ(v string) predicate.Spu
- func KeywordEqualFold(v string) predicate.Spu
- func KeywordGT(v string) predicate.Spu
- func KeywordGTE(v string) predicate.Spu
- func KeywordHasPrefix(v string) predicate.Spu
- func KeywordHasSuffix(v string) predicate.Spu
- func KeywordIn(vs ...string) predicate.Spu
- func KeywordIsNil() predicate.Spu
- func KeywordLT(v string) predicate.Spu
- func KeywordLTE(v string) predicate.Spu
- func KeywordNEQ(v string) predicate.Spu
- func KeywordNotIn(vs ...string) predicate.Spu
- func KeywordNotNil() predicate.Spu
- func MarketPrice(v int32) predicate.Spu
- func MarketPriceEQ(v int32) predicate.Spu
- func MarketPriceGT(v int32) predicate.Spu
- func MarketPriceGTE(v int32) predicate.Spu
- func MarketPriceIn(vs ...int32) predicate.Spu
- func MarketPriceIsNil() predicate.Spu
- func MarketPriceLT(v int32) predicate.Spu
- func MarketPriceLTE(v int32) predicate.Spu
- func MarketPriceNEQ(v int32) predicate.Spu
- func MarketPriceNotIn(vs ...int32) predicate.Spu
- func MarketPriceNotNil() predicate.Spu
- func Name(v string) predicate.Spu
- func NameContains(v string) predicate.Spu
- func NameContainsFold(v string) predicate.Spu
- func NameEQ(v string) predicate.Spu
- func NameEqualFold(v string) predicate.Spu
- func NameGT(v string) predicate.Spu
- func NameGTE(v string) predicate.Spu
- func NameHasPrefix(v string) predicate.Spu
- func NameHasSuffix(v string) predicate.Spu
- func NameIn(vs ...string) predicate.Spu
- func NameLT(v string) predicate.Spu
- func NameLTE(v string) predicate.Spu
- func NameNEQ(v string) predicate.Spu
- func NameNotIn(vs ...string) predicate.Spu
- func Not(p predicate.Spu) predicate.Spu
- func Or(predicates ...predicate.Spu) predicate.Spu
- func PicURL(v string) predicate.Spu
- func PicURLContains(v string) predicate.Spu
- func PicURLContainsFold(v string) predicate.Spu
- func PicURLEQ(v string) predicate.Spu
- func PicURLEqualFold(v string) predicate.Spu
- func PicURLGT(v string) predicate.Spu
- func PicURLGTE(v string) predicate.Spu
- func PicURLHasPrefix(v string) predicate.Spu
- func PicURLHasSuffix(v string) predicate.Spu
- func PicURLIn(vs ...string) predicate.Spu
- func PicURLLT(v string) predicate.Spu
- func PicURLLTE(v string) predicate.Spu
- func PicURLNEQ(v string) predicate.Spu
- func PicURLNotIn(vs ...string) predicate.Spu
- func Price(v int32) predicate.Spu
- func PriceEQ(v int32) predicate.Spu
- func PriceGT(v int32) predicate.Spu
- func PriceGTE(v int32) predicate.Spu
- func PriceIn(vs ...int32) predicate.Spu
- func PriceLT(v int32) predicate.Spu
- func PriceLTE(v int32) predicate.Spu
- func PriceNEQ(v int32) predicate.Spu
- func PriceNotIn(vs ...int32) predicate.Spu
- func RecommendBenefit(v bool) predicate.Spu
- func RecommendBenefitEQ(v bool) predicate.Spu
- func RecommendBenefitIsNil() predicate.Spu
- func RecommendBenefitNEQ(v bool) predicate.Spu
- func RecommendBenefitNotNil() predicate.Spu
- func RecommendBest(v bool) predicate.Spu
- func RecommendBestEQ(v bool) predicate.Spu
- func RecommendBestIsNil() predicate.Spu
- func RecommendBestNEQ(v bool) predicate.Spu
- func RecommendBestNotNil() predicate.Spu
- func RecommendGood(v bool) predicate.Spu
- func RecommendGoodEQ(v bool) predicate.Spu
- func RecommendGoodIsNil() predicate.Spu
- func RecommendGoodNEQ(v bool) predicate.Spu
- func RecommendGoodNotNil() predicate.Spu
- func RecommendHot(v bool) predicate.Spu
- func RecommendHotEQ(v bool) predicate.Spu
- func RecommendHotIsNil() predicate.Spu
- func RecommendHotNEQ(v bool) predicate.Spu
- func RecommendHotNotNil() predicate.Spu
- func RecommendNew(v bool) predicate.Spu
- func RecommendNewEQ(v bool) predicate.Spu
- func RecommendNewIsNil() predicate.Spu
- func RecommendNewNEQ(v bool) predicate.Spu
- func RecommendNewNotNil() predicate.Spu
- func SalesCount(v int32) predicate.Spu
- func SalesCountEQ(v int32) predicate.Spu
- func SalesCountGT(v int32) predicate.Spu
- func SalesCountGTE(v int32) predicate.Spu
- func SalesCountIn(vs ...int32) predicate.Spu
- func SalesCountIsNil() predicate.Spu
- func SalesCountLT(v int32) predicate.Spu
- func SalesCountLTE(v int32) predicate.Spu
- func SalesCountNEQ(v int32) predicate.Spu
- func SalesCountNotIn(vs ...int32) predicate.Spu
- func SalesCountNotNil() predicate.Spu
- func SliderPicUrlsIsNil() predicate.Spu
- func SliderPicUrlsNotNil() predicate.Spu
- func Sort(v uint32) predicate.Spu
- func SortEQ(v uint32) predicate.Spu
- func SortGT(v uint32) predicate.Spu
- func SortGTE(v uint32) predicate.Spu
- func SortIn(vs ...uint32) predicate.Spu
- func SortLT(v uint32) predicate.Spu
- func SortLTE(v uint32) predicate.Spu
- func SortNEQ(v uint32) predicate.Spu
- func SortNotIn(vs ...uint32) predicate.Spu
- func SpecType(v bool) predicate.Spu
- func SpecTypeEQ(v bool) predicate.Spu
- func SpecTypeIsNil() predicate.Spu
- func SpecTypeNEQ(v bool) predicate.Spu
- func SpecTypeNotNil() predicate.Spu
- func Status(v uint8) predicate.Spu
- func StatusEQ(v uint8) predicate.Spu
- func StatusGT(v uint8) predicate.Spu
- func StatusGTE(v uint8) predicate.Spu
- func StatusIn(vs ...uint8) predicate.Spu
- func StatusIsNil() predicate.Spu
- func StatusLT(v uint8) predicate.Spu
- func StatusLTE(v uint8) predicate.Spu
- func StatusNEQ(v uint8) predicate.Spu
- func StatusNotIn(vs ...uint8) predicate.Spu
- func StatusNotNil() predicate.Spu
- func Stock(v int32) predicate.Spu
- func StockEQ(v int32) predicate.Spu
- func StockGT(v int32) predicate.Spu
- func StockGTE(v int32) predicate.Spu
- func StockIn(vs ...int32) predicate.Spu
- func StockLT(v int32) predicate.Spu
- func StockLTE(v int32) predicate.Spu
- func StockNEQ(v int32) predicate.Spu
- func StockNotIn(vs ...int32) predicate.Spu
- func SubCommissionType(v bool) predicate.Spu
- func SubCommissionTypeEQ(v bool) predicate.Spu
- func SubCommissionTypeIsNil() predicate.Spu
- func SubCommissionTypeNEQ(v bool) predicate.Spu
- func SubCommissionTypeNotNil() predicate.Spu
- func Unit(v uint8) predicate.Spu
- func UnitEQ(v uint8) predicate.Spu
- func UnitGT(v uint8) predicate.Spu
- func UnitGTE(v uint8) predicate.Spu
- func UnitIn(vs ...uint8) predicate.Spu
- func UnitLT(v uint8) predicate.Spu
- func UnitLTE(v uint8) predicate.Spu
- func UnitNEQ(v uint8) predicate.Spu
- func UnitNotIn(vs ...uint8) predicate.Spu
- func UpdatedAt(v time.Time) predicate.Spu
- func UpdatedAtEQ(v time.Time) predicate.Spu
- func UpdatedAtGT(v time.Time) predicate.Spu
- func UpdatedAtGTE(v time.Time) predicate.Spu
- func UpdatedAtIn(vs ...time.Time) predicate.Spu
- func UpdatedAtLT(v time.Time) predicate.Spu
- func UpdatedAtLTE(v time.Time) predicate.Spu
- func UpdatedAtNEQ(v time.Time) predicate.Spu
- func UpdatedAtNotIn(vs ...time.Time) predicate.Spu
- func ValidColumn(column string) bool
- func VideoURL(v string) predicate.Spu
- func VideoURLContains(v string) predicate.Spu
- func VideoURLContainsFold(v string) predicate.Spu
- func VideoURLEQ(v string) predicate.Spu
- func VideoURLEqualFold(v string) predicate.Spu
- func VideoURLGT(v string) predicate.Spu
- func VideoURLGTE(v string) predicate.Spu
- func VideoURLHasPrefix(v string) predicate.Spu
- func VideoURLHasSuffix(v string) predicate.Spu
- func VideoURLIn(vs ...string) predicate.Spu
- func VideoURLIsNil() predicate.Spu
- func VideoURLLT(v string) predicate.Spu
- func VideoURLLTE(v string) predicate.Spu
- func VideoURLNEQ(v string) predicate.Spu
- func VideoURLNotIn(vs ...string) predicate.Spu
- func VideoURLNotNil() predicate.Spu
- func VirtualSalesCount(v int32) predicate.Spu
- func VirtualSalesCountEQ(v int32) predicate.Spu
- func VirtualSalesCountGT(v int32) predicate.Spu
- func VirtualSalesCountGTE(v int32) predicate.Spu
- func VirtualSalesCountIn(vs ...int32) predicate.Spu
- func VirtualSalesCountIsNil() predicate.Spu
- func VirtualSalesCountLT(v int32) predicate.Spu
- func VirtualSalesCountLTE(v int32) predicate.Spu
- func VirtualSalesCountNEQ(v int32) predicate.Spu
- func VirtualSalesCountNotIn(vs ...int32) predicate.Spu
- func VirtualSalesCountNotNil() predicate.Spu
- type OrderOption
- func ByBarCode(opts ...sql.OrderTermOption) OrderOption
- func ByBrandID(opts ...sql.OrderTermOption) OrderOption
- func ByBrandsField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByBrowseCount(opts ...sql.OrderTermOption) OrderOption
- func ByCategoryID(opts ...sql.OrderTermOption) OrderOption
- func ByCategorysField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCostPrice(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeliveryTemplateID(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByGiveIntegral(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIntroduction(opts ...sql.OrderTermOption) OrderOption
- func ByKeyword(opts ...sql.OrderTermOption) OrderOption
- func ByMarketPrice(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPicURL(opts ...sql.OrderTermOption) OrderOption
- func ByPrice(opts ...sql.OrderTermOption) OrderOption
- func ByRecommendBenefit(opts ...sql.OrderTermOption) OrderOption
- func ByRecommendBest(opts ...sql.OrderTermOption) OrderOption
- func ByRecommendGood(opts ...sql.OrderTermOption) OrderOption
- func ByRecommendHot(opts ...sql.OrderTermOption) OrderOption
- func ByRecommendNew(opts ...sql.OrderTermOption) OrderOption
- func BySalesCount(opts ...sql.OrderTermOption) OrderOption
- func BySkus(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySkusCount(opts ...sql.OrderTermOption) OrderOption
- func BySort(opts ...sql.OrderTermOption) OrderOption
- func BySpecType(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByStock(opts ...sql.OrderTermOption) OrderOption
- func BySubCommissionType(opts ...sql.OrderTermOption) OrderOption
- func ByUnit(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVideoURL(opts ...sql.OrderTermOption) OrderOption
- func ByVirtualSalesCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldSort, FieldDeletedAt, FieldName, FieldKeyword, FieldIntroduction, FieldDescription, FieldBarCode, FieldCategoryID, FieldBrandID, FieldPicURL, FieldSliderPicUrls, FieldVideoURL, FieldUnit, FieldSpecType, FieldPrice, FieldMarketPrice, FieldCostPrice, FieldStock, FieldDeliveryTemplateID, FieldRecommendHot, FieldRecommendBenefit, FieldRecommendBest, FieldRecommendNew, FieldRecommendGood, FieldGiveIntegral, FieldGiveCouponTemplateIds, FieldSubCommissionType, FieldActivityOrders, FieldSalesCount, FieldVirtualSalesCount, FieldBrowseCount, }
Columns holds all SQL columns for spu fields.
Functions ¶
func ActivityOrdersIsNil ¶
ActivityOrdersIsNil applies the IsNil predicate on the "activity_orders" field.
func ActivityOrdersNotNil ¶
ActivityOrdersNotNil applies the NotNil predicate on the "activity_orders" field.
func BarCode ¶
BarCode applies equality check predicate on the "bar_code" field. It's identical to BarCodeEQ.
func BarCodeContains ¶
BarCodeContains applies the Contains predicate on the "bar_code" field.
func BarCodeContainsFold ¶
BarCodeContainsFold applies the ContainsFold predicate on the "bar_code" field.
func BarCodeEqualFold ¶
BarCodeEqualFold applies the EqualFold predicate on the "bar_code" field.
func BarCodeGTE ¶
BarCodeGTE applies the GTE predicate on the "bar_code" field.
func BarCodeHasPrefix ¶
BarCodeHasPrefix applies the HasPrefix predicate on the "bar_code" field.
func BarCodeHasSuffix ¶
BarCodeHasSuffix applies the HasSuffix predicate on the "bar_code" field.
func BarCodeIsNil ¶
BarCodeIsNil applies the IsNil predicate on the "bar_code" field.
func BarCodeLTE ¶
BarCodeLTE applies the LTE predicate on the "bar_code" field.
func BarCodeNEQ ¶
BarCodeNEQ applies the NEQ predicate on the "bar_code" field.
func BarCodeNotIn ¶
BarCodeNotIn applies the NotIn predicate on the "bar_code" field.
func BarCodeNotNil ¶
BarCodeNotNil applies the NotNil predicate on the "bar_code" field.
func BrandID ¶
BrandID applies equality check predicate on the "brand_id" field. It's identical to BrandIDEQ.
func BrandIDIsNil ¶
BrandIDIsNil applies the IsNil predicate on the "brand_id" field.
func BrandIDNEQ ¶
BrandIDNEQ applies the NEQ predicate on the "brand_id" field.
func BrandIDNotIn ¶
BrandIDNotIn applies the NotIn predicate on the "brand_id" field.
func BrandIDNotNil ¶
BrandIDNotNil applies the NotNil predicate on the "brand_id" field.
func BrowseCount ¶
BrowseCount applies equality check predicate on the "browse_count" field. It's identical to BrowseCountEQ.
func BrowseCountEQ ¶
BrowseCountEQ applies the EQ predicate on the "browse_count" field.
func BrowseCountGT ¶
BrowseCountGT applies the GT predicate on the "browse_count" field.
func BrowseCountGTE ¶
BrowseCountGTE applies the GTE predicate on the "browse_count" field.
func BrowseCountIn ¶
BrowseCountIn applies the In predicate on the "browse_count" field.
func BrowseCountIsNil ¶
BrowseCountIsNil applies the IsNil predicate on the "browse_count" field.
func BrowseCountLT ¶
BrowseCountLT applies the LT predicate on the "browse_count" field.
func BrowseCountLTE ¶
BrowseCountLTE applies the LTE predicate on the "browse_count" field.
func BrowseCountNEQ ¶
BrowseCountNEQ applies the NEQ predicate on the "browse_count" field.
func BrowseCountNotIn ¶
BrowseCountNotIn applies the NotIn predicate on the "browse_count" field.
func BrowseCountNotNil ¶
BrowseCountNotNil applies the NotNil predicate on the "browse_count" field.
func CategoryID ¶
CategoryID applies equality check predicate on the "category_id" field. It's identical to CategoryIDEQ.
func CategoryIDEQ ¶
CategoryIDEQ applies the EQ predicate on the "category_id" field.
func CategoryIDIn ¶
CategoryIDIn applies the In predicate on the "category_id" field.
func CategoryIDIsNil ¶
CategoryIDIsNil applies the IsNil predicate on the "category_id" field.
func CategoryIDNEQ ¶
CategoryIDNEQ applies the NEQ predicate on the "category_id" field.
func CategoryIDNotIn ¶
CategoryIDNotIn applies the NotIn predicate on the "category_id" field.
func CategoryIDNotNil ¶
CategoryIDNotNil applies the NotNil predicate on the "category_id" field.
func CostPrice ¶
CostPrice applies equality check predicate on the "cost_price" field. It's identical to CostPriceEQ.
func CostPriceEQ ¶
CostPriceEQ applies the EQ predicate on the "cost_price" field.
func CostPriceGT ¶
CostPriceGT applies the GT predicate on the "cost_price" field.
func CostPriceGTE ¶
CostPriceGTE applies the GTE predicate on the "cost_price" field.
func CostPriceIn ¶
CostPriceIn applies the In predicate on the "cost_price" field.
func CostPriceLT ¶
CostPriceLT applies the LT predicate on the "cost_price" field.
func CostPriceLTE ¶
CostPriceLTE applies the LTE predicate on the "cost_price" field.
func CostPriceNEQ ¶
CostPriceNEQ applies the NEQ predicate on the "cost_price" field.
func CostPriceNotIn ¶
CostPriceNotIn applies the NotIn predicate on the "cost_price" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeliveryTemplateID ¶
DeliveryTemplateID applies equality check predicate on the "deliveryTemplate_id" field. It's identical to DeliveryTemplateIDEQ.
func DeliveryTemplateIDEQ ¶
DeliveryTemplateIDEQ applies the EQ predicate on the "deliveryTemplate_id" field.
func DeliveryTemplateIDGT ¶
DeliveryTemplateIDGT applies the GT predicate on the "deliveryTemplate_id" field.
func DeliveryTemplateIDGTE ¶
DeliveryTemplateIDGTE applies the GTE predicate on the "deliveryTemplate_id" field.
func DeliveryTemplateIDIn ¶
DeliveryTemplateIDIn applies the In predicate on the "deliveryTemplate_id" field.
func DeliveryTemplateIDIsNil ¶
DeliveryTemplateIDIsNil applies the IsNil predicate on the "deliveryTemplate_id" field.
func DeliveryTemplateIDLT ¶
DeliveryTemplateIDLT applies the LT predicate on the "deliveryTemplate_id" field.
func DeliveryTemplateIDLTE ¶
DeliveryTemplateIDLTE applies the LTE predicate on the "deliveryTemplate_id" field.
func DeliveryTemplateIDNEQ ¶
DeliveryTemplateIDNEQ applies the NEQ predicate on the "deliveryTemplate_id" field.
func DeliveryTemplateIDNotIn ¶
DeliveryTemplateIDNotIn applies the NotIn predicate on the "deliveryTemplate_id" field.
func DeliveryTemplateIDNotNil ¶
DeliveryTemplateIDNotNil applies the NotNil predicate on the "deliveryTemplate_id" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func GiveCouponTemplateIdsIsNil ¶
GiveCouponTemplateIdsIsNil applies the IsNil predicate on the "give_coupon_template_ids" field.
func GiveCouponTemplateIdsNotNil ¶
GiveCouponTemplateIdsNotNil applies the NotNil predicate on the "give_coupon_template_ids" field.
func GiveIntegral ¶
GiveIntegral applies equality check predicate on the "give_integral" field. It's identical to GiveIntegralEQ.
func GiveIntegralEQ ¶
GiveIntegralEQ applies the EQ predicate on the "give_integral" field.
func GiveIntegralGT ¶
GiveIntegralGT applies the GT predicate on the "give_integral" field.
func GiveIntegralGTE ¶
GiveIntegralGTE applies the GTE predicate on the "give_integral" field.
func GiveIntegralIn ¶
GiveIntegralIn applies the In predicate on the "give_integral" field.
func GiveIntegralIsNil ¶
GiveIntegralIsNil applies the IsNil predicate on the "give_integral" field.
func GiveIntegralLT ¶
GiveIntegralLT applies the LT predicate on the "give_integral" field.
func GiveIntegralLTE ¶
GiveIntegralLTE applies the LTE predicate on the "give_integral" field.
func GiveIntegralNEQ ¶
GiveIntegralNEQ applies the NEQ predicate on the "give_integral" field.
func GiveIntegralNotIn ¶
GiveIntegralNotIn applies the NotIn predicate on the "give_integral" field.
func GiveIntegralNotNil ¶
GiveIntegralNotNil applies the NotNil predicate on the "give_integral" field.
func HasBrandsWith ¶
HasBrandsWith applies the HasEdge predicate on the "brands" edge with a given conditions (other predicates).
func HasCategorys ¶
HasCategorys applies the HasEdge predicate on the "categorys" edge.
func HasCategorysWith ¶
HasCategorysWith applies the HasEdge predicate on the "categorys" edge with a given conditions (other predicates).
func HasSkusWith ¶
HasSkusWith applies the HasEdge predicate on the "skus" edge with a given conditions (other predicates).
func Introduction ¶
Introduction applies equality check predicate on the "introduction" field. It's identical to IntroductionEQ.
func IntroductionContains ¶
IntroductionContains applies the Contains predicate on the "introduction" field.
func IntroductionContainsFold ¶
IntroductionContainsFold applies the ContainsFold predicate on the "introduction" field.
func IntroductionEQ ¶
IntroductionEQ applies the EQ predicate on the "introduction" field.
func IntroductionEqualFold ¶
IntroductionEqualFold applies the EqualFold predicate on the "introduction" field.
func IntroductionGT ¶
IntroductionGT applies the GT predicate on the "introduction" field.
func IntroductionGTE ¶
IntroductionGTE applies the GTE predicate on the "introduction" field.
func IntroductionHasPrefix ¶
IntroductionHasPrefix applies the HasPrefix predicate on the "introduction" field.
func IntroductionHasSuffix ¶
IntroductionHasSuffix applies the HasSuffix predicate on the "introduction" field.
func IntroductionIn ¶
IntroductionIn applies the In predicate on the "introduction" field.
func IntroductionIsNil ¶
IntroductionIsNil applies the IsNil predicate on the "introduction" field.
func IntroductionLT ¶
IntroductionLT applies the LT predicate on the "introduction" field.
func IntroductionLTE ¶
IntroductionLTE applies the LTE predicate on the "introduction" field.
func IntroductionNEQ ¶
IntroductionNEQ applies the NEQ predicate on the "introduction" field.
func IntroductionNotIn ¶
IntroductionNotIn applies the NotIn predicate on the "introduction" field.
func IntroductionNotNil ¶
IntroductionNotNil applies the NotNil predicate on the "introduction" field.
func Keyword ¶
Keyword applies equality check predicate on the "keyword" field. It's identical to KeywordEQ.
func KeywordContains ¶
KeywordContains applies the Contains predicate on the "keyword" field.
func KeywordContainsFold ¶
KeywordContainsFold applies the ContainsFold predicate on the "keyword" field.
func KeywordEqualFold ¶
KeywordEqualFold applies the EqualFold predicate on the "keyword" field.
func KeywordGTE ¶
KeywordGTE applies the GTE predicate on the "keyword" field.
func KeywordHasPrefix ¶
KeywordHasPrefix applies the HasPrefix predicate on the "keyword" field.
func KeywordHasSuffix ¶
KeywordHasSuffix applies the HasSuffix predicate on the "keyword" field.
func KeywordIsNil ¶
KeywordIsNil applies the IsNil predicate on the "keyword" field.
func KeywordLTE ¶
KeywordLTE applies the LTE predicate on the "keyword" field.
func KeywordNEQ ¶
KeywordNEQ applies the NEQ predicate on the "keyword" field.
func KeywordNotIn ¶
KeywordNotIn applies the NotIn predicate on the "keyword" field.
func KeywordNotNil ¶
KeywordNotNil applies the NotNil predicate on the "keyword" field.
func MarketPrice ¶
MarketPrice applies equality check predicate on the "market_price" field. It's identical to MarketPriceEQ.
func MarketPriceEQ ¶
MarketPriceEQ applies the EQ predicate on the "market_price" field.
func MarketPriceGT ¶
MarketPriceGT applies the GT predicate on the "market_price" field.
func MarketPriceGTE ¶
MarketPriceGTE applies the GTE predicate on the "market_price" field.
func MarketPriceIn ¶
MarketPriceIn applies the In predicate on the "market_price" field.
func MarketPriceIsNil ¶
MarketPriceIsNil applies the IsNil predicate on the "market_price" field.
func MarketPriceLT ¶
MarketPriceLT applies the LT predicate on the "market_price" field.
func MarketPriceLTE ¶
MarketPriceLTE applies the LTE predicate on the "market_price" field.
func MarketPriceNEQ ¶
MarketPriceNEQ applies the NEQ predicate on the "market_price" field.
func MarketPriceNotIn ¶
MarketPriceNotIn applies the NotIn predicate on the "market_price" field.
func MarketPriceNotNil ¶
MarketPriceNotNil applies the NotNil predicate on the "market_price" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PicURL ¶
PicURL applies equality check predicate on the "pic_url" field. It's identical to PicURLEQ.
func PicURLContains ¶
PicURLContains applies the Contains predicate on the "pic_url" field.
func PicURLContainsFold ¶
PicURLContainsFold applies the ContainsFold predicate on the "pic_url" field.
func PicURLEqualFold ¶
PicURLEqualFold applies the EqualFold predicate on the "pic_url" field.
func PicURLHasPrefix ¶
PicURLHasPrefix applies the HasPrefix predicate on the "pic_url" field.
func PicURLHasSuffix ¶
PicURLHasSuffix applies the HasSuffix predicate on the "pic_url" field.
func PicURLNotIn ¶
PicURLNotIn applies the NotIn predicate on the "pic_url" field.
func Price ¶
Price applies equality check predicate on the "price" field. It's identical to PriceEQ.
func PriceNotIn ¶
PriceNotIn applies the NotIn predicate on the "price" field.
func RecommendBenefit ¶
RecommendBenefit applies equality check predicate on the "recommend_benefit" field. It's identical to RecommendBenefitEQ.
func RecommendBenefitEQ ¶
RecommendBenefitEQ applies the EQ predicate on the "recommend_benefit" field.
func RecommendBenefitIsNil ¶
RecommendBenefitIsNil applies the IsNil predicate on the "recommend_benefit" field.
func RecommendBenefitNEQ ¶
RecommendBenefitNEQ applies the NEQ predicate on the "recommend_benefit" field.
func RecommendBenefitNotNil ¶
RecommendBenefitNotNil applies the NotNil predicate on the "recommend_benefit" field.
func RecommendBest ¶
RecommendBest applies equality check predicate on the "recommend_best" field. It's identical to RecommendBestEQ.
func RecommendBestEQ ¶
RecommendBestEQ applies the EQ predicate on the "recommend_best" field.
func RecommendBestIsNil ¶
RecommendBestIsNil applies the IsNil predicate on the "recommend_best" field.
func RecommendBestNEQ ¶
RecommendBestNEQ applies the NEQ predicate on the "recommend_best" field.
func RecommendBestNotNil ¶
RecommendBestNotNil applies the NotNil predicate on the "recommend_best" field.
func RecommendGood ¶
RecommendGood applies equality check predicate on the "recommend_good" field. It's identical to RecommendGoodEQ.
func RecommendGoodEQ ¶
RecommendGoodEQ applies the EQ predicate on the "recommend_good" field.
func RecommendGoodIsNil ¶
RecommendGoodIsNil applies the IsNil predicate on the "recommend_good" field.
func RecommendGoodNEQ ¶
RecommendGoodNEQ applies the NEQ predicate on the "recommend_good" field.
func RecommendGoodNotNil ¶
RecommendGoodNotNil applies the NotNil predicate on the "recommend_good" field.
func RecommendHot ¶
RecommendHot applies equality check predicate on the "recommend_hot" field. It's identical to RecommendHotEQ.
func RecommendHotEQ ¶
RecommendHotEQ applies the EQ predicate on the "recommend_hot" field.
func RecommendHotIsNil ¶
RecommendHotIsNil applies the IsNil predicate on the "recommend_hot" field.
func RecommendHotNEQ ¶
RecommendHotNEQ applies the NEQ predicate on the "recommend_hot" field.
func RecommendHotNotNil ¶
RecommendHotNotNil applies the NotNil predicate on the "recommend_hot" field.
func RecommendNew ¶
RecommendNew applies equality check predicate on the "recommend_new" field. It's identical to RecommendNewEQ.
func RecommendNewEQ ¶
RecommendNewEQ applies the EQ predicate on the "recommend_new" field.
func RecommendNewIsNil ¶
RecommendNewIsNil applies the IsNil predicate on the "recommend_new" field.
func RecommendNewNEQ ¶
RecommendNewNEQ applies the NEQ predicate on the "recommend_new" field.
func RecommendNewNotNil ¶
RecommendNewNotNil applies the NotNil predicate on the "recommend_new" field.
func SalesCount ¶
SalesCount applies equality check predicate on the "sales_count" field. It's identical to SalesCountEQ.
func SalesCountEQ ¶
SalesCountEQ applies the EQ predicate on the "sales_count" field.
func SalesCountGT ¶
SalesCountGT applies the GT predicate on the "sales_count" field.
func SalesCountGTE ¶
SalesCountGTE applies the GTE predicate on the "sales_count" field.
func SalesCountIn ¶
SalesCountIn applies the In predicate on the "sales_count" field.
func SalesCountIsNil ¶
SalesCountIsNil applies the IsNil predicate on the "sales_count" field.
func SalesCountLT ¶
SalesCountLT applies the LT predicate on the "sales_count" field.
func SalesCountLTE ¶
SalesCountLTE applies the LTE predicate on the "sales_count" field.
func SalesCountNEQ ¶
SalesCountNEQ applies the NEQ predicate on the "sales_count" field.
func SalesCountNotIn ¶
SalesCountNotIn applies the NotIn predicate on the "sales_count" field.
func SalesCountNotNil ¶
SalesCountNotNil applies the NotNil predicate on the "sales_count" field.
func SliderPicUrlsIsNil ¶
SliderPicUrlsIsNil applies the IsNil predicate on the "slider_pic_urls" field.
func SliderPicUrlsNotNil ¶
SliderPicUrlsNotNil applies the NotNil predicate on the "slider_pic_urls" field.
func SpecType ¶
SpecType applies equality check predicate on the "spec_type" field. It's identical to SpecTypeEQ.
func SpecTypeEQ ¶
SpecTypeEQ applies the EQ predicate on the "spec_type" field.
func SpecTypeIsNil ¶
SpecTypeIsNil applies the IsNil predicate on the "spec_type" field.
func SpecTypeNEQ ¶
SpecTypeNEQ applies the NEQ predicate on the "spec_type" field.
func SpecTypeNotNil ¶
SpecTypeNotNil applies the NotNil predicate on the "spec_type" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func Stock ¶
Stock applies equality check predicate on the "stock" field. It's identical to StockEQ.
func StockNotIn ¶
StockNotIn applies the NotIn predicate on the "stock" field.
func SubCommissionType ¶
SubCommissionType applies equality check predicate on the "sub_commission_type" field. It's identical to SubCommissionTypeEQ.
func SubCommissionTypeEQ ¶
SubCommissionTypeEQ applies the EQ predicate on the "sub_commission_type" field.
func SubCommissionTypeIsNil ¶
SubCommissionTypeIsNil applies the IsNil predicate on the "sub_commission_type" field.
func SubCommissionTypeNEQ ¶
SubCommissionTypeNEQ applies the NEQ predicate on the "sub_commission_type" field.
func SubCommissionTypeNotNil ¶
SubCommissionTypeNotNil applies the NotNil predicate on the "sub_commission_type" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VideoURL ¶
VideoURL applies equality check predicate on the "video_url" field. It's identical to VideoURLEQ.
func VideoURLContains ¶
VideoURLContains applies the Contains predicate on the "video_url" field.
func VideoURLContainsFold ¶
VideoURLContainsFold applies the ContainsFold predicate on the "video_url" field.
func VideoURLEQ ¶
VideoURLEQ applies the EQ predicate on the "video_url" field.
func VideoURLEqualFold ¶
VideoURLEqualFold applies the EqualFold predicate on the "video_url" field.
func VideoURLGT ¶
VideoURLGT applies the GT predicate on the "video_url" field.
func VideoURLGTE ¶
VideoURLGTE applies the GTE predicate on the "video_url" field.
func VideoURLHasPrefix ¶
VideoURLHasPrefix applies the HasPrefix predicate on the "video_url" field.
func VideoURLHasSuffix ¶
VideoURLHasSuffix applies the HasSuffix predicate on the "video_url" field.
func VideoURLIn ¶
VideoURLIn applies the In predicate on the "video_url" field.
func VideoURLIsNil ¶
VideoURLIsNil applies the IsNil predicate on the "video_url" field.
func VideoURLLT ¶
VideoURLLT applies the LT predicate on the "video_url" field.
func VideoURLLTE ¶
VideoURLLTE applies the LTE predicate on the "video_url" field.
func VideoURLNEQ ¶
VideoURLNEQ applies the NEQ predicate on the "video_url" field.
func VideoURLNotIn ¶
VideoURLNotIn applies the NotIn predicate on the "video_url" field.
func VideoURLNotNil ¶
VideoURLNotNil applies the NotNil predicate on the "video_url" field.
func VirtualSalesCount ¶
VirtualSalesCount applies equality check predicate on the "virtual_sales_count" field. It's identical to VirtualSalesCountEQ.
func VirtualSalesCountEQ ¶
VirtualSalesCountEQ applies the EQ predicate on the "virtual_sales_count" field.
func VirtualSalesCountGT ¶
VirtualSalesCountGT applies the GT predicate on the "virtual_sales_count" field.
func VirtualSalesCountGTE ¶
VirtualSalesCountGTE applies the GTE predicate on the "virtual_sales_count" field.
func VirtualSalesCountIn ¶
VirtualSalesCountIn applies the In predicate on the "virtual_sales_count" field.
func VirtualSalesCountIsNil ¶
VirtualSalesCountIsNil applies the IsNil predicate on the "virtual_sales_count" field.
func VirtualSalesCountLT ¶
VirtualSalesCountLT applies the LT predicate on the "virtual_sales_count" field.
func VirtualSalesCountLTE ¶
VirtualSalesCountLTE applies the LTE predicate on the "virtual_sales_count" field.
func VirtualSalesCountNEQ ¶
VirtualSalesCountNEQ applies the NEQ predicate on the "virtual_sales_count" field.
func VirtualSalesCountNotIn ¶
VirtualSalesCountNotIn applies the NotIn predicate on the "virtual_sales_count" field.
func VirtualSalesCountNotNil ¶
VirtualSalesCountNotNil applies the NotNil predicate on the "virtual_sales_count" field.
Types ¶
type OrderOption ¶
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.