From 8b1883710fe3ce1558eb5c6498cbab130989112a Mon Sep 17 00:00:00 2001 From: Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Mon, 18 Sep 2023 21:31:00 +0800 Subject: [PATCH] test: message log. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --- internal/api/msg.go | 1 + pkg/apistruct/manage.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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"` }