feat: add the notificationAccount (#1602)

* feat: add notification API

* fix: fix the script

* fix: fix the error
This commit is contained in:
Brabem
2023-12-26 10:15:15 +08:00
committed by GitHub
parent de451d4cea
commit 7389639f17
18 changed files with 238 additions and 53 deletions
+2 -3
View File
@@ -169,9 +169,8 @@ func (m *MessageApi) getSendMsgReq(c *gin.Context, req apistruct.SendMsg) (sendM
case constant.OANotification:
data = apistruct.OANotificationElem{}
req.SessionType = constant.NotificationChatType
if !authverify.IsManagerUserID(req.SendID) {
return nil, errs.ErrNoPermission.
Wrap("only app manager can as sender send OANotificationElem")
if err = m.userRpcClient.GetNotificationByID(c, req.SendID); err != nil {
return nil, err
}
default:
return nil, errs.ErrArgs.WithDetail("not support err contentType")