Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProxyCoupon) predicate.ProxyCoupon
- func Code(v string) predicate.ProxyCoupon
- func CodeContains(v string) predicate.ProxyCoupon
- func CodeContainsFold(v string) predicate.ProxyCoupon
- func CodeEQ(v string) predicate.ProxyCoupon
- func CodeEqualFold(v string) predicate.ProxyCoupon
- func CodeGT(v string) predicate.ProxyCoupon
- func CodeGTE(v string) predicate.ProxyCoupon
- func CodeHasPrefix(v string) predicate.ProxyCoupon
- func CodeHasSuffix(v string) predicate.ProxyCoupon
- func CodeIn(vs ...string) predicate.ProxyCoupon
- func CodeLT(v string) predicate.ProxyCoupon
- func CodeLTE(v string) predicate.ProxyCoupon
- func CodeNEQ(v string) predicate.ProxyCoupon
- func CodeNotIn(vs ...string) predicate.ProxyCoupon
- func Count(v int32) predicate.ProxyCoupon
- func CountEQ(v int32) predicate.ProxyCoupon
- func CountGT(v int32) predicate.ProxyCoupon
- func CountGTE(v int32) predicate.ProxyCoupon
- func CountIn(vs ...int32) predicate.ProxyCoupon
- func CountLT(v int32) predicate.ProxyCoupon
- func CountLTE(v int32) predicate.ProxyCoupon
- func CountNEQ(v int32) predicate.ProxyCoupon
- func CountNotIn(vs ...int32) predicate.ProxyCoupon
- func CreatedAt(v time.Time) predicate.ProxyCoupon
- func CreatedAtEQ(v time.Time) predicate.ProxyCoupon
- func CreatedAtGT(v time.Time) predicate.ProxyCoupon
- func CreatedAtGTE(v time.Time) predicate.ProxyCoupon
- func CreatedAtIn(vs ...time.Time) predicate.ProxyCoupon
- func CreatedAtLT(v time.Time) predicate.ProxyCoupon
- func CreatedAtLTE(v time.Time) predicate.ProxyCoupon
- func CreatedAtNEQ(v time.Time) predicate.ProxyCoupon
- func CreatedAtNotIn(vs ...time.Time) predicate.ProxyCoupon
- func Discount(v int64) predicate.ProxyCoupon
- func DiscountEQ(v int64) predicate.ProxyCoupon
- func DiscountGT(v int64) predicate.ProxyCoupon
- func DiscountGTE(v int64) predicate.ProxyCoupon
- func DiscountIn(vs ...int64) predicate.ProxyCoupon
- func DiscountLT(v int64) predicate.ProxyCoupon
- func DiscountLTE(v int64) predicate.ProxyCoupon
- func DiscountNEQ(v int64) predicate.ProxyCoupon
- func DiscountNotIn(vs ...int64) predicate.ProxyCoupon
- func Enable(v bool) predicate.ProxyCoupon
- func EnableEQ(v bool) predicate.ProxyCoupon
- func EnableNEQ(v bool) predicate.ProxyCoupon
- func ExpireTime(v int64) predicate.ProxyCoupon
- func ExpireTimeEQ(v int64) predicate.ProxyCoupon
- func ExpireTimeGT(v int64) predicate.ProxyCoupon
- func ExpireTimeGTE(v int64) predicate.ProxyCoupon
- func ExpireTimeIn(vs ...int64) predicate.ProxyCoupon
- func ExpireTimeLT(v int64) predicate.ProxyCoupon
- func ExpireTimeLTE(v int64) predicate.ProxyCoupon
- func ExpireTimeNEQ(v int64) predicate.ProxyCoupon
- func ExpireTimeNotIn(vs ...int64) predicate.ProxyCoupon
- func ID(id int64) predicate.ProxyCoupon
- func IDEQ(id int64) predicate.ProxyCoupon
- func IDGT(id int64) predicate.ProxyCoupon
- func IDGTE(id int64) predicate.ProxyCoupon
- func IDIn(ids ...int64) predicate.ProxyCoupon
- func IDLT(id int64) predicate.ProxyCoupon
- func IDLTE(id int64) predicate.ProxyCoupon
- func IDNEQ(id int64) predicate.ProxyCoupon
- func IDNotIn(ids ...int64) predicate.ProxyCoupon
- func Name(v string) predicate.ProxyCoupon
- func NameContains(v string) predicate.ProxyCoupon
- func NameContainsFold(v string) predicate.ProxyCoupon
- func NameEQ(v string) predicate.ProxyCoupon
- func NameEqualFold(v string) predicate.ProxyCoupon
- func NameGT(v string) predicate.ProxyCoupon
- func NameGTE(v string) predicate.ProxyCoupon
- func NameHasPrefix(v string) predicate.ProxyCoupon
- func NameHasSuffix(v string) predicate.ProxyCoupon
- func NameIn(vs ...string) predicate.ProxyCoupon
- func NameLT(v string) predicate.ProxyCoupon
- func NameLTE(v string) predicate.ProxyCoupon
- func NameNEQ(v string) predicate.ProxyCoupon
- func NameNotIn(vs ...string) predicate.ProxyCoupon
- func Not(p predicate.ProxyCoupon) predicate.ProxyCoupon
- func Or(predicates ...predicate.ProxyCoupon) predicate.ProxyCoupon
- func StartTime(v int64) predicate.ProxyCoupon
- func StartTimeEQ(v int64) predicate.ProxyCoupon
- func StartTimeGT(v int64) predicate.ProxyCoupon
- func StartTimeGTE(v int64) predicate.ProxyCoupon
- func StartTimeIn(vs ...int64) predicate.ProxyCoupon
- func StartTimeLT(v int64) predicate.ProxyCoupon
- func StartTimeLTE(v int64) predicate.ProxyCoupon
- func StartTimeNEQ(v int64) predicate.ProxyCoupon
- func StartTimeNotIn(vs ...int64) predicate.ProxyCoupon
- func Subscribe(v string) predicate.ProxyCoupon
- func SubscribeContains(v string) predicate.ProxyCoupon
- func SubscribeContainsFold(v string) predicate.ProxyCoupon
- func SubscribeEQ(v string) predicate.ProxyCoupon
- func SubscribeEqualFold(v string) predicate.ProxyCoupon
- func SubscribeGT(v string) predicate.ProxyCoupon
- func SubscribeGTE(v string) predicate.ProxyCoupon
- func SubscribeHasPrefix(v string) predicate.ProxyCoupon
- func SubscribeHasSuffix(v string) predicate.ProxyCoupon
- func SubscribeIn(vs ...string) predicate.ProxyCoupon
- func SubscribeLT(v string) predicate.ProxyCoupon
- func SubscribeLTE(v string) predicate.ProxyCoupon
- func SubscribeNEQ(v string) predicate.ProxyCoupon
- func SubscribeNotIn(vs ...string) predicate.ProxyCoupon
- func Type(v int8) predicate.ProxyCoupon
- func TypeEQ(v int8) predicate.ProxyCoupon
- func TypeGT(v int8) predicate.ProxyCoupon
- func TypeGTE(v int8) predicate.ProxyCoupon
- func TypeIn(vs ...int8) predicate.ProxyCoupon
- func TypeLT(v int8) predicate.ProxyCoupon
- func TypeLTE(v int8) predicate.ProxyCoupon
- func TypeNEQ(v int8) predicate.ProxyCoupon
- func TypeNotIn(vs ...int8) predicate.ProxyCoupon
- func UpdatedAt(v time.Time) predicate.ProxyCoupon
- func UpdatedAtEQ(v time.Time) predicate.ProxyCoupon
- func UpdatedAtGT(v time.Time) predicate.ProxyCoupon
- func UpdatedAtGTE(v time.Time) predicate.ProxyCoupon
- func UpdatedAtIn(vs ...time.Time) predicate.ProxyCoupon
- func UpdatedAtLT(v time.Time) predicate.ProxyCoupon
- func UpdatedAtLTE(v time.Time) predicate.ProxyCoupon
- func UpdatedAtNEQ(v time.Time) predicate.ProxyCoupon
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyCoupon
- func UsedCount(v int8) predicate.ProxyCoupon
- func UsedCountEQ(v int8) predicate.ProxyCoupon
- func UsedCountGT(v int8) predicate.ProxyCoupon
- func UsedCountGTE(v int8) predicate.ProxyCoupon
- func UsedCountIn(vs ...int8) predicate.ProxyCoupon
- func UsedCountLT(v int8) predicate.ProxyCoupon
- func UsedCountLTE(v int8) predicate.ProxyCoupon
- func UsedCountNEQ(v int8) predicate.ProxyCoupon
- func UsedCountNotIn(vs ...int8) predicate.ProxyCoupon
- func UserLimit(v int64) predicate.ProxyCoupon
- func UserLimitEQ(v int64) predicate.ProxyCoupon
- func UserLimitGT(v int64) predicate.ProxyCoupon
- func UserLimitGTE(v int64) predicate.ProxyCoupon
- func UserLimitIn(vs ...int64) predicate.ProxyCoupon
- func UserLimitLT(v int64) predicate.ProxyCoupon
- func UserLimitLTE(v int64) predicate.ProxyCoupon
- func UserLimitNEQ(v int64) predicate.ProxyCoupon
- func UserLimitNotIn(vs ...int64) predicate.ProxyCoupon
- func ValidColumn(column string) bool
- type OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDiscount(opts ...sql.OrderTermOption) OrderOption
- func ByEnable(opts ...sql.OrderTermOption) OrderOption
- func ByExpireTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByStartTime(opts ...sql.OrderTermOption) OrderOption
- func BySubscribe(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsedCount(opts ...sql.OrderTermOption) OrderOption
- func ByUserLimit(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the proxycoupon type in the database. Label = "proxy_coupon" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldCount holds the string denoting the count field in the database. FieldCount = "count" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldDiscount holds the string denoting the discount field in the database. FieldDiscount = "discount" // FieldStartTime holds the string denoting the start_time field in the database. FieldStartTime = "start_time" // FieldExpireTime holds the string denoting the expire_time field in the database. FieldExpireTime = "expire_time" // FieldUserLimit holds the string denoting the user_limit field in the database. FieldUserLimit = "user_limit" // FieldSubscribe holds the string denoting the subscribe field in the database. FieldSubscribe = "subscribe" // FieldUsedCount holds the string denoting the used_count field in the database. FieldUsedCount = "used_count" // FieldEnable holds the string denoting the enable field in the database. FieldEnable = "enable" // 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 proxycoupon in the database. Table = "coupon" )
Variables ¶
var ( // DefaultName holds the default value on creation for the "name" field. DefaultName string // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // DefaultCount holds the default value on creation for the "count" field. DefaultCount int32 // DefaultType holds the default value on creation for the "type" field. DefaultType int8 // DefaultDiscount holds the default value on creation for the "discount" field. DefaultDiscount int64 // DefaultStartTime holds the default value on creation for the "start_time" field. DefaultStartTime int64 // DefaultExpireTime holds the default value on creation for the "expire_time" field. DefaultExpireTime int64 // DefaultUserLimit holds the default value on creation for the "user_limit" field. DefaultUserLimit int64 // DefaultSubscribe holds the default value on creation for the "subscribe" field. DefaultSubscribe string // SubscribeValidator is a validator for the "subscribe" field. It is called by the builders before save. SubscribeValidator func(string) error // DefaultUsedCount holds the default value on creation for the "used_count" field. DefaultUsedCount int8 // DefaultEnable holds the default value on creation for the "enable" field. DefaultEnable bool // 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 )
var Columns = []string{ FieldID, FieldName, FieldCode, FieldCount, FieldType, FieldDiscount, FieldStartTime, FieldExpireTime, FieldUserLimit, FieldSubscribe, FieldUsedCount, FieldEnable, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for proxycoupon fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ProxyCoupon) predicate.ProxyCoupon
And groups predicates with the AND operator between them.
func Code ¶
func Code(v string) predicate.ProxyCoupon
Code applies equality check predicate on the "code" field. It's identical to CodeEQ.
func CodeContains ¶
func CodeContains(v string) predicate.ProxyCoupon
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
func CodeContainsFold(v string) predicate.ProxyCoupon
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEQ ¶
func CodeEQ(v string) predicate.ProxyCoupon
CodeEQ applies the EQ predicate on the "code" field.
func CodeEqualFold ¶
func CodeEqualFold(v string) predicate.ProxyCoupon
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeGT ¶
func CodeGT(v string) predicate.ProxyCoupon
CodeGT applies the GT predicate on the "code" field.
func CodeGTE ¶
func CodeGTE(v string) predicate.ProxyCoupon
CodeGTE applies the GTE predicate on the "code" field.
func CodeHasPrefix ¶
func CodeHasPrefix(v string) predicate.ProxyCoupon
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
func CodeHasSuffix(v string) predicate.ProxyCoupon
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CodeIn ¶
func CodeIn(vs ...string) predicate.ProxyCoupon
CodeIn applies the In predicate on the "code" field.
func CodeLT ¶
func CodeLT(v string) predicate.ProxyCoupon
CodeLT applies the LT predicate on the "code" field.
func CodeLTE ¶
func CodeLTE(v string) predicate.ProxyCoupon
CodeLTE applies the LTE predicate on the "code" field.
func CodeNEQ ¶
func CodeNEQ(v string) predicate.ProxyCoupon
CodeNEQ applies the NEQ predicate on the "code" field.
func CodeNotIn ¶
func CodeNotIn(vs ...string) predicate.ProxyCoupon
CodeNotIn applies the NotIn predicate on the "code" field.
func Count ¶
func Count(v int32) predicate.ProxyCoupon
Count applies equality check predicate on the "count" field. It's identical to CountEQ.
func CountEQ ¶
func CountEQ(v int32) predicate.ProxyCoupon
CountEQ applies the EQ predicate on the "count" field.
func CountGT ¶
func CountGT(v int32) predicate.ProxyCoupon
CountGT applies the GT predicate on the "count" field.
func CountGTE ¶
func CountGTE(v int32) predicate.ProxyCoupon
CountGTE applies the GTE predicate on the "count" field.
func CountIn ¶
func CountIn(vs ...int32) predicate.ProxyCoupon
CountIn applies the In predicate on the "count" field.
func CountLT ¶
func CountLT(v int32) predicate.ProxyCoupon
CountLT applies the LT predicate on the "count" field.
func CountLTE ¶
func CountLTE(v int32) predicate.ProxyCoupon
CountLTE applies the LTE predicate on the "count" field.
func CountNEQ ¶
func CountNEQ(v int32) predicate.ProxyCoupon
CountNEQ applies the NEQ predicate on the "count" field.
func CountNotIn ¶
func CountNotIn(vs ...int32) predicate.ProxyCoupon
CountNotIn applies the NotIn predicate on the "count" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ProxyCoupon
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ProxyCoupon
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ProxyCoupon
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ProxyCoupon
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ProxyCoupon
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ProxyCoupon
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ProxyCoupon
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ProxyCoupon
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ProxyCoupon
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Discount ¶
func Discount(v int64) predicate.ProxyCoupon
Discount applies equality check predicate on the "discount" field. It's identical to DiscountEQ.
func DiscountEQ ¶
func DiscountEQ(v int64) predicate.ProxyCoupon
DiscountEQ applies the EQ predicate on the "discount" field.
func DiscountGT ¶
func DiscountGT(v int64) predicate.ProxyCoupon
DiscountGT applies the GT predicate on the "discount" field.
func DiscountGTE ¶
func DiscountGTE(v int64) predicate.ProxyCoupon
DiscountGTE applies the GTE predicate on the "discount" field.
func DiscountIn ¶
func DiscountIn(vs ...int64) predicate.ProxyCoupon
DiscountIn applies the In predicate on the "discount" field.
func DiscountLT ¶
func DiscountLT(v int64) predicate.ProxyCoupon
DiscountLT applies the LT predicate on the "discount" field.
func DiscountLTE ¶
func DiscountLTE(v int64) predicate.ProxyCoupon
DiscountLTE applies the LTE predicate on the "discount" field.
func DiscountNEQ ¶
func DiscountNEQ(v int64) predicate.ProxyCoupon
DiscountNEQ applies the NEQ predicate on the "discount" field.
func DiscountNotIn ¶
func DiscountNotIn(vs ...int64) predicate.ProxyCoupon
DiscountNotIn applies the NotIn predicate on the "discount" field.
func Enable ¶
func Enable(v bool) predicate.ProxyCoupon
Enable applies equality check predicate on the "enable" field. It's identical to EnableEQ.
func EnableEQ ¶
func EnableEQ(v bool) predicate.ProxyCoupon
EnableEQ applies the EQ predicate on the "enable" field.
func EnableNEQ ¶
func EnableNEQ(v bool) predicate.ProxyCoupon
EnableNEQ applies the NEQ predicate on the "enable" field.
func ExpireTime ¶
func ExpireTime(v int64) predicate.ProxyCoupon
ExpireTime applies equality check predicate on the "expire_time" field. It's identical to ExpireTimeEQ.
func ExpireTimeEQ ¶
func ExpireTimeEQ(v int64) predicate.ProxyCoupon
ExpireTimeEQ applies the EQ predicate on the "expire_time" field.
func ExpireTimeGT ¶
func ExpireTimeGT(v int64) predicate.ProxyCoupon
ExpireTimeGT applies the GT predicate on the "expire_time" field.
func ExpireTimeGTE ¶
func ExpireTimeGTE(v int64) predicate.ProxyCoupon
ExpireTimeGTE applies the GTE predicate on the "expire_time" field.
func ExpireTimeIn ¶
func ExpireTimeIn(vs ...int64) predicate.ProxyCoupon
ExpireTimeIn applies the In predicate on the "expire_time" field.
func ExpireTimeLT ¶
func ExpireTimeLT(v int64) predicate.ProxyCoupon
ExpireTimeLT applies the LT predicate on the "expire_time" field.
func ExpireTimeLTE ¶
func ExpireTimeLTE(v int64) predicate.ProxyCoupon
ExpireTimeLTE applies the LTE predicate on the "expire_time" field.
func ExpireTimeNEQ ¶
func ExpireTimeNEQ(v int64) predicate.ProxyCoupon
ExpireTimeNEQ applies the NEQ predicate on the "expire_time" field.
func ExpireTimeNotIn ¶
func ExpireTimeNotIn(vs ...int64) predicate.ProxyCoupon
ExpireTimeNotIn applies the NotIn predicate on the "expire_time" field.
func IDEQ ¶
func IDEQ(id int64) predicate.ProxyCoupon
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.ProxyCoupon
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.ProxyCoupon
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.ProxyCoupon
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.ProxyCoupon
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.ProxyCoupon
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.ProxyCoupon
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.ProxyCoupon
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.ProxyCoupon
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.ProxyCoupon
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.ProxyCoupon
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.ProxyCoupon
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.ProxyCoupon
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.ProxyCoupon
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.ProxyCoupon
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.ProxyCoupon
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.ProxyCoupon
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.ProxyCoupon
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.ProxyCoupon
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.ProxyCoupon
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.ProxyCoupon
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.ProxyCoupon
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.ProxyCoupon) predicate.ProxyCoupon
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProxyCoupon) predicate.ProxyCoupon
Or groups predicates with the OR operator between them.
func StartTime ¶
func StartTime(v int64) predicate.ProxyCoupon
StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.
func StartTimeEQ ¶
func StartTimeEQ(v int64) predicate.ProxyCoupon
StartTimeEQ applies the EQ predicate on the "start_time" field.
func StartTimeGT ¶
func StartTimeGT(v int64) predicate.ProxyCoupon
StartTimeGT applies the GT predicate on the "start_time" field.
func StartTimeGTE ¶
func StartTimeGTE(v int64) predicate.ProxyCoupon
StartTimeGTE applies the GTE predicate on the "start_time" field.
func StartTimeIn ¶
func StartTimeIn(vs ...int64) predicate.ProxyCoupon
StartTimeIn applies the In predicate on the "start_time" field.
func StartTimeLT ¶
func StartTimeLT(v int64) predicate.ProxyCoupon
StartTimeLT applies the LT predicate on the "start_time" field.
func StartTimeLTE ¶
func StartTimeLTE(v int64) predicate.ProxyCoupon
StartTimeLTE applies the LTE predicate on the "start_time" field.
func StartTimeNEQ ¶
func StartTimeNEQ(v int64) predicate.ProxyCoupon
StartTimeNEQ applies the NEQ predicate on the "start_time" field.
func StartTimeNotIn ¶
func StartTimeNotIn(vs ...int64) predicate.ProxyCoupon
StartTimeNotIn applies the NotIn predicate on the "start_time" field.
func Subscribe ¶
func Subscribe(v string) predicate.ProxyCoupon
Subscribe applies equality check predicate on the "subscribe" field. It's identical to SubscribeEQ.
func SubscribeContains ¶
func SubscribeContains(v string) predicate.ProxyCoupon
SubscribeContains applies the Contains predicate on the "subscribe" field.
func SubscribeContainsFold ¶
func SubscribeContainsFold(v string) predicate.ProxyCoupon
SubscribeContainsFold applies the ContainsFold predicate on the "subscribe" field.
func SubscribeEQ ¶
func SubscribeEQ(v string) predicate.ProxyCoupon
SubscribeEQ applies the EQ predicate on the "subscribe" field.
func SubscribeEqualFold ¶
func SubscribeEqualFold(v string) predicate.ProxyCoupon
SubscribeEqualFold applies the EqualFold predicate on the "subscribe" field.
func SubscribeGT ¶
func SubscribeGT(v string) predicate.ProxyCoupon
SubscribeGT applies the GT predicate on the "subscribe" field.
func SubscribeGTE ¶
func SubscribeGTE(v string) predicate.ProxyCoupon
SubscribeGTE applies the GTE predicate on the "subscribe" field.
func SubscribeHasPrefix ¶
func SubscribeHasPrefix(v string) predicate.ProxyCoupon
SubscribeHasPrefix applies the HasPrefix predicate on the "subscribe" field.
func SubscribeHasSuffix ¶
func SubscribeHasSuffix(v string) predicate.ProxyCoupon
SubscribeHasSuffix applies the HasSuffix predicate on the "subscribe" field.
func SubscribeIn ¶
func SubscribeIn(vs ...string) predicate.ProxyCoupon
SubscribeIn applies the In predicate on the "subscribe" field.
func SubscribeLT ¶
func SubscribeLT(v string) predicate.ProxyCoupon
SubscribeLT applies the LT predicate on the "subscribe" field.
func SubscribeLTE ¶
func SubscribeLTE(v string) predicate.ProxyCoupon
SubscribeLTE applies the LTE predicate on the "subscribe" field.
func SubscribeNEQ ¶
func SubscribeNEQ(v string) predicate.ProxyCoupon
SubscribeNEQ applies the NEQ predicate on the "subscribe" field.
func SubscribeNotIn ¶
func SubscribeNotIn(vs ...string) predicate.ProxyCoupon
SubscribeNotIn applies the NotIn predicate on the "subscribe" field.
func Type ¶
func Type(v int8) predicate.ProxyCoupon
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func TypeEQ ¶
func TypeEQ(v int8) predicate.ProxyCoupon
TypeEQ applies the EQ predicate on the "type" field.
func TypeGT ¶
func TypeGT(v int8) predicate.ProxyCoupon
TypeGT applies the GT predicate on the "type" field.
func TypeGTE ¶
func TypeGTE(v int8) predicate.ProxyCoupon
TypeGTE applies the GTE predicate on the "type" field.
func TypeIn ¶
func TypeIn(vs ...int8) predicate.ProxyCoupon
TypeIn applies the In predicate on the "type" field.
func TypeLT ¶
func TypeLT(v int8) predicate.ProxyCoupon
TypeLT applies the LT predicate on the "type" field.
func TypeLTE ¶
func TypeLTE(v int8) predicate.ProxyCoupon
TypeLTE applies the LTE predicate on the "type" field.
func TypeNEQ ¶
func TypeNEQ(v int8) predicate.ProxyCoupon
TypeNEQ applies the NEQ predicate on the "type" field.
func TypeNotIn ¶
func TypeNotIn(vs ...int8) predicate.ProxyCoupon
TypeNotIn applies the NotIn predicate on the "type" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ProxyCoupon
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ProxyCoupon
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ProxyCoupon
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ProxyCoupon
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ProxyCoupon
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ProxyCoupon
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ProxyCoupon
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ProxyCoupon
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyCoupon
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UsedCount ¶
func UsedCount(v int8) predicate.ProxyCoupon
UsedCount applies equality check predicate on the "used_count" field. It's identical to UsedCountEQ.
func UsedCountEQ ¶
func UsedCountEQ(v int8) predicate.ProxyCoupon
UsedCountEQ applies the EQ predicate on the "used_count" field.
func UsedCountGT ¶
func UsedCountGT(v int8) predicate.ProxyCoupon
UsedCountGT applies the GT predicate on the "used_count" field.
func UsedCountGTE ¶
func UsedCountGTE(v int8) predicate.ProxyCoupon
UsedCountGTE applies the GTE predicate on the "used_count" field.
func UsedCountIn ¶
func UsedCountIn(vs ...int8) predicate.ProxyCoupon
UsedCountIn applies the In predicate on the "used_count" field.
func UsedCountLT ¶
func UsedCountLT(v int8) predicate.ProxyCoupon
UsedCountLT applies the LT predicate on the "used_count" field.
func UsedCountLTE ¶
func UsedCountLTE(v int8) predicate.ProxyCoupon
UsedCountLTE applies the LTE predicate on the "used_count" field.
func UsedCountNEQ ¶
func UsedCountNEQ(v int8) predicate.ProxyCoupon
UsedCountNEQ applies the NEQ predicate on the "used_count" field.
func UsedCountNotIn ¶
func UsedCountNotIn(vs ...int8) predicate.ProxyCoupon
UsedCountNotIn applies the NotIn predicate on the "used_count" field.
func UserLimit ¶
func UserLimit(v int64) predicate.ProxyCoupon
UserLimit applies equality check predicate on the "user_limit" field. It's identical to UserLimitEQ.
func UserLimitEQ ¶
func UserLimitEQ(v int64) predicate.ProxyCoupon
UserLimitEQ applies the EQ predicate on the "user_limit" field.
func UserLimitGT ¶
func UserLimitGT(v int64) predicate.ProxyCoupon
UserLimitGT applies the GT predicate on the "user_limit" field.
func UserLimitGTE ¶
func UserLimitGTE(v int64) predicate.ProxyCoupon
UserLimitGTE applies the GTE predicate on the "user_limit" field.
func UserLimitIn ¶
func UserLimitIn(vs ...int64) predicate.ProxyCoupon
UserLimitIn applies the In predicate on the "user_limit" field.
func UserLimitLT ¶
func UserLimitLT(v int64) predicate.ProxyCoupon
UserLimitLT applies the LT predicate on the "user_limit" field.
func UserLimitLTE ¶
func UserLimitLTE(v int64) predicate.ProxyCoupon
UserLimitLTE applies the LTE predicate on the "user_limit" field.
func UserLimitNEQ ¶
func UserLimitNEQ(v int64) predicate.ProxyCoupon
UserLimitNEQ applies the NEQ predicate on the "user_limit" field.
func UserLimitNotIn ¶
func UserLimitNotIn(vs ...int64) predicate.ProxyCoupon
UserLimitNotIn applies the NotIn predicate on the "user_limit" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ProxyCoupon queries.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByCount ¶
func ByCount(opts ...sql.OrderTermOption) OrderOption
ByCount orders the results by the count field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDiscount ¶
func ByDiscount(opts ...sql.OrderTermOption) OrderOption
ByDiscount orders the results by the discount field.
func ByEnable ¶
func ByEnable(opts ...sql.OrderTermOption) OrderOption
ByEnable orders the results by the enable field.
func ByExpireTime ¶
func ByExpireTime(opts ...sql.OrderTermOption) OrderOption
ByExpireTime orders the results by the expire_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByStartTime ¶
func ByStartTime(opts ...sql.OrderTermOption) OrderOption
ByStartTime orders the results by the start_time field.
func BySubscribe ¶
func BySubscribe(opts ...sql.OrderTermOption) OrderOption
BySubscribe orders the results by the subscribe field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsedCount ¶
func ByUsedCount(opts ...sql.OrderTermOption) OrderOption
ByUsedCount orders the results by the used_count field.
func ByUserLimit ¶
func ByUserLimit(opts ...sql.OrderTermOption) OrderOption
ByUserLimit orders the results by the user_limit field.