修bug
This commit is contained in:
@@ -2,6 +2,7 @@ package dto
|
||||
|
||||
import (
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/infra/models"
|
||||
"go.uber.org/zap/zapcore"
|
||||
)
|
||||
|
||||
// NewListNotificationResponse 从模型数据创建通知列表响应 DTO
|
||||
@@ -16,7 +17,7 @@ func NewListNotificationResponse(data []models.Notification, total int64, page,
|
||||
UserID: item.UserID,
|
||||
Title: item.Title,
|
||||
Message: item.Message,
|
||||
Level: item.Level,
|
||||
Level: zapcore.Level(item.Level),
|
||||
AlarmTimestamp: item.AlarmTimestamp,
|
||||
ToAddress: item.ToAddress,
|
||||
Status: item.Status,
|
||||
|
||||
Reference in New Issue
Block a user