mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-11-01 02:31:39 +08:00
33 lines
895 B
Go
33 lines
895 B
Go
package model
|
|
|
|
import "SamWaf/model/baseorm"
|
|
|
|
/*
|
|
*
|
|
IP Tag 信息
|
|
*/
|
|
type IPTag struct {
|
|
baseorm.BaseOrm
|
|
IP string `gorm:"size:64" json:"ip"` //ip
|
|
IPTag string `gorm:"size:255" json:"ip_tag"`
|
|
Cnt int64 `json:"cnt"` //触发次数
|
|
Remarks string `gorm:"size:500" json:"remarks"` //备注
|
|
}
|
|
type AttackIPTag struct {
|
|
TenantID string `json:"tenant_id"`
|
|
UserCode string `json:"user_code"`
|
|
IP string `json:"ip"`
|
|
PassNum int64 `json:"pass_num"`
|
|
DenyNum int64 `json:"deny_num"`
|
|
FirstTime string `json:"first_time"`
|
|
LatestTime string `json:"latest_time"`
|
|
IpTotalTag string `json:"ip_total_tag"`
|
|
}
|
|
|
|
type AllIPTag struct {
|
|
Label string `json:"label"`
|
|
Value string `json:"value"`
|
|
// Count 单独返回,前端才能把计数渲染成徽标而不是挤在 Label 里;Label 保持带计数的老格式不动
|
|
Count int64 `json:"count"`
|
|
}
|