17 lines
535 B
Go
17 lines
535 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
// NotificationLog 记录单次通知渠道发送结果。
|
|
type NotificationLog struct {
|
|
ID string `json:"id"`
|
|
EventID string `json:"event_id"`
|
|
ChannelID string `json:"channel_id"`
|
|
ChannelType string `json:"channel_type"`
|
|
Status string `json:"status"`
|
|
RetryCount int `json:"retry_count"`
|
|
ErrorMessage *string `json:"error_message,omitempty"`
|
|
SentAt *time.Time `json:"sent_at,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|