feat(M3): 申请审批 + 邮件队列 — 公开申请、管理员审批自动建号、mail_logs 落库重试
This commit is contained in:
@@ -130,10 +130,12 @@ type Setting struct {
|
||||
}
|
||||
|
||||
// MailLog 邮件发送记录(队列 + 重试 + 失败记录)。
|
||||
// Body 保存原文以便失败后按原内容重试(队列的载荷),仅用于重发,不对外展示。
|
||||
type MailLog struct {
|
||||
ID uint `gorm:"primaryKey" json:"id"`
|
||||
To string `gorm:"size:255;index;not null" json:"to"`
|
||||
Subject string `gorm:"size:255" json:"subject"`
|
||||
Body string `gorm:"type:text" json:"-"`
|
||||
Status string `gorm:"size:16;not null;default:pending;index" json:"status"`
|
||||
Error string `gorm:"type:text" json:"error"`
|
||||
RetryCount int `gorm:"not null;default:0" json:"retry_count"`
|
||||
|
||||
Reference in New Issue
Block a user