소스 검색

巡检未读消息列表

xyxie 3 일 전
부모
커밋
b5255e6e17
2개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      models/data_manage/edb_inspection/edb_inspection_message.go
  2. 1 0
      services/data/edb_inspection_message.go

+ 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
 }