update inbox

This commit is contained in:
aichy126 2023-05-24 15:20:07 +08:00
parent 87d71bf290
commit 0b7606ea22
1 changed files with 6 additions and 3 deletions

View File

@ -123,9 +123,12 @@ func (ns *NotificationService) GetNotificationPage(ctx context.Context, searchCo
if !ok {
return pager.NewPageModel(0, resp), nil
}
searchInboxType, ok := schema.NotificationInboxType[searchCond.InboxTypeStr]
if !ok {
return pager.NewPageModel(0, resp), nil
searchInboxType := schema.NotificationInboxTypeAll
if searchType == schema.NotificationTypeInbox {
searchInboxType, ok = schema.NotificationInboxType[searchCond.InboxTypeStr]
if !ok {
return pager.NewPageModel(0, resp), nil
}
}
searchCond.Type = searchType
searchCond.InboxType = searchInboxType