feat: implement V2 alert center and scoped alert governance

This commit is contained in:
Yvan
2026-11-05 20:08:29 +08:00
parent f8e26c5baf
commit 999c9a6315
57 changed files with 2711 additions and 216 deletions
+9 -2
View File
@@ -3,6 +3,9 @@ package business
import "time"
type alertRulePO struct {
ConditionMode int `gorm:"not null;default:1"`
AmountDirection int `gorm:"not null;default:1"`
AmountThreshold *string `gorm:"type:decimal(14,2)"`
ID uint64 `gorm:"primaryKey"`
RuleName string `gorm:"size:100;not null"`
RuleType string `gorm:"size:50;not null"`
@@ -22,8 +25,12 @@ type alertRulePO struct {
func (alertRulePO) TableName() string { return "sys_alert_rule" }
type alertRecordPO struct {
ID uint64 `gorm:"primaryKey"`
PlatformCode, PlatformName string `gorm:"size:50"`
IndependentRule bool `gorm:"not null;default:0"`
TotalPlayers *int64
TotalPay *string `gorm:"type:decimal(20,2)"`
WarningColor *string `gorm:"size:20"`
ID uint64 `gorm:"primaryKey"`
PlatformCode, PlatformName string `gorm:"size:50"`
RuleID uint64
RuleName string `gorm:"size:100"`
RuleType string `gorm:"size:50"`