package model // NotifyLog 异步回调审计日志。每条通知的原始报文 + 验签/处理结果都留一份,便于排查对账纠纷。 type NotifyLog struct { Base Channel string `gorm:"size:16" json:"channel"` OutTradeNo string `gorm:"index;size:64" json:"out_trade_no"` Verified bool `json:"verified"` // 验签是否通过 Result string `gorm:"size:32" json:"result"` // processed | duplicate | amount_mismatch | verify_failed | not_found | ignored Raw string `gorm:"type:text" json:"raw"` // 原始表单报文 }