实现controller
This commit is contained in:
@@ -11,13 +11,13 @@ import (
|
||||
|
||||
// NotificationListOptions 定义了查询通知列表时的可选参数
|
||||
type NotificationListOptions struct {
|
||||
UserID *uint // 按用户ID过滤
|
||||
NotifierType *notify.NotifierType // 按通知器类型过滤
|
||||
Status *string // 按通知状态过滤 (例如:"success", "failed", "pending")
|
||||
Level *zapcore.Level // 按通知等级过滤 (例如:"info", "warning", "error")
|
||||
StartTime *time.Time // 通知内容生成时间范围 - 开始时间 (对应 AlarmTimestamp)
|
||||
EndTime *time.Time // 通知内容生成时间范围 - 结束时间 (对应 AlarmTimestamp)
|
||||
OrderBy string // 排序字段,例如 "alarm_timestamp DESC"
|
||||
UserID *uint // 按用户ID过滤
|
||||
NotifierType *notify.NotifierType // 按通知器类型过滤
|
||||
Status *models.NotificationStatus // 按通知状态过滤 (例如:"success", "failed")
|
||||
Level *zapcore.Level // 按通知等级过滤 (例如:"info", "warning", "error")
|
||||
StartTime *time.Time // 通知内容生成时间范围 - 开始时间 (对应 AlarmTimestamp)
|
||||
EndTime *time.Time // 通知内容生成时间范围 - 结束时间 (对应 AlarmTimestamp)
|
||||
OrderBy string // 排序字段,例如 "alarm_timestamp DESC"
|
||||
}
|
||||
|
||||
// NotificationRepository 定义了与通知记录相关的数据库操作接口。
|
||||
|
||||
Reference in New Issue
Block a user