mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
feat: send msg at text (#1705)
This commit is contained in:
parent
f27b1e43f5
commit
ceb950a57f
@ -164,6 +164,8 @@ func (m *MessageApi) getSendMsgReq(c *gin.Context, req apistruct.SendMsg) (sendM
|
|||||||
data = apistruct.VideoElem{}
|
data = apistruct.VideoElem{}
|
||||||
case constant.File:
|
case constant.File:
|
||||||
data = apistruct.FileElem{}
|
data = apistruct.FileElem{}
|
||||||
|
case constant.AtText:
|
||||||
|
data = apistruct.AtElem{}
|
||||||
case constant.Custom:
|
case constant.Custom:
|
||||||
data = apistruct.CustomElem{}
|
data = apistruct.CustomElem{}
|
||||||
case constant.OANotification:
|
case constant.OANotification:
|
||||||
@ -172,7 +174,6 @@ func (m *MessageApi) getSendMsgReq(c *gin.Context, req apistruct.SendMsg) (sendM
|
|||||||
if err = m.userRpcClient.GetNotificationByID(c, req.SendID); err != nil {
|
if err = m.userRpcClient.GetNotificationByID(c, req.SendID); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return nil, errs.ErrArgs.WithDetail("not support err contentType")
|
return nil, errs.ErrArgs.WithDetail("not support err contentType")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user