Browse Source

巡检未读消息列表

xyxie 23 hours ago
parent
commit
b5255e6e17

+ 3 - 2
models/data_manage/edb_inspection/edb_inspection_message.go

@@ -114,8 +114,9 @@ type EdbInspectionMessageResp struct {
 }
 
 type EdbInspectionMessageListResp struct {
-	List   []*EdbInspectionMessageResp `json:"list"`
-	Paging *paging.PagingItem           `json:"paging"`
+	List   []*EdbInspectionMessageResp 
+	Paging *paging.PagingItem    
+	UnreadTotal int
 }
 
 type EdbInspectionMessageReadReq struct {

+ 1 - 0
services/data/edb_inspection_message.go

@@ -86,6 +86,7 @@ func GetInspectionMessageList(adminid int, currentIndex, pageSize int) (resp edb
 
 	resp.List = toEdbInspectionMessageResp(messageList)
 	resp.Paging = paging.GetPaging(currentIndex, pageSize, total)
+	resp.UnreadTotal = total
 	return
 }