fix: api descript

This commit is contained in:
wwweww
2026-02-28 05:33:16 +08:00
parent 5930fb0dde
commit d2f33b4b96
243 changed files with 37065 additions and 780 deletions
+191
View File
@@ -0,0 +1,191 @@
// Code generated by ent, DO NOT EDIT.
package shops
import (
"time"
"entgo.io/ent/dialect/sql"
"github.com/shopspring/decimal"
)
const (
// Label holds the string label denoting the shops type in the database.
Label = "shops"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldOwnerID holds the string denoting the owner_id field in the database.
FieldOwnerID = "owner_id"
// FieldName holds the string denoting the name field in the database.
FieldName = "name"
// FieldBanner holds the string denoting the banner field in the database.
FieldBanner = "banner"
// FieldDescription holds the string denoting the description field in the database.
FieldDescription = "description"
// FieldRating holds the string denoting the rating field in the database.
FieldRating = "rating"
// FieldTotalOrders holds the string denoting the total_orders field in the database.
FieldTotalOrders = "total_orders"
// FieldPlayerCount holds the string denoting the player_count field in the database.
FieldPlayerCount = "player_count"
// FieldCommissionType holds the string denoting the commission_type field in the database.
FieldCommissionType = "commission_type"
// FieldCommissionValue holds the string denoting the commission_value field in the database.
FieldCommissionValue = "commission_value"
// FieldAllowMultiShop holds the string denoting the allow_multi_shop field in the database.
FieldAllowMultiShop = "allow_multi_shop"
// FieldAllowIndependentOrders holds the string denoting the allow_independent_orders field in the database.
FieldAllowIndependentOrders = "allow_independent_orders"
// FieldDispatchMode holds the string denoting the dispatch_mode field in the database.
FieldDispatchMode = "dispatch_mode"
// FieldAnnouncements holds the string denoting the announcements field in the database.
FieldAnnouncements = "announcements"
// FieldTemplateConfig holds the string denoting the template_config field in the database.
FieldTemplateConfig = "template_config"
// 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"
// Table holds the table name of the shops in the database.
Table = "shops"
)
// Columns holds all SQL columns for shops fields.
var Columns = []string{
FieldID,
FieldOwnerID,
FieldName,
FieldBanner,
FieldDescription,
FieldRating,
FieldTotalOrders,
FieldPlayerCount,
FieldCommissionType,
FieldCommissionValue,
FieldAllowMultiShop,
FieldAllowIndependentOrders,
FieldDispatchMode,
FieldAnnouncements,
FieldTemplateConfig,
FieldCreatedAt,
FieldUpdatedAt,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}
var (
// NameValidator is a validator for the "name" field. It is called by the builders before save.
NameValidator func(string) error
// DefaultRating holds the default value on creation for the "rating" field.
DefaultRating decimal.Decimal
// DefaultTotalOrders holds the default value on creation for the "total_orders" field.
DefaultTotalOrders int
// DefaultPlayerCount holds the default value on creation for the "player_count" field.
DefaultPlayerCount int
// DefaultCommissionType holds the default value on creation for the "commission_type" field.
DefaultCommissionType string
// CommissionTypeValidator is a validator for the "commission_type" field. It is called by the builders before save.
CommissionTypeValidator func(string) error
// DefaultAllowMultiShop holds the default value on creation for the "allow_multi_shop" field.
DefaultAllowMultiShop bool
// DefaultAllowIndependentOrders holds the default value on creation for the "allow_independent_orders" field.
DefaultAllowIndependentOrders bool
// DefaultDispatchMode holds the default value on creation for the "dispatch_mode" field.
DefaultDispatchMode string
// DispatchModeValidator is a validator for the "dispatch_mode" field. It is called by the builders before save.
DispatchModeValidator func(string) error
// DefaultAnnouncements holds the default value on creation for the "announcements" field.
DefaultAnnouncements []string
// 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
)
// OrderOption defines the ordering options for the Shops queries.
type OrderOption func(*sql.Selector)
// ByID orders the results by the id field.
func ByID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldID, opts...).ToFunc()
}
// ByOwnerID orders the results by the owner_id field.
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldOwnerID, opts...).ToFunc()
}
// ByName orders the results by the name field.
func ByName(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldName, opts...).ToFunc()
}
// ByBanner orders the results by the banner field.
func ByBanner(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldBanner, opts...).ToFunc()
}
// ByDescription orders the results by the description field.
func ByDescription(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDescription, opts...).ToFunc()
}
// ByRating orders the results by the rating field.
func ByRating(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRating, opts...).ToFunc()
}
// ByTotalOrders orders the results by the total_orders field.
func ByTotalOrders(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldTotalOrders, opts...).ToFunc()
}
// ByPlayerCount orders the results by the player_count field.
func ByPlayerCount(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldPlayerCount, opts...).ToFunc()
}
// ByCommissionType orders the results by the commission_type field.
func ByCommissionType(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCommissionType, opts...).ToFunc()
}
// ByCommissionValue orders the results by the commission_value field.
func ByCommissionValue(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCommissionValue, opts...).ToFunc()
}
// ByAllowMultiShop orders the results by the allow_multi_shop field.
func ByAllowMultiShop(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAllowMultiShop, opts...).ToFunc()
}
// ByAllowIndependentOrders orders the results by the allow_independent_orders field.
func ByAllowIndependentOrders(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldAllowIndependentOrders, opts...).ToFunc()
}
// ByDispatchMode orders the results by the dispatch_mode field.
func ByDispatchMode(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDispatchMode, opts...).ToFunc()
}
// ByCreatedAt orders the results by the created_at field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
}
// ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
}
+856
View File
@@ -0,0 +1,856 @@
// Code generated by ent, DO NOT EDIT.
package shops
import (
"juwan-backend/app/shop/rpc/internal/models/predicate"
"time"
"entgo.io/ent/dialect/sql"
"github.com/shopspring/decimal"
)
// ID filters vertices based on their ID field.
func ID(id int64) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int64) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int64) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int64) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int64) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int64) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int64) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int64) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int64) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldID, id))
}
// OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerID(v int64) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldOwnerID, v))
}
// Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func Name(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldName, v))
}
// Banner applies equality check predicate on the "banner" field. It's identical to BannerEQ.
func Banner(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldBanner, v))
}
// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func Description(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldDescription, v))
}
// Rating applies equality check predicate on the "rating" field. It's identical to RatingEQ.
func Rating(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldRating, v))
}
// TotalOrders applies equality check predicate on the "total_orders" field. It's identical to TotalOrdersEQ.
func TotalOrders(v int) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldTotalOrders, v))
}
// PlayerCount applies equality check predicate on the "player_count" field. It's identical to PlayerCountEQ.
func PlayerCount(v int) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldPlayerCount, v))
}
// CommissionType applies equality check predicate on the "commission_type" field. It's identical to CommissionTypeEQ.
func CommissionType(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldCommissionType, v))
}
// CommissionValue applies equality check predicate on the "commission_value" field. It's identical to CommissionValueEQ.
func CommissionValue(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldCommissionValue, v))
}
// AllowMultiShop applies equality check predicate on the "allow_multi_shop" field. It's identical to AllowMultiShopEQ.
func AllowMultiShop(v bool) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldAllowMultiShop, v))
}
// AllowIndependentOrders applies equality check predicate on the "allow_independent_orders" field. It's identical to AllowIndependentOrdersEQ.
func AllowIndependentOrders(v bool) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldAllowIndependentOrders, v))
}
// DispatchMode applies equality check predicate on the "dispatch_mode" field. It's identical to DispatchModeEQ.
func DispatchMode(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldDispatchMode, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldCreatedAt, v))
}
// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAt(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldUpdatedAt, v))
}
// OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDEQ(v int64) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldOwnerID, v))
}
// OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNEQ(v int64) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldOwnerID, v))
}
// OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDIn(vs ...int64) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldOwnerID, vs...))
}
// OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotIn(vs ...int64) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldOwnerID, vs...))
}
// OwnerIDGT applies the GT predicate on the "owner_id" field.
func OwnerIDGT(v int64) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldOwnerID, v))
}
// OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDGTE(v int64) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldOwnerID, v))
}
// OwnerIDLT applies the LT predicate on the "owner_id" field.
func OwnerIDLT(v int64) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldOwnerID, v))
}
// OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDLTE(v int64) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldOwnerID, v))
}
// NameEQ applies the EQ predicate on the "name" field.
func NameEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldName, v))
}
// NameNEQ applies the NEQ predicate on the "name" field.
func NameNEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldName, v))
}
// NameIn applies the In predicate on the "name" field.
func NameIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldName, vs...))
}
// NameNotIn applies the NotIn predicate on the "name" field.
func NameNotIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldName, vs...))
}
// NameGT applies the GT predicate on the "name" field.
func NameGT(v string) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldName, v))
}
// NameGTE applies the GTE predicate on the "name" field.
func NameGTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldName, v))
}
// NameLT applies the LT predicate on the "name" field.
func NameLT(v string) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldName, v))
}
// NameLTE applies the LTE predicate on the "name" field.
func NameLTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldName, v))
}
// NameContains applies the Contains predicate on the "name" field.
func NameContains(v string) predicate.Shops {
return predicate.Shops(sql.FieldContains(FieldName, v))
}
// NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasPrefix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasPrefix(FieldName, v))
}
// NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameHasSuffix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasSuffix(FieldName, v))
}
// NameEqualFold applies the EqualFold predicate on the "name" field.
func NameEqualFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldEqualFold(FieldName, v))
}
// NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameContainsFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldContainsFold(FieldName, v))
}
// BannerEQ applies the EQ predicate on the "banner" field.
func BannerEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldBanner, v))
}
// BannerNEQ applies the NEQ predicate on the "banner" field.
func BannerNEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldBanner, v))
}
// BannerIn applies the In predicate on the "banner" field.
func BannerIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldBanner, vs...))
}
// BannerNotIn applies the NotIn predicate on the "banner" field.
func BannerNotIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldBanner, vs...))
}
// BannerGT applies the GT predicate on the "banner" field.
func BannerGT(v string) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldBanner, v))
}
// BannerGTE applies the GTE predicate on the "banner" field.
func BannerGTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldBanner, v))
}
// BannerLT applies the LT predicate on the "banner" field.
func BannerLT(v string) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldBanner, v))
}
// BannerLTE applies the LTE predicate on the "banner" field.
func BannerLTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldBanner, v))
}
// BannerContains applies the Contains predicate on the "banner" field.
func BannerContains(v string) predicate.Shops {
return predicate.Shops(sql.FieldContains(FieldBanner, v))
}
// BannerHasPrefix applies the HasPrefix predicate on the "banner" field.
func BannerHasPrefix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasPrefix(FieldBanner, v))
}
// BannerHasSuffix applies the HasSuffix predicate on the "banner" field.
func BannerHasSuffix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasSuffix(FieldBanner, v))
}
// BannerIsNil applies the IsNil predicate on the "banner" field.
func BannerIsNil() predicate.Shops {
return predicate.Shops(sql.FieldIsNull(FieldBanner))
}
// BannerNotNil applies the NotNil predicate on the "banner" field.
func BannerNotNil() predicate.Shops {
return predicate.Shops(sql.FieldNotNull(FieldBanner))
}
// BannerEqualFold applies the EqualFold predicate on the "banner" field.
func BannerEqualFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldEqualFold(FieldBanner, v))
}
// BannerContainsFold applies the ContainsFold predicate on the "banner" field.
func BannerContainsFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldContainsFold(FieldBanner, v))
}
// DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldDescription, v))
}
// DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldDescription, v))
}
// DescriptionIn applies the In predicate on the "description" field.
func DescriptionIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldDescription, vs...))
}
// DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldDescription, vs...))
}
// DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGT(v string) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldDescription, v))
}
// DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionGTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldDescription, v))
}
// DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLT(v string) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldDescription, v))
}
// DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionLTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldDescription, v))
}
// DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContains(v string) predicate.Shops {
return predicate.Shops(sql.FieldContains(FieldDescription, v))
}
// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasPrefix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasPrefix(FieldDescription, v))
}
// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionHasSuffix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasSuffix(FieldDescription, v))
}
// DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionIsNil() predicate.Shops {
return predicate.Shops(sql.FieldIsNull(FieldDescription))
}
// DescriptionNotNil applies the NotNil predicate on the "description" field.
func DescriptionNotNil() predicate.Shops {
return predicate.Shops(sql.FieldNotNull(FieldDescription))
}
// DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionEqualFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldEqualFold(FieldDescription, v))
}
// DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionContainsFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldContainsFold(FieldDescription, v))
}
// RatingEQ applies the EQ predicate on the "rating" field.
func RatingEQ(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldRating, v))
}
// RatingNEQ applies the NEQ predicate on the "rating" field.
func RatingNEQ(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldRating, v))
}
// RatingIn applies the In predicate on the "rating" field.
func RatingIn(vs ...decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldRating, vs...))
}
// RatingNotIn applies the NotIn predicate on the "rating" field.
func RatingNotIn(vs ...decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldRating, vs...))
}
// RatingGT applies the GT predicate on the "rating" field.
func RatingGT(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldRating, v))
}
// RatingGTE applies the GTE predicate on the "rating" field.
func RatingGTE(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldRating, v))
}
// RatingLT applies the LT predicate on the "rating" field.
func RatingLT(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldRating, v))
}
// RatingLTE applies the LTE predicate on the "rating" field.
func RatingLTE(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldRating, v))
}
// RatingIsNil applies the IsNil predicate on the "rating" field.
func RatingIsNil() predicate.Shops {
return predicate.Shops(sql.FieldIsNull(FieldRating))
}
// RatingNotNil applies the NotNil predicate on the "rating" field.
func RatingNotNil() predicate.Shops {
return predicate.Shops(sql.FieldNotNull(FieldRating))
}
// TotalOrdersEQ applies the EQ predicate on the "total_orders" field.
func TotalOrdersEQ(v int) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldTotalOrders, v))
}
// TotalOrdersNEQ applies the NEQ predicate on the "total_orders" field.
func TotalOrdersNEQ(v int) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldTotalOrders, v))
}
// TotalOrdersIn applies the In predicate on the "total_orders" field.
func TotalOrdersIn(vs ...int) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldTotalOrders, vs...))
}
// TotalOrdersNotIn applies the NotIn predicate on the "total_orders" field.
func TotalOrdersNotIn(vs ...int) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldTotalOrders, vs...))
}
// TotalOrdersGT applies the GT predicate on the "total_orders" field.
func TotalOrdersGT(v int) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldTotalOrders, v))
}
// TotalOrdersGTE applies the GTE predicate on the "total_orders" field.
func TotalOrdersGTE(v int) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldTotalOrders, v))
}
// TotalOrdersLT applies the LT predicate on the "total_orders" field.
func TotalOrdersLT(v int) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldTotalOrders, v))
}
// TotalOrdersLTE applies the LTE predicate on the "total_orders" field.
func TotalOrdersLTE(v int) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldTotalOrders, v))
}
// TotalOrdersIsNil applies the IsNil predicate on the "total_orders" field.
func TotalOrdersIsNil() predicate.Shops {
return predicate.Shops(sql.FieldIsNull(FieldTotalOrders))
}
// TotalOrdersNotNil applies the NotNil predicate on the "total_orders" field.
func TotalOrdersNotNil() predicate.Shops {
return predicate.Shops(sql.FieldNotNull(FieldTotalOrders))
}
// PlayerCountEQ applies the EQ predicate on the "player_count" field.
func PlayerCountEQ(v int) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldPlayerCount, v))
}
// PlayerCountNEQ applies the NEQ predicate on the "player_count" field.
func PlayerCountNEQ(v int) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldPlayerCount, v))
}
// PlayerCountIn applies the In predicate on the "player_count" field.
func PlayerCountIn(vs ...int) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldPlayerCount, vs...))
}
// PlayerCountNotIn applies the NotIn predicate on the "player_count" field.
func PlayerCountNotIn(vs ...int) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldPlayerCount, vs...))
}
// PlayerCountGT applies the GT predicate on the "player_count" field.
func PlayerCountGT(v int) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldPlayerCount, v))
}
// PlayerCountGTE applies the GTE predicate on the "player_count" field.
func PlayerCountGTE(v int) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldPlayerCount, v))
}
// PlayerCountLT applies the LT predicate on the "player_count" field.
func PlayerCountLT(v int) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldPlayerCount, v))
}
// PlayerCountLTE applies the LTE predicate on the "player_count" field.
func PlayerCountLTE(v int) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldPlayerCount, v))
}
// PlayerCountIsNil applies the IsNil predicate on the "player_count" field.
func PlayerCountIsNil() predicate.Shops {
return predicate.Shops(sql.FieldIsNull(FieldPlayerCount))
}
// PlayerCountNotNil applies the NotNil predicate on the "player_count" field.
func PlayerCountNotNil() predicate.Shops {
return predicate.Shops(sql.FieldNotNull(FieldPlayerCount))
}
// CommissionTypeEQ applies the EQ predicate on the "commission_type" field.
func CommissionTypeEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldCommissionType, v))
}
// CommissionTypeNEQ applies the NEQ predicate on the "commission_type" field.
func CommissionTypeNEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldCommissionType, v))
}
// CommissionTypeIn applies the In predicate on the "commission_type" field.
func CommissionTypeIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldCommissionType, vs...))
}
// CommissionTypeNotIn applies the NotIn predicate on the "commission_type" field.
func CommissionTypeNotIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldCommissionType, vs...))
}
// CommissionTypeGT applies the GT predicate on the "commission_type" field.
func CommissionTypeGT(v string) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldCommissionType, v))
}
// CommissionTypeGTE applies the GTE predicate on the "commission_type" field.
func CommissionTypeGTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldCommissionType, v))
}
// CommissionTypeLT applies the LT predicate on the "commission_type" field.
func CommissionTypeLT(v string) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldCommissionType, v))
}
// CommissionTypeLTE applies the LTE predicate on the "commission_type" field.
func CommissionTypeLTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldCommissionType, v))
}
// CommissionTypeContains applies the Contains predicate on the "commission_type" field.
func CommissionTypeContains(v string) predicate.Shops {
return predicate.Shops(sql.FieldContains(FieldCommissionType, v))
}
// CommissionTypeHasPrefix applies the HasPrefix predicate on the "commission_type" field.
func CommissionTypeHasPrefix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasPrefix(FieldCommissionType, v))
}
// CommissionTypeHasSuffix applies the HasSuffix predicate on the "commission_type" field.
func CommissionTypeHasSuffix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasSuffix(FieldCommissionType, v))
}
// CommissionTypeEqualFold applies the EqualFold predicate on the "commission_type" field.
func CommissionTypeEqualFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldEqualFold(FieldCommissionType, v))
}
// CommissionTypeContainsFold applies the ContainsFold predicate on the "commission_type" field.
func CommissionTypeContainsFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldContainsFold(FieldCommissionType, v))
}
// CommissionValueEQ applies the EQ predicate on the "commission_value" field.
func CommissionValueEQ(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldCommissionValue, v))
}
// CommissionValueNEQ applies the NEQ predicate on the "commission_value" field.
func CommissionValueNEQ(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldCommissionValue, v))
}
// CommissionValueIn applies the In predicate on the "commission_value" field.
func CommissionValueIn(vs ...decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldCommissionValue, vs...))
}
// CommissionValueNotIn applies the NotIn predicate on the "commission_value" field.
func CommissionValueNotIn(vs ...decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldCommissionValue, vs...))
}
// CommissionValueGT applies the GT predicate on the "commission_value" field.
func CommissionValueGT(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldCommissionValue, v))
}
// CommissionValueGTE applies the GTE predicate on the "commission_value" field.
func CommissionValueGTE(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldCommissionValue, v))
}
// CommissionValueLT applies the LT predicate on the "commission_value" field.
func CommissionValueLT(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldCommissionValue, v))
}
// CommissionValueLTE applies the LTE predicate on the "commission_value" field.
func CommissionValueLTE(v decimal.Decimal) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldCommissionValue, v))
}
// AllowMultiShopEQ applies the EQ predicate on the "allow_multi_shop" field.
func AllowMultiShopEQ(v bool) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldAllowMultiShop, v))
}
// AllowMultiShopNEQ applies the NEQ predicate on the "allow_multi_shop" field.
func AllowMultiShopNEQ(v bool) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldAllowMultiShop, v))
}
// AllowMultiShopIsNil applies the IsNil predicate on the "allow_multi_shop" field.
func AllowMultiShopIsNil() predicate.Shops {
return predicate.Shops(sql.FieldIsNull(FieldAllowMultiShop))
}
// AllowMultiShopNotNil applies the NotNil predicate on the "allow_multi_shop" field.
func AllowMultiShopNotNil() predicate.Shops {
return predicate.Shops(sql.FieldNotNull(FieldAllowMultiShop))
}
// AllowIndependentOrdersEQ applies the EQ predicate on the "allow_independent_orders" field.
func AllowIndependentOrdersEQ(v bool) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldAllowIndependentOrders, v))
}
// AllowIndependentOrdersNEQ applies the NEQ predicate on the "allow_independent_orders" field.
func AllowIndependentOrdersNEQ(v bool) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldAllowIndependentOrders, v))
}
// AllowIndependentOrdersIsNil applies the IsNil predicate on the "allow_independent_orders" field.
func AllowIndependentOrdersIsNil() predicate.Shops {
return predicate.Shops(sql.FieldIsNull(FieldAllowIndependentOrders))
}
// AllowIndependentOrdersNotNil applies the NotNil predicate on the "allow_independent_orders" field.
func AllowIndependentOrdersNotNil() predicate.Shops {
return predicate.Shops(sql.FieldNotNull(FieldAllowIndependentOrders))
}
// DispatchModeEQ applies the EQ predicate on the "dispatch_mode" field.
func DispatchModeEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldDispatchMode, v))
}
// DispatchModeNEQ applies the NEQ predicate on the "dispatch_mode" field.
func DispatchModeNEQ(v string) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldDispatchMode, v))
}
// DispatchModeIn applies the In predicate on the "dispatch_mode" field.
func DispatchModeIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldDispatchMode, vs...))
}
// DispatchModeNotIn applies the NotIn predicate on the "dispatch_mode" field.
func DispatchModeNotIn(vs ...string) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldDispatchMode, vs...))
}
// DispatchModeGT applies the GT predicate on the "dispatch_mode" field.
func DispatchModeGT(v string) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldDispatchMode, v))
}
// DispatchModeGTE applies the GTE predicate on the "dispatch_mode" field.
func DispatchModeGTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldDispatchMode, v))
}
// DispatchModeLT applies the LT predicate on the "dispatch_mode" field.
func DispatchModeLT(v string) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldDispatchMode, v))
}
// DispatchModeLTE applies the LTE predicate on the "dispatch_mode" field.
func DispatchModeLTE(v string) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldDispatchMode, v))
}
// DispatchModeContains applies the Contains predicate on the "dispatch_mode" field.
func DispatchModeContains(v string) predicate.Shops {
return predicate.Shops(sql.FieldContains(FieldDispatchMode, v))
}
// DispatchModeHasPrefix applies the HasPrefix predicate on the "dispatch_mode" field.
func DispatchModeHasPrefix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasPrefix(FieldDispatchMode, v))
}
// DispatchModeHasSuffix applies the HasSuffix predicate on the "dispatch_mode" field.
func DispatchModeHasSuffix(v string) predicate.Shops {
return predicate.Shops(sql.FieldHasSuffix(FieldDispatchMode, v))
}
// DispatchModeEqualFold applies the EqualFold predicate on the "dispatch_mode" field.
func DispatchModeEqualFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldEqualFold(FieldDispatchMode, v))
}
// DispatchModeContainsFold applies the ContainsFold predicate on the "dispatch_mode" field.
func DispatchModeContainsFold(v string) predicate.Shops {
return predicate.Shops(sql.FieldContainsFold(FieldDispatchMode, v))
}
// AnnouncementsIsNil applies the IsNil predicate on the "announcements" field.
func AnnouncementsIsNil() predicate.Shops {
return predicate.Shops(sql.FieldIsNull(FieldAnnouncements))
}
// AnnouncementsNotNil applies the NotNil predicate on the "announcements" field.
func AnnouncementsNotNil() predicate.Shops {
return predicate.Shops(sql.FieldNotNull(FieldAnnouncements))
}
// TemplateConfigIsNil applies the IsNil predicate on the "template_config" field.
func TemplateConfigIsNil() predicate.Shops {
return predicate.Shops(sql.FieldIsNull(FieldTemplateConfig))
}
// TemplateConfigNotNil applies the NotNil predicate on the "template_config" field.
func TemplateConfigNotNil() predicate.Shops {
return predicate.Shops(sql.FieldNotNull(FieldTemplateConfig))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldCreatedAt, v))
}
// UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtEQ(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldEQ(FieldUpdatedAt, v))
}
// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNEQ(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldNEQ(FieldUpdatedAt, v))
}
// UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIn(vs ...time.Time) predicate.Shops {
return predicate.Shops(sql.FieldIn(FieldUpdatedAt, vs...))
}
// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotIn(vs ...time.Time) predicate.Shops {
return predicate.Shops(sql.FieldNotIn(FieldUpdatedAt, vs...))
}
// UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGT(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldGT(FieldUpdatedAt, v))
}
// UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtGTE(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldGTE(FieldUpdatedAt, v))
}
// UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLT(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldLT(FieldUpdatedAt, v))
}
// UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtLTE(v time.Time) predicate.Shops {
return predicate.Shops(sql.FieldLTE(FieldUpdatedAt, v))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.Shops) predicate.Shops {
return predicate.Shops(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.Shops) predicate.Shops {
return predicate.Shops(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.Shops) predicate.Shops {
return predicate.Shops(sql.NotPredicates(p))
}