mirror of https://gitee.com/answerdev/answer.git
update inbox
This commit is contained in:
parent
87d71bf290
commit
0b7606ea22
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue