diff --git a/internal/api/msg.go b/internal/api/msg.go index 2777d8855..392fa5f56 100644 --- a/internal/api/msg.go +++ b/internal/api/msg.go @@ -224,6 +224,7 @@ func (m *MessageApi) SendMessage(c *gin.Context) { respPb, err := m.Client.SendMsg(c, sendMsgReq) if err != nil { status = constant.MsgSendFailed + log.ZError(c, "send message err", err) apiresp.GinError(c, err) return } diff --git a/pkg/apistruct/manage.go b/pkg/apistruct/manage.go index eef38e403..52a93ddc1 100644 --- a/pkg/apistruct/manage.go +++ b/pkg/apistruct/manage.go @@ -24,11 +24,12 @@ type SendMsg struct { SenderNickname string `json:"senderNickname"` SenderFaceURL string `json:"senderFaceURL"` SenderPlatformID int32 `json:"senderPlatformID"` - Content map[string]interface{} `json:"content" binding:"required" swaggerignore:"true"` + Content map[string]interface{} `json:"content" binding:"required" swaggerignore:"true"` ContentType int32 `json:"contentType" binding:"required"` SessionType int32 `json:"sessionType" binding:"required"` IsOnlineOnly bool `json:"isOnlineOnly"` NotOfflinePush bool `json:"notOfflinePush"` + SendTime int64 `json:"sendTime"` OfflinePushInfo *sdkws.OfflinePushInfo `json:"offlinePushInfo"` }