- 支持创建/编辑/删除优惠码,设置赠送金额和使用限制 - 注册页面实时验证优惠码并显示赠送金额 - 支持 URL 参数自动填充 (?promo=CODE) - 添加优惠码验证接口速率限制 - 使用数据库行锁防止并发超限 - 新增后台优惠码管理页面,支持复制注册链接
53 lines
1.6 KiB
Go
53 lines
1.6 KiB
Go
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package predicate
|
|
|
|
import (
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// APIKey is the predicate function for apikey builders.
|
|
type APIKey func(*sql.Selector)
|
|
|
|
// Account is the predicate function for account builders.
|
|
type Account func(*sql.Selector)
|
|
|
|
// AccountGroup is the predicate function for accountgroup builders.
|
|
type AccountGroup func(*sql.Selector)
|
|
|
|
// Group is the predicate function for group builders.
|
|
type Group func(*sql.Selector)
|
|
|
|
// PromoCode is the predicate function for promocode builders.
|
|
type PromoCode func(*sql.Selector)
|
|
|
|
// PromoCodeUsage is the predicate function for promocodeusage builders.
|
|
type PromoCodeUsage func(*sql.Selector)
|
|
|
|
// Proxy is the predicate function for proxy builders.
|
|
type Proxy func(*sql.Selector)
|
|
|
|
// RedeemCode is the predicate function for redeemcode builders.
|
|
type RedeemCode func(*sql.Selector)
|
|
|
|
// Setting is the predicate function for setting builders.
|
|
type Setting func(*sql.Selector)
|
|
|
|
// UsageLog is the predicate function for usagelog builders.
|
|
type UsageLog func(*sql.Selector)
|
|
|
|
// User is the predicate function for user builders.
|
|
type User func(*sql.Selector)
|
|
|
|
// UserAllowedGroup is the predicate function for userallowedgroup builders.
|
|
type UserAllowedGroup func(*sql.Selector)
|
|
|
|
// UserAttributeDefinition is the predicate function for userattributedefinition builders.
|
|
type UserAttributeDefinition func(*sql.Selector)
|
|
|
|
// UserAttributeValue is the predicate function for userattributevalue builders.
|
|
type UserAttributeValue func(*sql.Selector)
|
|
|
|
// UserSubscription is the predicate function for usersubscription builders.
|
|
type UserSubscription func(*sql.Selector)
|