feat: implement V2 alert center and scoped alert governance
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user