18 lines
821 B
Go
18 lines
821 B
Go
package entity
|
||
|
||
import "github.com/gogf/gf/v2/os/gtime"
|
||
|
||
// EventSeatQueries 查座审计 + 限流依据(无 Redis 时的权威统计源,架构 §8.6.2)。
|
||
//
|
||
// 每次「通过限流闸门」的查询都会落一行(成功/失败都写);限流窗口判定与连续失败冷却
|
||
// 都基于本表的时间窗 COUNT 与最近若干条 result 计算。
|
||
type EventSeatQueries struct {
|
||
Id int64 `json:"id"`
|
||
EventId int64 `json:"event_id"`
|
||
Openid string `json:"openid"` // 有登录态时记录,否则空
|
||
Ip string `json:"ip"` // 客户端 IP
|
||
PhoneMasked string `json:"phone_masked"` // 脱敏手机号(138****0000)
|
||
Result int `json:"result"` // 0 失败 / 1 成功
|
||
CreatedAt *gtime.Time `json:"created_at"`
|
||
}
|