@@ -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 {
@@ -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